Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Jan 26, 2012
0 parents commit ab5ec4a
Show file tree
Hide file tree
Showing 9 changed files with 544 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
.DS_Store

Binary file added assets/bg.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
134 changes: 134 additions & 0 deletions assets/grid.css
@@ -0,0 +1,134 @@
body {
min-width: 960px;
}

.grid-1, .grid-2, .grid-3, .grid-4 {
display:inline;
float: left;
position: relative;
margin-left: 10px;
margin-right: 10px;
}

.push-1, .pull-1,
.push-2, .pull-2,
.push-3, .pull-3,
.push-4, .pull-4 {
position: relative;
}

/* Grid >> Children (Alpha ~ First, Omega ~ Last) */

.alpha {
margin-left: 0;
}

.omega {
margin-right: 0;
}

/* Grid >> 4 Columns */

.grid .grid-1 {
width: 220px;
}

.grid .grid-2 {
width: 460px;
}

.grid .grid-3 {
width: 700px;
}

.grid .grid-4 {
width: 940px;
}

/* Prefix Extra Space >> 4 Columns */

.grid .prefix-1 {
padding-left: 240px;
}

.grid .prefix-2 {
padding-left: 480px;
}

.grid .prefix-3 {
padding-left: 720px;
}

/* Suffix Extra Space >> 4 Columns */

.grid .suffix-1 {
padding-right: 240px;
}

.grid .suffix-2 {
padding-right: 480px;
}

.grid .suffix-3 {
padding-right: 720px;
}

/* Push Space >> 4 Columns */

.grid .push-1 {
left: 240px;
}

.grid .push-2 {
left: 480px;
}

.grid .push-3 {
left: 720px;
}

/* Pull Space >> 4 Columns */

.grid .pull-1 {
left: -240px;
}

.grid .pull-2 {
left: -480px;
}

.grid .pull-3 {
left: -720px;
}

/* http://sonspring.com/journal/clearing-floats */

.clear {
clear: both;
display: block;
overflow: hidden;
visibility: hidden;
width: 0;
height: 0;
}

/* http://www.yuiblog.com/blog/2010/09/27/clearfix-reloaded-overflowhidden-demystified */

.clearfix:before, .clearfix:after {
content: '\0020';
display: block;
overflow: hidden;
visibility: hidden;
width: 0;
height: 0;
}

.clearfix:after {
clear: both;
}

/* The following zoom:1 rule is specifically for IE6 + IE7. */

.clearfix {
zoom: 1;
}
4 changes: 4 additions & 0 deletions assets/jquery-1.7.1.min.js

Large diffs are not rendered by default.

Binary file added assets/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions assets/reset.css
@@ -0,0 +1,48 @@
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
156 changes: 156 additions & 0 deletions assets/strftime.js
@@ -0,0 +1,156 @@
/// strftime
/// https://github.com/samsonjs/strftime
/// @_sjs
///
/// Copyright 2010 - 2011 Sami Samhuri <sami.samhuri@gmail.com>
/// MIT License

