xonecas.io
1361
Xc

xonecas.com / commit e91f44a

new folder structure and tools

Sean Caetano Martin2012-04-16 e91f44a8c23ad09a41a1ff24474c4fae3ab05835 parent 2c91951

29 files changed

This diff is too big to show in full. The first 1000 lines are below, and every file is listed with its counts.

dist/dev/css/style.css+579−0
@@ -0,0 +1,579 @@
1+/*! normalize.css 2012-03-11T12:53 UTC - http://github.com/necolas/normalize.css */
2+/* =============================================================================
3+ HTML5 display definitions
4+ ========================================================================== */
5+/*
6+ * Corrects block display not defined in IE6/7/8/9 & FF3
7+ */
8+article,
9+aside,
10+details,
11+figcaption,
12+figure,
13+footer,
14+header,
15+hgroup,
16+nav,
17+section,
18+summary {
19+ display: block;
20+}
21+/*
22+ * Corrects inline-block display not defined in IE6/7/8/9 & FF3
23+ */
24+audio,
25+canvas,
26+video {
27+ display: inline-block;
28+ *display: inline;
29+ *zoom: 1;
30+}
31+/*
32+ * Prevents modern browsers from displaying 'audio' without controls
33+ * Remove excess height in iOS5 devices
34+ */
35+audio:not([controls]) {
36+ display: none;
37+ height: 0;
38+}
39+/*
40+ * Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4
41+ * Known issue: no IE6 support
42+ */
43+[hidden] {
44+ display: none;
45+}
46+/* =============================================================================
47+ Base
48+ ========================================================================== */
49+/*
50+ * 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
51+ * http://clagnut.com/blog/348/#c790
52+ * 2. Prevents iOS text size adjust after orientation change, without disabling user zoom
53+ * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
54+ */
55+html {
56+ font-size: 100%;
57+ /* 1 */
58+
59+ -webkit-text-size-adjust: 100%;
60+ /* 2 */
61+
62+ -ms-text-size-adjust: 100%;
63+ /* 2 */
64+
65+}
66+/*
67+ * Addresses font-family inconsistency between 'textarea' and other form elements.
68+ */
69+html,
70+button,
71+input,
72+select,
73+textarea {
74+ font-family: sans-serif;
75+}
76+/*
77+ * Addresses margins handled incorrectly in IE6/7
78+ */
79+body {
80+ margin: 0;
81+}
82+/* =============================================================================
83+ Links
84+ ========================================================================== */
85+/*
86+ * Addresses outline displayed oddly in Chrome
87+ */
88+a:focus {
89+ outline: thin dotted;
90+}
91+/*
92+ * Improves readability when focused and also mouse hovered in all browsers
93+ * people.opera.com/patrickl/experiments/keyboard/test
94+ */
95+a:hover,
96+a:active {
97+ outline: 0;
98+}
99+/* =============================================================================
100+ Typography
101+ ========================================================================== */
102+/*
103+ * Addresses font sizes and margins set differently in IE6/7
104+ * Addresses font sizes within 'section' and 'article' in FF4+, Chrome, S5
105+ */
106+h1 {
107+ font-size: 2em;
108+ margin: 0.67em 0;
109+}
110+h2 {
111+ font-size: 1.5em;
112+ margin: 0.83em 0;
113+}
114+h3 {
115+ font-size: 1.17em;
116+ margin: 1em 0;
117+}
118+h4 {
119+ font-size: 1em;
120+ margin: 1.33em 0;
121+}
122+h5 {
123+ font-size: 0.83em;
124+ margin: 1.67em 0;
125+}
126+h6 {
127+ font-size: 0.75em;
128+ margin: 2.33em 0;
129+}
130+/*
131+ * Addresses styling not present in IE7/8/9, S5, Chrome
132+ */
133+abbr[title] {
134+ border-bottom: 1px dotted;
135+}
136+/*
137+ * Addresses style set to 'bolder' in FF3+, S4/5, Chrome
138+*/
139+b,
140+strong {
141+ font-weight: bold;
142+}
143+blockquote {
144+ margin: 1em 40px;
145+}
146+/*
147+ * Addresses styling not present in S5, Chrome
148+ */
149+dfn {
150+ font-style: italic;
151+}
152+/*
153+ * Addresses styling not present in IE6/7/8/9
154+ */
155+mark {
156+ background: #ff0;
157+ color: #000;
158+}
159+/*
160+ * Addresses margins set differently in IE6/7
161+ */
162+p,
163+pre {
164+ margin: 1em 0;
165+}
166+/*
167+ * Corrects font family set oddly in IE6, S4/5, Chrome
168+ * en.wikipedia.org/wiki/User:Davidgothberg/Test59
169+ */
170+pre,
171+code,
172+kbd,
173+samp {
174+ font-family: monospace, serif;
175+ _font-family: 'courier new', monospace;
176+ font-size: 1em;
177+}
178+/*
179+ * Improves readability of pre-formatted text in all browsers
180+ */
181+pre {
182+ white-space: pre;
183+ white-space: pre-wrap;
184+ word-wrap: break-word;
185+}
186+/*
187+ * 1. Addresses CSS quotes not supported in IE6/7
188+ * 2. Addresses quote property not supported in S4
189+ */
190+/* 1 */
191+q {
192+ quotes: none;
193+}
194+/* 2 */
195+q:before,
196+q:after {
197+ content: '';
198+ content: none;
199+}
200+small {
201+ font-size: 75%;
202+}
203+/*
204+ * Prevents sub and sup affecting line-height in all browsers
205+ * gist.github.com/413930
206+ */
207+sub,
208+sup {
209+ font-size: 75%;
210+ line-height: 0;
211+ position: relative;
212+ vertical-align: baseline;
213+}
214+sup {
215+ top: -0.5em;
216+}
217+sub {
218+ bottom: -0.25em;
219+}
220+/* =============================================================================
221+ Lists
222+ ========================================================================== */
223+/*
224+ * Addresses margins set differently in IE6/7
225+ */
226+dl,
227+menu,
228+ol,
229+ul {
230+ margin: 1em 0;
231+}
232+dd {
233+ margin: 0 0 0 40px;
234+}
235+/*
236+ * Addresses paddings set differently in IE6/7
237+ */
238+menu,
239+ol,
240+ul {
241+ padding: 0 0 0 40px;
242+}
243+/*
244+ * Corrects list images handled incorrectly in IE7
245+ */
246+nav ul,
247+nav ol {
248+ list-style: none;
249+ list-style-image: none;
250+}
251+/* =============================================================================
252+ Embedded content
253+ ========================================================================== */
254+/*
255+ * 1. Removes border when inside 'a' element in IE6/7/8/9, FF3
256+ * 2. Improves image quality when scaled in IE7
257+ * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
258+ */
259+img {
260+ border: 0;
261+ /* 1 */
262+
263+ -ms-interpolation-mode: bicubic;
264+ /* 2 */
265+
266+}
267+/*
268+ * Corrects overflow displayed oddly in IE9
269+ */
270+svg:not(:root) {
271+ overflow: hidden;
272+}
273+/* =============================================================================
274+ Figures
275+ ========================================================================== */
276+/*
277+ * Addresses margin not present in IE6/7/8/9, S5, O11
278+ */
279+figure {
280+ margin: 0;
281+}
282+/* =============================================================================
283+ Forms
284+ ========================================================================== */
285+/*
286+ * Corrects margin displayed oddly in IE6/7
287+ */
288+form {
289+ margin: 0;
290+}
291+/*
292+ * Define consistent border, margin, and padding
293+ */
294+fieldset {
295+ border: 1px solid #c0c0c0;
296+ margin: 0 2px;
297+ padding: 0.35em 0.625em 0.75em;
298+}
299+/*
300+ * 1. Corrects color not being inherited in IE6/7/8/9
301+ * 2. Corrects text not wrapping in FF3
302+ * 3. Corrects alignment displayed oddly in IE6/7
303+ */
304+legend {
305+ border: 0;
306+ /* 1 */
307+
308+ padding: 0;
309+ white-space: normal;
310+ /* 2 */
311+
312+ *margin-left: -7px;
313+ /* 3 */
314+
315+}
316+/*
317+ * 1. Corrects font size not being inherited in all browsers
318+ * 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome
319+ * 3. Improves appearance and consistency in all browsers
320+ */
321+button,
322+input,
323+select,
324+textarea {
325+ font-size: 100%;
326+ /* 1 */
327+
328+ margin: 0;
329+ /* 2 */
330+
331+ vertical-align: baseline;
332+ /* 3 */
333+
334+ *vertical-align: middle;
335+ /* 3 */
336+
337+}
338+/*
339+ * Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet
340+ */
341+button,
342+input {
343+ line-height: normal;
344+ /* 1 */
345+
346+}
347+/*
348+ * 1. Improves usability and consistency of cursor style between image-type 'input' and others
349+ * 2. Corrects inability to style clickable 'input' types in iOS
350+ * 3. Removes inner spacing in IE7 without affecting normal text inputs
351+ * Known issue: inner spacing remains in IE6
352+ */
353+button,
354+input[type="button"],
355+input[type="reset"],
356+input[type="submit"] {
357+ cursor: pointer;
358+ /* 1 */
359+
360+ -webkit-appearance: button;
361+ /* 2 */
362+
363+ *overflow: visible;
364+ /* 3 */
365+
366+}
367+/*
368+ * Re-set default cursor for disabled elements
369+ */
370+button[disabled],
371+input[disabled] {
372+ cursor: default;
373+}
374+/*
375+ * 1. Addresses box sizing set to content-box in IE8/9
376+ * 2. Removes excess padding in IE8/9
377+ * 3. Removes excess padding in IE7
378+ Known issue: excess padding remains in IE6
379+ */
380+input[type="checkbox"],
381+input[type="radio"] {
382+ box-sizing: border-box;
383+ /* 1 */
384+
385+ padding: 0;
386+ /* 2 */
387+
388+ *height: 13px;
389+ /* 3 */
390+
391+ *width: 13px;
392+ /* 3 */
393+
394+}
395+/*
396+ * 1. Addresses appearance set to searchfield in S5, Chrome
397+ * 2. Addresses box-sizing set to border-box in S5, Chrome (include -moz to future-proof)
398+ */
399+input[type="search"] {
400+ -webkit-appearance: textfield;
401+ /* 1 */
402+
403+ -moz-box-sizing: content-box;
404+ -webkit-box-sizing: content-box;
405+ /* 2 */
406+
407+ box-sizing: content-box;
408+}
409+/*
410+ * Removes inner padding and search cancel button in S5, Chrome on OS X
411+ */
412+input[type="search"]::-webkit-search-decoration,
413+input[type="search"]::-webkit-search-cancel-button {
414+ -webkit-appearance: none;
415+}
416+/*
417+ * Removes inner padding and border in FF3+
418+ * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
419+ */
420+button::-moz-focus-inner,
421+input::-moz-focus-inner {
422+ border: 0;
423+ padding: 0;
424+}
425+/*
426+ * 1. Removes default vertical scrollbar in IE6/7/8/9
427+ * 2. Improves readability and alignment in all browsers
428+ */
429+textarea {
430+ overflow: auto;
431+ /* 1 */
432+
433+ vertical-align: top;
434+ /* 2 */
435+
436+}
437+/* =============================================================================
438+ Tables
439+ ========================================================================== */
440+/*
441+ * Remove most spacing between table cells
442+ */
443+table {
444+ border-collapse: collapse;
445+ border-spacing: 0;
446+}
447+.grid_1 {
448+ width: 70px;
449+ margin: 0 5px;
450+ overflow: hidden;
451+ float: left;
452+ display: inline;
453+}
454+.grid_2 {
455+ width: 150px;
456+ margin: 0 5px;
457+ overflow: hidden;
458+ float: left;
459+ display: inline;
460+}
461+.grid_3 {
462+ width: 230px;
463+ margin: 0 5px;
464+ overflow: hidden;
465+ float: left;
466+ display: inline;
467+}
468+.grid_4 {
469+ width: 310px;
470+ margin: 0 5px;
471+ overflow: hidden;
472+ float: left;
473+ display: inline;
474+}
475+.grid_5 {
476+ width: 390px;
477+ margin: 0 5px;
478+ overflow: hidden;
479+ float: left;
480+ display: inline;
481+}
482+.grid_6 {
483+ width: 470px;
484+ margin: 0 5px;
485+ overflow: hidden;
486+ float: left;
487+ display: inline;
488+}
489+.grid_7 {
490+ width: 550px;
491+ margin: 0 5px;
492+ overflow: hidden;
493+ float: left;
494+ display: inline;
495+}
496+.grid_8 {
497+ width: 630px;
498+ margin: 0 5px;
499+ overflow: hidden;
500+ float: left;
501+ display: inline;
502+}
503+.grid_9 {
504+ width: 710px;
505+ margin: 0 5px;
506+ overflow: hidden;
507+ float: left;
508+ display: inline;
509+}
510+.grid_10 {
511+ width: 790px;
512+ margin: 0 5px;
513+ overflow: hidden;
514+ float: left;
515+ display: inline;
516+}
517+.grid_11 {
518+ width: 870px;
519+ margin: 0 5px;
520+ overflow: hidden;
521+ float: left;
522+ display: inline;
523+}
524+.grid_12 {
525+ width: 950px;
526+ margin: 0 5px;
527+ overflow: hidden;
528+ float: left;
529+ display: inline;
530+}
531+.row {
532+ width: 960px;
533+ margin: 0 auto;
534+ overflow: hidden;
535+}
536+.row .row {
537+ margin: 0 -5px;
538+ width: auto;
539+ display: inline-block;
540+}
541+html,
542+body {
543+ color: #333333;
544+ background-color: #eeeeee;
545+}
546+a {
547+ color: #2eaadc;
548+ text-decoration: none;
549+}
550+a:hover,
551+a:active {
552+ color: #16b4f4;
553+ text-decoration: underline;
554+}
555+a:visited {
556+ color: #46a0c4;
557+}
558+h1,
559+h2,
560+h3,
561+h4,
562+h5,
563+h6 {
564+ text-shadow: 1px 1px 1px #ffffff;
565+}
566+.modal {
567+ width: 300px;
568+ position: fixed;
569+ *position: absolute;
570+ top: 100px;
571+ left: 50%;
572+ margin-left: -150px;
573+}
574+.bottom {
575+ position: fixed;
576+ *position: absolute;
577+ bottom: 0;
578+ left: 0;
579+}
dist/dev/index.html+32−0
@@ -0,0 +1,32 @@
1+<!doctype html>
2+<html class="no-js" lang="en">
3+<head>
4+ <meta charset="utf-8">
5+ <title>Sean Caetano Martin</title>
6+ <meta name="viewport" content="width=device-width">
7+
8+ <link rel="stylesheet" href="css/style.css">
9+</head>
10+<body>
11+
12+ <div class="modal">
13+ <h1>Countdown Initiated...</h1>
14+ <p class="relative"></p>
15+ </div>
16+
17+ <div class="bottom">
18+ <h2>
19+ Looking for Sean?
20+ <small>
21+ <a href="//xonecas.tumblr.com/">Blog</a>
22+ <a href="//twitter.com/xonecas">Twitter</a>
23+ <a href="//github.com/xonecas">Github</a>
24+ </small>
25+ </h2>
26+ </div>
27+
28+ <script src="js/vendor.js"></script>
29+ <script src="js/templates.js"></script>
30+ <script src="js/script.js"></script>
31+</body>
32+</html>
dist/dev/js/script.js+247−0
@@ -0,0 +1,247 @@
1+(function ($, win, doc, undefined) {
2+ var name,
3+ defaults,
4+ Banner;
5+
6+ name = 'banner';
7+ defaults = {};
8+
9+ Banner = function (el, options) {
10+ this.el = el;
11+ this.$el = $(el);
12+ options = options || {};
13+ this.options = $.extend({}, defaults, options);
14+ this._defaults = defaults;
15+ this._name = name;
16+ this.init(this.options);
17+ };
18+
19+ Banner.prototype = {
20+ init: function (options) {
21+ this.$el.html(
22+ templates.banner.render(options.ctx)
23+ );
24+ }
25+ };
26+
27+ $.fn[name] = function (options) {
28+ return this.each(function () {
29+ if (!$.data(this, 'plugin_'+name)) {
30+ $.data(this, 'plugin_'+name, new Banner(this, options));
31+ }
32+ });
33+ };
34+}) (jQuery, window, document);
35+
36+// test function comment out after successfull build
37+/*
38+ *
39+(function () {
40+ $('<section id="banner"></section>')
41+ .banner({
42+ ctx: { name: 'Sean', description: 'crazy' }
43+ })
44+ .appendTo('body');
45+}) ();
46+*/
47+/*jshint browser:true, curly:true, eqeqeq:true, onevar:true */
48+(function (win, doc) {
49+
50+ var $banner = $('.banner'),
51+ canvas = doc.createElement('canvas'),
52+ c = canvas.getContext('2d'),
53+ radians = Math.PI /180;
54+
55+ $banner.append(canvas);
56+ canvas.width = $banner.outerWidth();
57+ canvas.height = $banner.outerHeight();
58+
59+
60+ function rrange(min, max, noFloor){
61+ var result = Math.random()*(max-min) + min;
62+ return noFloor ? result : Math.floor(result);
63+ }
64+
65+ function Particle (x, y, size, color) {
66+ this.x = x;
67+ this.y = y;
68+ this.size = size;
69+ this.color = color || rrange(1, 359);
70+ }
71+
72+ Particle.prototype = {
73+ draw: function () {
74+ c.save();
75+ c.fillStyle = "hsl("+ this.color +", 100%, 50%)";
76+ c.beginPath();
77+ c.arc(this.x, this.y, this.size, 0, Math.PI * 2, true);
78+ c.fill();
79+ c.restore();
80+ }
81+ };
82+
83+ function rain () {
84+ var dash,
85+ dashes = [],
86+ max = 100,
87+ startColor = 180,
88+ endColor = 200,
89+ startLeap = 0.2,
90+ endLeap = 2.5;
91+
92+ canvas.width = canvas.width;
93+ canvas.height = canvas.height;
94+ if (win.interval) {
95+ clearInterval(win.interval);
96+ }
97+
98+ win.interval = setInterval(function () {
99+ var i = 0;
100+
101+ c.save();
102+ c.fillStyle = 'hsla(0, 0%, 0%, 0.2)';
103+ c.fillRect(0, 0, canvas.width, canvas.height);
104+ c.restore();
105+
106+ if (dashes.length <= max) {
107+ dash = new Particle( rrange(1, canvas.width, true),
108+ rrange(1, canvas.height, true),
109+ rrange(startLeap, endLeap, true),
110+ rrange(startColor, endColor));
111+ dashes.push(dash);
112+ }
113+
114+ for (i; i < dashes.length; i++) {
115+ dash = dashes[i];
116+ dash.y = dash.y >= canvas.height ? rrange(1, canvas.height/2):
117+ dash.y + rrange(1, 6);
118+
119+ dash.draw();
120+ }
121+ }, 1000/30);
122+ }
123+
124+ //$(function () { rain(); });
125+
126+}) (window, document);
127+(function ($, win, doc, undefined) {
128+ var name,
129+ defaults,
130+ Tumblr;
131+
132+ name = 'tumblr';
133+ defaults = {};
134+
135+ Tumblr = function (el, options) {
136+ this.el = el;
137+ this.$el = $(el);
138+ this.options = $.extend({}, defaults, options);
139+ this._defaults = defaults;
140+ this._name = name;
141+ this.init(this.options);
142+ };
143+
144+ Tumblr.prototype = {
145+ init: function (options) {
146+ this.template = templates.tumblr;
147+ this.sync();
148+ },
149+
150+ sync: function () {
151+ var params, self;
152+ self = this;
153+ params = {
154+ url: '//api.tumblr.com/v2/blog/xonecas.tumblr.com/posts/text',
155+ data: this.options,
156+ dataType: 'jsonp',
157+ jsonp: 'jsonp',
158+ success: function (res) {
159+ self.syncCallback(res);
160+ }
161+ };
162+ return $.ajax(params);
163+ },
164+
165+ syncCallback: function (res) {
166+ var post, posts, len;
167+ posts = res.response.posts;
168+ for (len = posts.length; len--; ) {
169+ post = posts[len];
170+ post.human_time =
171+ moment.utc(post.timestamp * 1000).local()
172+ .format('MMMM Do YYYY, hh:mm a');
173+ }
174+ this.posts = { 'posts': posts };
175+ this.render();
176+ },
177+
178+ render: function () {
179+ this.$el.html(
180+ this.template.render(this.posts)
181+ );
182+ }
183+ };
184+
185+ $.fn[name] = function (options) {
186+ return this.each(function () {
187+ if (!$.data(this, 'plugin_'+name)) {
188+ $.data(this, 'plugin_'+name, new Tumblr(this, options));
189+ }
190+ });
191+ };
192+}) (jQuery, window, document);
193+
194+// test function comment out after successfull build
195+/*
196+ *
197+(function () {
198+ $('<section id="banner"></section>')
199+ .banner({
200+ ctx: { name: 'Sean', description: 'crazy' }
201+ })
202+ .appendTo('body');
203+}) ();
204+*/
205+$(function () {
206+ $('html').removeClass('no-js');
207+
208+ var countdown = $('.countdown'),
209+ relative = $('.relative'),
210+ end = moment('2012-07-0200:51:00 -0800');
211+
212+ moment.relativeTime.future = "%s to go...";
213+
214+ window.setInterval(function () {
215+ var start = moment();
216+ relative.html( start.from(end) );
217+ }, 1000);
218+
219+ /*
220+ $('#blog-posts').tumblr({
221+ api_key: 'IM11cPEsi3jxTeSNwF8BB9Z08UItXcYKiEDLTLvl5RYn6MBcMD',
222+ limit: 10
223+ });
224+ */
225+
226+ /*
227+ $('<section id="canvas-rings"></section>')
228+ .banner({
229+ ctx: {
230+ name: 'Canvas Rings',
231+ description: 'A small experiment with canvas.',
232+ src: '//localhost:8090'
233+ }
234+ })
235+ .appendTo('body');
236+
237+ $('<section id="2d-experiment"></section>')
238+ .banner({
239+ ctx: {
240+ name: 'Particle play',
241+ description: 'Another small experiment with canvas.',
242+ src: '//localhost:8091'
243+ }
244+ })
245+ .appendTo('body');
246+ */
247+});
dist/dev/js/templates.js+3−0
@@ -0,0 +1,3 @@
1+var templates = {};
2+templates.banner = new Hogan.Template(function(c,p,i){var _=this;_.b(i=i||"");_.b("<div class=\"row\">");_.b("\n" + i);_.b("\n" + i);_.b(" <div class=\"grid_4\">");_.b("\n" + i);_.b(" <h1>");_.b(_.v(_.f("name",c,p,0)));_.b("</h1>");_.b("\n" + i);_.b(" <p>");_.b(_.v(_.f("description",c,p,0)));_.b("</p>");_.b("\n" + i);_.b(" </div>");_.b("\n" + i);_.b("\n" + i);_.b(" <div class=\"grid_8\">");_.b("\n" + i);_.b(" <iframe src=\"");_.b(_.v(_.f("src",c,p,0)));_.b("\" seamless frame …
3+templates.tumblr = new Hogan.Template(function(c,p,i){var _=this;_.b(i=i||"");if(_.s(_.f("posts",c,p,1),c,p,0,10,126,"{{ }}")){_.rs(c,p,function(c,p,_){_.b("<li>");_.b("\n" + i);_.b(" <h3>");_.b(_.v(_.f("title",c,p,0)));_.b("</h3>");_.b("\n" + i);_.b(" <em>");_.b("\n" + i);_.b(" ");_.b(_.v(_.f("human_time",c,p,0)));_.b("\n" + i);_.b(" (<a href=\"");_.b(_.v(_.f("post_url",c,p,0)));_.b("\">Original</a>)");_.b("\n" + i);_.b(" </em>");_.b("\n" + i);_.b("</li>");_.b("\n");});c.pop();} …
dist/dev/js/vendor.js+10380−0
@@ -0,0 +1,10380 @@
1+/*!
2+ * jQuery JavaScript Library v1.7.2
3+ * http://jquery.com/
4+ *
5+ * Copyright 2011, John Resig
6+ * Dual licensed under the MIT or GPL Version 2 licenses.
7+ * http://jquery.org/license
8+ *
9+ * Includes Sizzle.js
10+ * http://sizzlejs.com/
11+ * Copyright 2011, The Dojo Foundation
12+ * Released under the MIT, BSD, and GPL Licenses.
13+ *
14+ * Date: Wed Mar 21 12:46:34 2012 -0700
15+ */
16+(function( window, undefined ) {
17+
18+// Use the correct document accordingly with window argument (sandbox)
19+var document = window.document,
20+ navigator = window.navigator,
21+ location = window.location;
22+var jQuery = (function() {
23+
24+// Define a local copy of jQuery
25+var jQuery = function( selector, context ) {
26+ // The jQuery object is actually just the init constructor 'enhanced'
27+ return new jQuery.fn.init( selector, context, rootjQuery );
28+ },
29+
30+ // Map over jQuery in case of overwrite
31+ _jQuery = window.jQuery,
32+
33+ // Map over the $ in case of overwrite
34+ _$ = window.$,
35+
36+ // A central reference to the root jQuery(document)
37+ rootjQuery,
38+
39+ // A simple way to check for HTML strings or ID strings
40+ // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
41+ quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
42+
43+ // Check if a string has a non-whitespace character in it
44+ rnotwhite = /\S/,
45+
46+ // Used for trimming whitespace
47+ trimLeft = /^\s+/,
48+ trimRight = /\s+$/,
49+
50+ // Match a standalone tag
51+ rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
52+
53+ // JSON RegExp
54+ rvalidchars = /^[\],:{}\s]*$/,
55+ rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
56+ rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
57+ rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
58+
59+ // Useragent RegExp
60+ rwebkit = /(webkit)[ \/]([\w.]+)/,
61+ ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
62+ rmsie = /(msie) ([\w.]+)/,
63+ rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
64+
65+ // Matches dashed string for camelizing
66+ rdashAlpha = /-([a-z]|[0-9])/ig,
67+ rmsPrefix = /^-ms-/,
68+
69+ // Used by jQuery.camelCase as callback to replace()
70+ fcamelCase = function( all, letter ) {
71+ return ( letter + "" ).toUpperCase();
72+ },
73+
74+ // Keep a UserAgent string for use with jQuery.browser
75+ userAgent = navigator.userAgent,
76+
77+ // For matching the engine and version of the browser
78+ browserMatch,
79+
80+ // The deferred used on DOM ready
81+ readyList,
82+
83+ // The ready event handler
84+ DOMContentLoaded,
85+
86+ // Save a reference to some core methods
87+ toString = Object.prototype.toString,
88+ hasOwn = Object.prototype.hasOwnProperty,
89+ push = Array.prototype.push,
90+ slice = Array.prototype.slice,
91+ trim = String.prototype.trim,
92+ indexOf = Array.prototype.indexOf,
93+
94+ // [[Class]] -> type pairs
95+ class2type = {};
96+
97+jQuery.fn = jQuery.prototype = {
98+ constructor: jQuery,
99+ init: function( selector, context, rootjQuery ) {
100+ var match, elem, ret, doc;
101+
102+ // Handle $(""), $(null), or $(undefined)
103+ if ( !selector ) {
104+ return this;
105+ }
106+
107+ // Handle $(DOMElement)
108+ if ( selector.nodeType ) {
109+ this.context = this[0] = selector;
110+ this.length = 1;
111+ return this;
112+ }
113+
114+ // The body element only exists once, optimize finding it
115+ if ( selector === "body" && !context && document.body ) {
116+ this.context = document;
117+ this[0] = document.body;
118+ this.selector = selector;
119+ this.length = 1;
120+ return this;
121+ }
122+
123+ // Handle HTML strings
124+ if ( typeof selector === "string" ) {
125+ // Are we dealing with HTML string or an ID?
126+ if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
127+ // Assume that strings that start and end with <> are HTML and skip the regex check
128+ match = [ null, selector, null ];
129+
130+ } else {
131+ match = quickExpr.exec( selector );
132+ }
133+
134+ // Verify a match, and that no context was specified for #id
Cut short: this commit's diff is over 1000 lines.
dist/http.js+12−0
Cut short: this commit's diff is over 1000 lines.
dist/public/css/style.css+69−0
Cut short: this commit's diff is over 1000 lines.
dist/public/index.html+32−0
Cut short: this commit's diff is over 1000 lines.
dist/public/js/script.js+1−0
Cut short: this commit's diff is over 1000 lines.
dist/public/js/templates.js+1−0
Cut short: this commit's diff is over 1000 lines.
dist/public/js/vendor.js+18−0
Cut short: this commit's diff is over 1000 lines.
src/http.js+12−0
Cut short: this commit's diff is over 1000 lines.
src/index.html+32−0
Cut short: this commit's diff is over 1000 lines.
src/init.js+43−0
Cut short: this commit's diff is over 1000 lines.
src/js/banner.js+46−0
Cut short: this commit's diff is over 1000 lines.
src/js/rain.js+80−0
Cut short: this commit's diff is over 1000 lines.
src/js/tumblr.js+78−0
Cut short: this commit's diff is over 1000 lines.
src/less/grid.less+41−0
Cut short: this commit's diff is over 1000 lines.
src/less/importer.less+44−0
Cut short: this commit's diff is over 1000 lines.
src/less/normalize.less+504−0
Cut short: this commit's diff is over 1000 lines.
src/mustache/banner.mustache+12−0
Cut short: this commit's diff is over 1000 lines.
src/mustache/tumblr.mustache+9−0
Cut short: this commit's diff is over 1000 lines.
src/vendor/jquery-1.7.2.js+9404−0
Cut short: this commit's diff is over 1000 lines.
src/vendor/moment.js+735−0
Cut short: this commit's diff is over 1000 lines.
src/vendor/template-2.0.0.js+241−0
Cut short: this commit's diff is over 1000 lines.
tool/.server_pid+1−0
Cut short: this commit's diff is over 1000 lines.
tool/access_log+545−0
Cut short: this commit's diff is over 1000 lines.
tool/error_log+7−0
Cut short: this commit's diff is over 1000 lines.
tool/watch+26−0
Cut short: this commit's diff is over 1000 lines.