survivalkit 1.0.beta.11 → 1.0.beta.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. data/CHANGELOG.markdown +4 -0
  2. data/lib/survivalkit.rb +2 -2
  3. data/stylesheets/survivalkit/fonts/_all.scss +2 -0
  4. data/stylesheets/survivalkit/fonts/_ss-social.scss +136 -0
  5. data/stylesheets/survivalkit/fonts/_ss-standard.scss +426 -0
  6. data/stylesheets/survivalkit/reset/_reset.scss +4 -0
  7. data/templates/clean/manifest.rb +0 -2
  8. data/templates/drupal/manifest.rb +0 -2
  9. data/templates/project/manifest.rb +44 -46
  10. data/templates/project/sources/FitVids/README.md +49 -0
  11. data/templates/project/sources/FitVids/jquery.fitvids.js +80 -0
  12. data/templates/project/sources/FitVids/tests.html +66 -0
  13. data/templates/project/sources/Geared-Scrolling/README.md +31 -0
  14. data/templates/project/sources/Geared-Scrolling/css/specific.css +88 -0
  15. data/templates/project/sources/Geared-Scrolling/images/col1.png +0 -0
  16. data/templates/project/sources/Geared-Scrolling/images/col2.png +0 -0
  17. data/templates/project/sources/Geared-Scrolling/images/col3.png +0 -0
  18. data/templates/project/sources/Geared-Scrolling/images/header.png +0 -0
  19. data/templates/project/sources/Geared-Scrolling/index.html +32 -0
  20. data/templates/project/sources/Geared-Scrolling/js/init.js +11 -0
  21. data/templates/project/sources/Geared-Scrolling/js/jquery.heyday.gearedscrolling.js +283 -0
  22. data/templates/project/sources/Lettering.js/README.md +58 -0
  23. data/templates/project/sources/Lettering.js/examples/index.html +135 -0
  24. data/templates/project/sources/Lettering.js/examples/style.css +171 -0
  25. data/templates/project/sources/Lettering.js/jquery.lettering.js +66 -0
  26. data/templates/project/sources/Respond/README.md +100 -0
  27. data/templates/project/sources/Respond/cross-domain/example.html +24 -0
  28. data/templates/project/sources/Respond/cross-domain/respond-proxy.html +96 -0
  29. data/templates/project/sources/Respond/cross-domain/respond.proxy.gif +0 -0
  30. data/templates/project/sources/Respond/cross-domain/respond.proxy.js +127 -0
  31. data/templates/project/sources/Respond/respond.min.js +6 -0
  32. data/templates/project/sources/Respond/respond.src.js +326 -0
  33. data/templates/project/sources/Respond/test/test.css +80 -0
  34. data/templates/project/sources/Respond/test/test.html +20 -0
  35. data/templates/project/sources/Respond/test/test2.css +8 -0
  36. data/templates/project/sources/Respond/test/unit/index.html +29 -0
  37. data/templates/project/sources/Respond/test/unit/qunit/qunit.css +226 -0
  38. data/templates/project/sources/Respond/test/unit/qunit/qunit.js +1598 -0
  39. data/templates/project/sources/Respond/test/unit/test.css +73 -0
  40. data/templates/project/sources/Respond/test/unit/test2.css +5 -0
  41. data/templates/project/sources/Respond/test/unit/test3.css +5 -0
  42. data/templates/project/sources/Respond/test/unit/tests.js +144 -0
  43. data/templates/project/sources/box-sizing-polyfill/README.md +24 -0
  44. data/templates/project/sources/box-sizing-polyfill/boxsizing.htc +501 -0
  45. data/templates/project/sources/formalize/README.txt +26 -0
  46. data/templates/project/sources/formalize/assets/css/_formalize.sass +326 -0
  47. data/templates/project/sources/formalize/assets/css/demo.css +654 -0
  48. data/templates/project/sources/formalize/assets/css/formalize.css +368 -0
  49. data/templates/project/sources/formalize/assets/css/reset.css +211 -0
  50. data/templates/project/sources/formalize/assets/css/text.css +81 -0
  51. data/templates/project/sources/formalize/assets/images/button.png +0 -0
  52. data/templates/project/sources/formalize/assets/images/select_arrow.gif +0 -0
  53. data/templates/project/sources/formalize/assets/js/dojo.formalize.js +202 -0
  54. data/templates/project/sources/formalize/assets/js/dojo.formalize.min.js +1 -0
  55. data/templates/project/sources/formalize/assets/js/extjs.formalize.js +192 -0
  56. data/templates/project/sources/formalize/assets/js/extjs.formalize.min.js +1 -0
  57. data/templates/project/sources/formalize/assets/js/jquery.formalize.js +181 -0
  58. data/templates/project/sources/formalize/assets/js/jquery.formalize.min.js +1 -0
  59. data/templates/project/sources/formalize/assets/js/mootools.formalize.js +193 -0
  60. data/templates/project/sources/formalize/assets/js/mootools.formalize.min.js +1 -0
  61. data/templates/project/sources/formalize/assets/js/prototype.formalize.js +192 -0
  62. data/templates/project/sources/formalize/assets/js/prototype.formalize.min.js +1 -0
  63. data/templates/project/sources/formalize/assets/js/yui.formalize.js +183 -0
  64. data/templates/project/sources/formalize/assets/js/yui.formalize.min.js +1 -0
  65. data/templates/project/sources/formalize/demo.html +130 -0
  66. data/templates/project/sources/formalize/dojo_demo.html +215 -0
  67. data/templates/project/sources/formalize/dojo_disabled.html +215 -0
  68. data/templates/project/sources/formalize/dojo_errors.html +215 -0
  69. data/templates/project/sources/formalize/extjs_demo.html +215 -0
  70. data/templates/project/sources/formalize/extjs_disabled.html +215 -0
  71. data/templates/project/sources/formalize/extjs_errors.html +215 -0
  72. data/templates/project/sources/formalize/jquery_demo.html +215 -0
  73. data/templates/project/sources/formalize/jquery_disabled.html +215 -0
  74. data/templates/project/sources/formalize/jquery_errors.html +215 -0
  75. data/templates/project/sources/formalize/mootools_demo.html +215 -0
  76. data/templates/project/sources/formalize/mootools_disabled.html +215 -0
  77. data/templates/project/sources/formalize/mootools_errors.html +215 -0
  78. data/templates/project/sources/formalize/prototype_demo.html +215 -0
  79. data/templates/project/sources/formalize/prototype_disabled.html +215 -0
  80. data/templates/project/sources/formalize/prototype_errors.html +215 -0
  81. data/templates/project/sources/formalize/unstyled.html +210 -0
  82. data/templates/project/sources/formalize/yui_demo.html +223 -0
  83. data/templates/project/sources/formalize/yui_disabled.html +223 -0
  84. data/templates/project/sources/formalize/yui_errors.html +223 -0
  85. data/templates/project/sources/iOS-Orientationchange-Fix/README.md +16 -0
  86. data/templates/project/sources/iOS-Orientationchange-Fix/demo.html +43 -0
  87. data/templates/project/sources/iOS-Orientationchange-Fix/ios-orientationchange-fix.js +56 -0
  88. data/templates/project/sources/jQuery-widowFix/index.html +159 -0
  89. data/templates/project/sources/jQuery-widowFix/js/jquery-1.4.3.min.js +166 -0
  90. data/templates/project/sources/jQuery-widowFix/js/jquery.widowFix-1.3.2.js +135 -0
  91. data/templates/project/sources/jQuery-widowFix/js/jquery.widowFix-1.3.2.min.js +10 -0
  92. data/templates/project/sources/jQuery-widowFix/sample.html +84 -0
  93. data/templates/project/sources/jquery-html5-placeholder-shim/jquery.html5-placeholder-shim.js +96 -0
  94. data/templates/project/sources/jquery-html5-placeholder-shim/readme.md +22 -0
  95. data/templates/project/sources/jquery-html5-placeholder-shim/test.html +103 -0
  96. data/templates/project/sources/ss-social/ss-social.js +78 -0
  97. data/templates/project/sources/ss-standard/ss-standard.js +78 -0
  98. data/templates/shared/partials/01-variables/_colors.scss +2 -6
  99. data/templates/shared/partials/01-variables/_fonts.scss +49 -2
  100. data/templates/shared/partials/01-variables/_settings.scss +48 -13
  101. data/templates/shared/partials/04-base/_all.scss +0 -2
  102. data/templates/shared/partials/04-base/_common.scss +0 -4
  103. data/templates/shared/partials/05-layout/_grids-susy.scss +4 -4
  104. data/templates/shared/style.scss +9 -9
  105. metadata +93 -5
  106. data/templates/shared/partials/04-base/_edits.scss +0 -8
  107. data/templates/shared/partials/04-base/_font-face.scss +0 -14