;(function() {

//// Export the API
var namespace;

// CommonJS / Node module
if (typeof exports !== 'undefined') {
namespace = exports;
}

// Browsers and other environments
else {
// Get the global object. Works in ES3, ES5, and ES5 strict mode.
namespace = (function(){ return this || (1,eval)('this') }());
}

namespace.strftime = strftime;
namespace.strftimeUTC = strftimeUTC;
namespace.localizedStrftime = localizedStrftime;
namespace.getLocalizedStrftime = function(locale) {
console.log('[strftime] DEPRECATION NOTICE: getLocalizedStrftime is deprecated, use localizedStrftime instead');
return (namespace.getLocalizedStrftime = localizedStrftime)(locale);
};
////

function words(s) { return (s || '').split(' '); }

var DefaultLocale =
{ days: words('Sunday Monday Tuesday Wednesday Thursday Friday Saturday')
, shortDays: words('Sun Mon Tue Wed Thu Fri Sat')
, months: words('January February March April May June July August September October November December')
, shortMonths: words('Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec')
, AM: 'AM'
, PM: 'PM'
}

function strftime(fmt, d, locale) {
return _strftime(fmt, d, locale, false);
}

function strftimeUTC(fmt, d, locale) {
return _strftime(fmt, d, locale, true);
}

function localizedStrftime(locale) {
return function(fmt, d) {
return strftime(fmt, d, locale);
};
}

// locale is an object with the same structure as DefaultLocale
function _strftime(fmt, d, locale, _useUTC) {
// d and locale are optional so check if d is really the locale
if (d && !(d instanceof Date)) {
locale = d;
d = undefined;
}
d = d || new Date();
locale = locale || DefaultLocale;
locale.formats = locale.formats || {};
var msDelta = 0;
if (_useUTC) {
msDelta = (d.getTimezoneOffset() || 0) * 60000;
d = new Date(d.getTime() + msDelta);
}

// Most of the specifiers supported by C's strftime, and one from Ruby (%L)
return fmt.replace(/%(.)/g, function(_, c) {
switch (c) {
case 'A': return locale.days[d.getDay()];
case 'a': return locale.shortDays[d.getDay()];
case 'B': return locale.months[d.getMonth()];
case 'b': // fall through
case 'h': return locale.shortMonths[d.getMonth()];
case 'D': return _strftime(locale.formats.D || '%m/%d/%y', d, locale);
case 'd': return pad(d.getDate());
case 'e': return d.getDate();
case 'F': return _strftime(locale.formats.F || '%Y-%m-%d', d, locale);
case 'H': return pad(d.getHours());
case 'I': return pad(hours12(d));
case 'k': return pad(d.getHours(), ' ');
case 'L': return pad(Math.floor(d.getTime() % 1000), 3);
case 'l': return pad(hours12(d), ' ');
case 'M': return pad(d.getMinutes());
case 'm': return pad(d.getMonth() + 1);
case 'n': return '\n';
case 'p': return d.getHours() < 12 ? locale.AM : locale.PM;
case 'R': return _strftime(locale.formats.R || '%H:%M', d, locale);
case 'r': return _strftime(locale.formats.r || '%I:%M:%S %p', d, locale);
case 'S': return pad(d.getSeconds());
case 's': return Math.floor((d.getTime() - msDelta) / 1000);
case 'T': return _strftime(locale.formats.T || '%H:%M:%S', d, locale);
case 't': return '\t';
case 'u':
var day = d.getDay();
return day == 0 ? 7 : day; // 1 - 7, Monday is first day of the week
case 'v': return _strftime(locale.formats.v || '%e-%b-%Y', d, locale);
case 'w': return d.getDay(); // 0 - 6, Sunday is first day of the week
case 'Y': return d.getFullYear();
case 'y':
var y = String(d.getFullYear());
return y.slice(y.length - 2);
case 'Z':
if (_useUTC) {
return "GMT";
}
else {
var tz = d.toString().match(/\((\w+)\)/);
return tz && tz[1] || '';
}
case 'z':
if (_useUTC) {
return "+0000";
}
else {
var off = d.getTimezoneOffset();
return (off < 0 ? '+' : '-') + pad(off / 60) + pad(off % 60);
}
default: return c;
}
});
}

// Default padding is '0' and default length is 2, both are optional.
function pad(n, padding, length) {

// pad(n, <length>)
if (typeof padding === 'number') {
length = padding;
padding = '0';
}

// Defaults handle pad(n) and pad(n, <padding>)
padding = padding || '0';
length = length || 2;

var s = String(n);
while (s.length < length) s = padding + s;
return s;
}

function hours12(d) {
var hour = d.getHours();
if (hour == 0) hour = 12;
else if (hour > 12) hour -= 12;
return hour;
}

}());

0 comments on commit ab5ec4a

Please sign in to comment.