@@ -0,0 +1,32 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html>
3
+ <head>
4
+ <title>Heyday - Geared Scrolling</title>
5
+ <link href="css/specific.css" type="text/css" rel="stylesheet" />
6
+ </head>
7
+ <body>
8
+ <div id="Container">
9
+ <div id="Header">
10
+ <img src="images/header.png" />
11
+ </div>
12
+ <div class="columnHolder">
13
+ <div class="columnOne column">
14
+ <img src="images/col1.png" alt="columnOne" />
15
+ <div class="clear"><!-- clear --></div>
16
+ </div>
17
+ <div class="columnTwo column">
18
+ <img src="images/col2.png" alt="columnTwo" />
19
+ <div class="clear"><!-- clear --></div>
20
+ </div>
21
+ <div class="columnThree column">
22
+ <img src="images/col3.png" alt="columnThree" />
23
+ <div class="clear"><!-- clear --></div>
24
+ </div>
25
+ <div class="clear"><!-- clear --></div>
26
+ </div>
27
+ </div>
28
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
29
+ <script type="text/javascript" src="js/jquery.heyday.gearedscrolling.js"></script>
30
+ <script type="text/javascript" src="js/init.js"></script>
31
+ </body>
32
+ </html>
@@ -0,0 +1,11 @@
1
+ /*global jQuery */
2
+
3
+ "use strict";
4
+
5
+ var syncColumn;
6
+
7
+ (function ($) {
8
+ $(window).load(function () {
9
+ syncColumn = $('.columnHolder').gearedscrolling();
10
+ });
11
+ }(jQuery));
@@ -0,0 +1,283 @@
1
+ /*
2
+ *
3
+ * Copyright (c) 2010 heyday (dev [at] heyday [dot] co [dot] nz)
4
+ * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license
5
+ *
6
+ */
7
+
8
+ /**
9
+ *
10
+ * jquery.heyday.gearedscrolling
11
+ * Synchronise the scrolling of columns within a container.
12
+ *
13
+ * @name jquery.heyday.gearedscrolling
14
+ * @version 0.1
15
+ * @author James Goodman (james [at] heyday [dot] co [dot] nz)
16
+ * @requires jQuery
17
+ *
18
+ */
19
+
20
+ /*global jQuery, window, document */
21
+
22
+ (function ($) {
23
+
24
+ "use strict";
25
+
26
+ function GearedScrolling(columnHolder, options) {
27
+ var publ = {}, priv = {};
28
+
29
+
30
+ priv.defaults = {
31
+ columnSelector: '.column',
32
+ shortColumnClass: 'short',
33
+ shortColumnSelector: '.short',
34
+ tallColumnClass: 'tall',
35
+ tallColumnSelector: '.tall',
36
+ tallMarkerClass: 'tall',
37
+ staticClass: 'static',
38
+ fixedClass: 'fixed'
39
+ };
40
+
41
+
42
+ priv.init = function (columnHolder, options) {
43
+ priv.columnHolder = $(columnHolder);
44
+
45
+ priv.settings = $.extend(priv.defaults, options);
46
+
47
+ priv.initVariables();
48
+ priv.storeColumns();
49
+
50
+ priv.storePageHeights();
51
+ priv.storeScrollTop();
52
+
53
+ priv.calculateMaxHeight();
54
+ priv.findHighestColumn();
55
+ priv.splitColumnsByHeight();
56
+
57
+ priv.storeColumnTopOffset();
58
+ priv.markTallestColumn();
59
+
60
+ priv.calculateMinMaxScrollTop();
61
+
62
+ priv.addEventHandlers();
63
+ };
64
+
65
+
66
+ priv.initVariables = function () {
67
+ priv.columns = null;
68
+
69
+ priv.windowHeight = 0;
70
+ priv.documentHeight = 0;
71
+
72
+ priv.scrollTop = 0;
73
+
74
+ priv.minScrollTop = 0;
75
+ priv.maxScrollTop = 0;
76
+
77
+ priv.maxHeight = 0;
78
+
79
+ priv.columnTopOffset = 0;
80
+
81
+ priv.active = true;
82
+
83
+ priv.shortColumns = null;
84
+ priv.tallColumn = null;
85
+ };
86
+
87
+
88
+ priv.storeColumns = function () {
89
+ priv.columns = priv.columnHolder.find(priv.settings.columnSelector);
90
+ };
91
+
92
+
93
+ priv.storePageHeights = function () {
94
+ priv.windowHeight = $(window).height();
95
+ priv.documentHeight = $(document).height();
96
+ };
97
+
98
+
99
+ priv.storeScrollTop = function () {
100
+ priv.scrollTop = $(window).scrollTop();
101
+ };
102
+
103
+
104
+ priv.calculateMaxHeight = function () {
105
+ priv.columns.each(function () {
106
+ var column, columnHeight;
107
+
108
+ column = $(this);
109
+ columnHeight = column.outerHeight();
110
+
111
+ if (columnHeight > priv.maxHeight) {
112
+ priv.maxHeight = columnHeight;
113
+ }
114
+ });
115
+ };
116
+
117
+
118
+ priv.findHighestColumn = function () {
119
+ priv.columns.each(function () {
120
+ var column, columnHeight;
121
+
122
+ column = $(this);
123
+ columnHeight = column.outerHeight();
124
+
125
+ if (columnHeight < priv.maxHeight) {
126
+ column.data('initialLeft', column.offset().left);
127
+ column.css('left', column.data('initialLeft'));
128
+ column.addClass(priv.settings.shortColumnClass);
129
+ column.addClass(priv.settings.staticClass);
130
+ }
131
+
132
+ if (columnHeight === priv.maxHeight) {
133
+ column.addClass(priv.settings.tallColumnClass);
134
+ column.addClass(priv.settings.staticClass);
135
+ }
136
+ });
137
+ };
138
+
139
+
140
+ priv.splitColumnsByHeight = function () {
141
+ priv.shortColumns = priv.columnHolder.find(priv.settings.shortColumnSelector);
142
+ priv.tallColumn = priv.columnHolder.find(priv.settings.tallColumnSelector);
143
+ };
144
+
145
+
146
+ priv.storeColumnTopOffset = function () {
147
+ priv.columnTopOffset = priv.tallColumn.offset().top;
148
+ };
149
+
150
+
151
+ priv.markTallestColumn = function () {
152
+ priv.columnHolder.addClass(priv.settings.tallMarkerClass + (priv.tallColumn.index(priv.settings.columnSelector) + 1));
153
+ };
154
+
155
+
156
+ priv.calculateMinMaxScrollTop = function () {
157
+ priv.minScrollTop = 0;
158
+ priv.maxScrollTop = (priv.documentHeight - priv.windowHeight) - priv.columnTopOffset;
159
+ };
160
+
161
+
162
+ priv.addEventHandlers = function () {
163
+ priv.addScrollHandler();
164
+ priv.addResizeHandler();
165
+ };
166
+
167
+
168
+ priv.addScrollHandler = function () {
169
+ $(window).bind('scroll.synccol', function () {
170
+ var scrollTop, tallOffset, columnScrollTop;
171
+
172
+ scrollTop = $(window).scrollTop();
173
+
174
+ tallOffset = scrollTop - priv.columnTopOffset;
175
+
176
+ columnScrollTop = Math.max(tallOffset, priv.minScrollTop);
177
+ columnScrollTop = Math.min(columnScrollTop, priv.maxScrollTop);
178
+
179
+ if (scrollTop <= priv.columnTopOffset) {
180
+ priv.tallColumn.addClass(priv.settings.staticClass);
181
+ priv.shortColumns.removeClass(priv.settings.fixedClass).addClass(priv.settings.staticClass);
182
+ return;
183
+ }
184
+
185
+ priv.tallColumn.removeClass(priv.settings.staticClass);
186
+ priv.shortColumns.removeClass(priv.settings.staticClass).addClass(priv.settings.fixedClass);
187
+
188
+ priv.shortColumns.each(function () {
189
+ var top, fixedTop, column;
190
+
191
+ column = $(this);
192
+
193
+ top = columnScrollTop * ((priv.maxHeight - column.height()) / (priv.documentHeight - (priv.windowHeight + priv.columnTopOffset)));
194
+
195
+ fixedTop = top - scrollTop + priv.columnTopOffset;
196
+
197
+ column.css({
198
+ left: column.data('initialLeft'),
199
+ top: Math.round(fixedTop)
200
+ });
201
+ });
202
+ });
203
+ };
204
+
205
+
206
+ priv.addResizeHandler = function () {
207
+ $(window).bind('resize.synccol', function () {
208
+ priv.storePageHeights();
209
+ priv.calculateMinMaxScrollTop();
210
+ priv.recalculateLefts();
211
+ $(window).trigger('scroll.synccol');
212
+ });
213
+ };
214
+
215
+
216
+ priv.recalculateLefts = function () {
217
+ priv.shortColumns.each(function () {
218
+ var column, wasFixed;
219
+
220
+ column = $(this);
221
+ wasFixed = false;
222
+
223
+ if (column.hasClass(priv.settings.fixedClass)) {
224
+ wasFixed = true;
225
+ column.removeClass(priv.settings.fixedClass);
226
+ column.addClass(priv.settings.staticClass);
227
+ }
228
+
229
+ column.data('initialLeft', column.offset().left);
230
+ column.css({
231
+ left: column.data('initialLeft')
232
+ });
233
+
234
+ if (wasFixed) {
235
+ column.removeClass(priv.settings.staticClass);
236
+ column.addClass(priv.settings.fixedClass);
237
+ }
238
+ });
239
+ };
240
+
241
+
242
+ priv.removeEventHandlers = function () {
243
+ $(window).unbind('resize.synccol');
244
+ $(window).unbind('scroll.synccol');
245
+ };
246
+
247
+
248
+ publ.activate = function () {
249
+ if (!priv.active) {
250
+ priv.active = true;
251
+ priv.addEventHandlers();
252
+ $(window).trigger('resize.synccol');
253
+ }
254
+ };
255
+
256
+
257
+ publ.deactivate = function () {
258
+ if (priv.active) {
259
+ priv.active = false;
260
+ priv.removeEventHandlers();
261
+ priv.shortColumns.removeClass('fixed').addClass('static');
262
+ priv.tallColumn.addClass('static');
263
+ }
264
+ };
265
+
266
+
267
+ priv.init(columnHolder, options);
268
+
269
+
270
+ return publ;
271
+ }
272
+
273
+ $.fn.gearedscrolling = function (options) {
274
+ var instances = [];
275
+
276
+ this.each(function () {
277
+ instances.push(new GearedScrolling(this, options));
278
+ });
279
+
280
+ return (instances.length === 1) ? instances[0] : instances;
281
+ };
282
+
283
+ }(jQuery));
@@ -0,0 +1,58 @@
1
+ # Lettering.js, a jQuery plugin for radical Web Typography
2
+ We developed a lightweight, easy to use Javascript `span` injector for radical Web Typography, we're calling it "lettering-jay-ess", and we're releasing it today for free over on Github. Let me demo it for you: `</stevejobs>`
3
+
4
+ ## Individual Letter Control with Lettering.js
5
+ We'll start with some really basic markup:
6
+
7
+ <h1 class="fancy_title">Some Title</h1>
8
+
9
+ After including `jQuery 1.6.2+`, [download and include the minified version of Lettering.js](http://github.com/davatron5000/Lettering.js/downloads), then a script block with the magical `.lettering()` method:
10
+
11
+ <script>
12
+ $(document).ready(function() {
13
+    $(".fancy_title").lettering();
14
+ });
15
+ </script>
16
+
17
+ The resulting code will churn your `.fancy_title` and output the following:
18
+
19
+ <h1 class="fancy_title">
20
+ <span class="char1">S</span>
21
+ <span class="char2">o</span>
22
+ <span class="char3">m</span>
23
+ <span class="char4">e</span>
24
+ <span class="char5"></span>
25
+ <span class="char6">T</span>
26
+ <span class="char7">i</span>
27
+ <span class="char8">t</span>
28
+ <span class="char9">l</span>
29
+ <span class="char10">e</span>
30
+ </h1>
31
+
32
+ Magical. Now the text is easy to manipulate in your CSS using an ordinal `.char#` pattern. This plugin assumes basic counting skills, but it's a pretty fast and easy way to get control over every letter.
33
+
34
+ ## Consult the Wiki, Pls
35
+
36
+ There you have it, but Lettering.js does even more! If you want more information on how you can get radical with text, please read the Lettering.js Wiki
37
+
38
+ [https://github.com/davatron5000/Lettering.js/wiki](https://github.com/davatron5000/Lettering.js/wiki)
39
+
40
+ If you have an idea for the wiki, file an issue and we'll try and write something up.
41
+
42
+ ## Best Practices &amp; Kerning
43
+ We've found this to be a pretty quick and elegant solution to create typographical CSS3 posters. It's also a great solution for really custom type headings, while keeping the text selectable.
44
+
45
+ ### Best Practices
46
+ Be smart and use sparingly. You'll probably break your browser if you try to wrap every letter on your page in a `span` tag, so don't do that. Look to use this in your Headings, Blockquotes, Asides, etc.
47
+
48
+ ### Kern Well
49
+ If you're going through the trouble to load a fancy font and that word or phrase is the largest on the site, then it's important for it to be kerned well. With Lettering.js, kerning is a breeze. You can simply use `$("#id-of-what-i-want-to-kern").lettering();` and then on each `.char#`, you can set relative position or left/right margin. Works like a charm.
50
+
51
+ ### Non-Javascript Fallback
52
+ As with any kind of Javascript, have a fall back plan in case the user doesn't have javascript enabled. The bottom line is up to you, my bottom line would be "legible and on the screen". Also, use `lettering.min.js` [Download the Minified Version of Lettering.js here](http://github.com/davatron5000/Lettering.js/downloads)
53
+
54
+ ### Performance Anti-Pattern
55
+ Web performance patterns advise that you put Javascripts at the bottom of your page before your `</body>` tag. There is an unfortunate side effect where you may experiences a [FOUT (Flash of Unstyled Text)](http://paulirish.com/2009/fighting-the-font-face-fout/) when you're manipulating your text after the DOM has loaded. Unfortunately, we found the best solution to avoid/minimize the FOUT caused by this plugin is to put your scripts (jQuery, Lettering.js) in the document `<head>`. On the one hand, your page will load slower. On the other hand, a flash/restyling makes your site feel slow. Users might ultimately feel the site is faster if they don't see the FOUT.
56
+
57
+ ## Download, Fork, Commit, Please.
58
+ We really want Lettering.js to be a quality helper for web typography. If you have any feedback or suggestions, please leave those over on the Github. We're excited about typography on the web and want to help make it print quality.
@@ -0,0 +1,135 @@
1
+ <!doctype html>
2
+ <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
3
+ <!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
4
+ <!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
5
+ <!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
6
+ <!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
7
+ <!--[if (gt IE 9)|!(IE)]><!--> <html lang="en"> <!--<![endif]-->
8
+ <head>
9
+ <meta charset="utf-8">
10
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
11
+
12
+ <title>Lettering.js Examples</title>
13
+ <meta name="description" content="A jQuery Plugin that allows you to style each individual letter and more.">
14
+ <meta name="author" content="Dave Rupert">
15
+
16
+ <meta name="viewport" content="width=device-width; initial-scale=1.0">
17
+ <link rel="stylesheet" href="style.css" type="text/css" media="screen"></link>
18
+
19
+ <style type="text/css" media="screen">
20
+ .demo {
21
+ padding: 50px;
22
+ border:1px solid #ccc;
23
+ font-weight:bold;
24
+ color: red;
25
+ background:#d0d0d0;
26
+ font-size:20px;
27
+ line-height:1.5;
28
+ text-align:center;
29
+ }
30
+
31
+ .demo h1 { font-size:72px; text-transform:uppercase; margin-bottom:0px;}
32
+ .char2,
33
+ #demo2 .word2,
34
+ .line2 { color: orange; }
35
+ .char3,
36
+ .word3,
37
+ .line3 { color: yellow; }
38
+ .char4,
39
+ .line4 { color: blue; }
40
+ .char5 { color: green; }
41
+ .char6 { color: indigo; }
42
+ .char7 { color: violet; }
43
+ </style>
44
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
45
+ <script src="../jquery.lettering.js"></script>
46
+ <script>
47
+ $(document).ready(function() {
48
+ $("#demo1 h1").lettering();
49
+ $("#demo2 h1").lettering('words');
50
+ $("#demo3 p").lettering('lines');
51
+ $("#demo4 h1").lettering('words').children("span").lettering();
52
+ $("#demo5 h1").lettering().children("span").css({'display':'inline-block', '-webkit-transform':'rotate(-25deg)'});
53
+ });
54
+ </script>
55
+
56
+ </head>
57
+
58
+ <body>
59
+
60
+ <div id="container">
61
+ <header>
62
+ <h1 id="thebrand">Lettering.JS</h1>
63
+ <p>The following are some hokey examples of how you can implement LETTERING.JS.
64
+ </header>
65
+
66
+ <article id="main">
67
+ <section id='lettering-demo'>
68
+ <h2>Letters</h2>
69
+ <h4>The HTML</h4>
70
+ <pre><code> &lt;div id=&quot;demo1&quot; class=&quot;demo&quot;&gt;
71
+ &nbsp;&nbsp;&lt;h1&gt;Rainbow&lt;/h1&gt;
72
+ &lt;/div&gt;
73
+ </code></pre>
74
+
75
+ <h4>The jQuery</h4>
76
+ <pre><code>$(document).ready(function() {
77
+ &nbsp;&nbsp;$("#demo1 h1").lettering();
78
+ });
79
+ </code></pre>
80
+
81
+ <h4>The Result</h4>
82
+ <div id="demo1" class="demo">
83
+ <h1>Rainbow</h1>
84
+ </div>
85
+
86
+ </section>
87
+
88
+ <section id='words-demo'>
89
+ <h2>Words</h2>
90
+ <code><pre>$("#demo2 h1").lettering('words');</pre></code>
91
+
92
+ <h4>The Result</h4>
93
+ <div id="demo2" class="demo">
94
+ <h1>Hi, Multi Color</h1>
95
+ </div>
96
+ </section>
97
+
98
+ <section id='lines-demo'>
99
+ <h2>Lines</h2>
100
+ <code><pre>$("#demo3 p").lettering('lines');</pre></code>
101
+
102
+ <h4>The Result</h4>
103
+ <div id="demo3" class="demo">
104
+ <p>This is an amazing<br/> Revolution in Typography. <br/> The possibilities are endless: <br/> Coloring, Vertical spacing, and Kerning.</p>
105
+ </div>
106
+ </section>
107
+
108
+ <section id='advanced1-demo'>
109
+ <h2>Advanced #1: Chaining 2 Methods</h2>
110
+ <code><pre>$("#demo4 h1").lettering('words').children("span").lettering();</pre></code>
111
+ <h4>The Result</h4>
112
+ <div id="demo4" class="demo">
113
+ <h1>Double Rainbow</h1>
114
+ </div>
115
+ </section>
116
+
117
+ <section id='advanced2-demo'>
118
+ <h2>Advanced #2: Chaining and Styling</h2>
119
+ <code><pre>$("#demo5 h1").lettering()
120
+ .children("span").css({'display':'inline-block', '-webkit-transform':'rotate(-25deg)'});</pre></code>
121
+ <h4>The Result</h4>
122
+ <div id="demo5" class="demo">
123
+ <h1>WOOOoo!</h1>
124
+ </div>
125
+ </section>
126
+
127
+ </article>
128
+
129
+ <footer>
130
+ <p>&copy;2010 Dave Rupert <a href="http://daverupert.com">http://daverupert.com</a>
131
+ </footer>
132
+ </div>
133
+
134
+ </body>
135
+ </html>