rails-boilerplate 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. data/.gitignore +9 -0
  2. data/.gitmodules +3 -0
  3. data/Gemfile +11 -0
  4. data/Guardfile +14 -0
  5. data/LICENSE +19 -0
  6. data/README.md +37 -0
  7. data/Rakefile +73 -0
  8. data/html5-boilerplate/.gitattributes +1 -0
  9. data/html5-boilerplate/.gitignore +41 -0
  10. data/html5-boilerplate/.htaccess +506 -0
  11. data/html5-boilerplate/404.html +38 -0
  12. data/html5-boilerplate/README.md +387 -0
  13. data/html5-boilerplate/apple-touch-icon-114x114-precomposed.png +0 -0
  14. data/html5-boilerplate/apple-touch-icon-57x57-precomposed.png +0 -0
  15. data/html5-boilerplate/apple-touch-icon-72x72-precomposed.png +0 -0
  16. data/html5-boilerplate/apple-touch-icon-precomposed.png +0 -0
  17. data/html5-boilerplate/apple-touch-icon.png +0 -0
  18. data/html5-boilerplate/build/build.xml +1051 -0
  19. data/html5-boilerplate/build/config/default.properties +116 -0
  20. data/html5-boilerplate/build/config/manifest.appcache +20 -0
  21. data/html5-boilerplate/build/config/project.properties +96 -0
  22. data/html5-boilerplate/build/createproject.sh +50 -0
  23. data/html5-boilerplate/build/project.xml +7 -0
  24. data/html5-boilerplate/build/runbuildscript.bat +6 -0
  25. data/html5-boilerplate/build/tools/ant-contrib-1.0b3.jar +0 -0
  26. data/html5-boilerplate/build/tools/closure-compiler-v1346.jar +0 -0
  27. data/html5-boilerplate/build/tools/csslint-rhino.js +11138 -0
  28. data/html5-boilerplate/build/tools/fulljshint.js +5904 -0
  29. data/html5-boilerplate/build/tools/fulljslint.js +6651 -0
  30. data/html5-boilerplate/build/tools/htmlcompressor-1.4.3.jar +0 -0
  31. data/html5-boilerplate/build/tools/jpegtran.exe +0 -0
  32. data/html5-boilerplate/build/tools/optipng-0.6.4-exe/LICENSE.txt +21 -0
  33. data/html5-boilerplate/build/tools/optipng-0.6.4-exe/optipng.exe +0 -0
  34. data/html5-boilerplate/build/tools/rhino.jar +0 -0
  35. data/html5-boilerplate/build/tools/yuicompressor-2.4.5.jar +0 -0
  36. data/html5-boilerplate/crossdomain.xml +25 -0
  37. data/html5-boilerplate/css/style.css +293 -0
  38. data/html5-boilerplate/demo/elements.html +493 -0
  39. data/html5-boilerplate/demo/hack.css +84 -0
  40. data/html5-boilerplate/demo/hack2.css +41 -0
  41. data/html5-boilerplate/demo/internet_explorer.png +0 -0
  42. data/html5-boilerplate/demo/test_tubes.png +0 -0
  43. data/html5-boilerplate/demo/tests.html +300 -0
  44. data/html5-boilerplate/favicon.ico +0 -0
  45. data/html5-boilerplate/humans.txt +43 -0
  46. data/html5-boilerplate/img/.gitignore +2 -0
  47. data/html5-boilerplate/index.html +79 -0
  48. data/html5-boilerplate/js/libs/jquery-1.6.3.js +9044 -0
  49. data/html5-boilerplate/js/libs/jquery-1.6.3.min.js +4 -0
  50. data/html5-boilerplate/js/libs/modernizr-2.0.6.min.js +4 -0
  51. data/html5-boilerplate/js/mylibs/.gitignore +2 -0
  52. data/html5-boilerplate/js/plugins.js +20 -0
  53. data/html5-boilerplate/js/script.js +8 -0
  54. data/html5-boilerplate/robots.txt +5 -0
  55. data/html5-boilerplate/test/index.html +31 -0
  56. data/html5-boilerplate/test/qunit/qunit.css +148 -0
  57. data/html5-boilerplate/test/qunit/qunit.js +1265 -0
  58. data/html5-boilerplate/test/tests.js +24 -0
  59. data/index.html.patch +62 -0
  60. data/lib/generators/boilerplate/install/install_generator.rb +33 -0
  61. data/lib/generators/boilerplate/install/templates/apple-touch-icon-114x114-precomposed.png +0 -0
  62. data/lib/generators/boilerplate/install/templates/apple-touch-icon-57x57-precomposed.png +0 -0
  63. data/lib/generators/boilerplate/install/templates/apple-touch-icon-72x72-precomposed.png +0 -0
  64. data/lib/generators/boilerplate/install/templates/apple-touch-icon-precomposed.png +0 -0
  65. data/lib/generators/boilerplate/install/templates/apple-touch-icon.png +0 -0
  66. data/lib/generators/boilerplate/install/templates/crossdomain.xml +25 -0
  67. data/lib/generators/boilerplate/install/templates/favicon.ico +0 -0
  68. data/lib/generators/boilerplate/install/templates/humans.txt +43 -0
  69. data/lib/generators/boilerplate/install/templates/index.html +60 -0
  70. data/lib/generators/boilerplate/install/templates/robots.txt +5 -0
  71. data/lib/generators/boilerplate/resource_helpers.rb +13 -0
  72. data/lib/rails_boilerplate.rb +7 -0
  73. data/lib/rails_boilerplate/version.rb +3 -0
  74. data/rails-boilerplate.gemspec +24 -0
  75. data/test/dummy/Rakefile +7 -0
  76. data/test/dummy/app/controllers/application_controller.rb +3 -0
  77. data/test/dummy/app/controllers/home_controller.rb +5 -0
  78. data/test/dummy/app/helpers/application_helper.rb +2 -0
  79. data/test/dummy/app/views/home/index.html.erb +1 -0
  80. data/test/dummy/app/views/layouts/application.html.erb +68 -0
  81. data/test/dummy/config.ru +4 -0
  82. data/test/dummy/config/application.rb +43 -0
  83. data/test/dummy/config/boot.rb +10 -0
  84. data/test/dummy/config/database.yml +22 -0
  85. data/test/dummy/config/environment.rb +5 -0
  86. data/test/dummy/config/environments/development.rb +25 -0
  87. data/test/dummy/config/environments/production.rb +49 -0
  88. data/test/dummy/config/environments/test.rb +35 -0
  89. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  90. data/test/dummy/config/initializers/inflections.rb +10 -0
  91. data/test/dummy/config/initializers/mime_types.rb +5 -0
  92. data/test/dummy/config/initializers/secret_token.rb +7 -0
  93. data/test/dummy/config/initializers/session_store.rb +8 -0
  94. data/test/dummy/config/locales/en.yml +5 -0
  95. data/test/dummy/config/routes.rb +3 -0
  96. data/test/dummy/public/404.html +26 -0
  97. data/test/dummy/public/422.html +26 -0
  98. data/test/dummy/public/500.html +26 -0
  99. data/test/dummy/public/favicon.ico +0 -0
  100. data/test/dummy/public/javascripts/application.js +2 -0
  101. data/test/dummy/public/javascripts/controls.js +965 -0
  102. data/test/dummy/public/javascripts/dragdrop.js +974 -0
  103. data/test/dummy/public/javascripts/effects.js +1123 -0
  104. data/test/dummy/public/javascripts/prototype.js +6001 -0
  105. data/test/dummy/public/javascripts/rails.js +191 -0
  106. data/test/dummy/public/stylesheets/.gitkeep +0 -0
  107. data/test/dummy/script/rails +6 -0
  108. data/test/generators/fixtures/application.css +7 -0
  109. data/test/generators/fixtures/application.js +9 -0
  110. data/test/generators/generators_test_helper.rb +8 -0
  111. data/test/generators/install_generator_test.rb +51 -0
  112. data/test/rails_boilerplate_test.rb +16 -0
  113. data/test/test_helper.rb +12 -0
  114. data/vendor/assets/javascripts/modernizr.js +4 -0
  115. data/vendor/assets/javascripts/plugins.js +20 -0
  116. data/vendor/assets/stylesheets/reset.css +293 -0
  117. metadata +167 -0
@@ -0,0 +1,21 @@
1
+
2
+ Copyright (C) 2001-2010 Cosmin Truta.
3
+
4
+ This software is provided 'as-is', without any express or implied
5
+ warranty. In no event will the author(s) be held liable for any damages
6
+ arising from the use of this software.
7
+
8
+ Permission is granted to anyone to use this software for any purpose,
9
+ including commercial applications, and to alter it and redistribute it
10
+ freely, subject to the following restrictions:
11
+
12
+ 1. The origin of this software must not be misrepresented; you must not
13
+ claim that you wrote the original software. If you use this software
14
+ in a product, an acknowledgment in the product documentation would be
15
+ appreciated but is not required.
16
+
17
+ 2. Altered source versions must be plainly marked as such, and must not
18
+ be misrepresented as being the original software.
19
+
20
+ 3. This notice may not be removed or altered from any source distribution.
21
+
@@ -0,0 +1,25 @@
1
+ <?xml version="1.0"?>
2
+ <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
3
+ <cross-domain-policy>
4
+
5
+
6
+ <!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html -->
7
+
8
+ <!-- Most restrictive policy: -->
9
+ <site-control permitted-cross-domain-policies="none"/>
10
+
11
+
12
+
13
+ <!-- Least restrictive policy: -->
14
+ <!--
15
+ <site-control permitted-cross-domain-policies="all"/>
16
+ <allow-access-from domain="*" to-ports="*" secure="false"/>
17
+ <allow-http-request-headers-from domain="*" headers="*" secure="false"/>
18
+ -->
19
+ <!--
20
+ If you host a crossdomain.xml file with allow-access-from domain="*"
21
+ and don’t understand all of the points described here, you probably
22
+ have a nasty security vulnerability. ~ simon willison
23
+ -->
24
+
25
+ </cross-domain-policy>
@@ -0,0 +1,293 @@
1
+ /*
2
+ * HTML5 ✰ Boilerplate
3
+ *
4
+ * What follows is the result of much research on cross-browser styling.
5
+ * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
6
+ * Kroc Camen, and the H5BP dev community and team.
7
+ *
8
+ * Detailed information about this CSS: h5bp.com/css
9
+ *
10
+ * ==|== normalize ==========================================================
11
+ */
12
+
13
+
14
+ /* =============================================================================
15
+ HTML5 display definitions
16
+ ========================================================================== */
17
+
18
+ article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
19
+ audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
20
+ audio:not([controls]) { display: none; }
21
+ [hidden] { display: none; }
22
+
23
+
24
+ /* =============================================================================
25
+ Base
26
+ ========================================================================== */
27
+
28
+ /*
29
+ * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
30
+ * 2. Force vertical scrollbar in non-IE
31
+ * 3. Prevent iOS text size adjust on device orientation change, without disabling user zoom: h5bp.com/g
32
+ */
33
+
34
+ html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
35
+
36
+ body { margin: 0; font-size: 13px; line-height: 1.231; }
37
+
38
+ body, button, input, select, textarea { font-family: sans-serif; color: #222; }
39
+
40
+ /*
41
+ * Remove text-shadow in selection highlight: h5bp.com/i
42
+ * These selection declarations have to be separate
43
+ * Also: hot pink! (or customize the background color to match your design)
44
+ */
45
+
46
+ ::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
47
+ ::selection { background: #fe57a1; color: #fff; text-shadow: none; }
48
+
49
+
50
+ /* =============================================================================
51
+ Links
52
+ ========================================================================== */
53
+
54
+ a { color: #00e; }
55
+ a:visited { color: #551a8b; }
56
+ a:hover { color: #06e; }
57
+ a:focus { outline: thin dotted; }
58
+
59
+ /* Improve readability when focused and hovered in all browsers: h5bp.com/h */
60
+ a:hover, a:active { outline: 0; }
61
+
62
+
63
+ /* =============================================================================
64
+ Typography
65
+ ========================================================================== */
66
+
67
+ abbr[title] { border-bottom: 1px dotted; }
68
+
69
+ b, strong { font-weight: bold; }
70
+
71
+ blockquote { margin: 1em 40px; }
72
+
73
+ dfn { font-style: italic; }
74
+
75
+ hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
76
+
77
+ ins { background: #ff9; color: #000; text-decoration: none; }
78
+
79
+ mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
80
+
81
+ /* Redeclare monospace font family: h5bp.com/j */
82
+ pre, code, kbd, samp { font-family: monospace, serif; _font-family: 'courier new', monospace; font-size: 1em; }
83
+
84
+ /* Improve readability of pre-formatted text in all browsers */
85
+ pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }
86
+
87
+ q { quotes: none; }
88
+ q:before, q:after { content: ""; content: none; }
89
+
90
+ small { font-size: 85%; }
91
+
92
+ /* Position subscript and superscript content without affecting line-height: h5bp.com/k */
93
+ sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
94
+ sup { top: -0.5em; }
95
+ sub { bottom: -0.25em; }
96
+
97
+
98
+ /* =============================================================================
99
+ Lists
100
+ ========================================================================== */
101
+
102
+ ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
103
+ dd { margin: 0 0 0 40px; }
104
+ nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }
105
+
106
+
107
+ /* =============================================================================
108
+ Embedded content
109
+ ========================================================================== */
110
+
111
+ /*
112
+ * 1. Improve image quality when scaled in IE7: h5bp.com/d
113
+ * 2. Remove the gap between images and borders on image containers: h5bp.com/e
114
+ */
115
+
116
+ img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
117
+
118
+ /*
119
+ * Correct overflow not hidden in IE9
120
+ */
121
+
122
+ svg:not(:root) { overflow: hidden; }
123
+
124
+
125
+ /* =============================================================================
126
+ Figures
127
+ ========================================================================== */
128
+
129
+ figure { margin: 0; }
130
+
131
+
132
+ /* =============================================================================
133
+ Forms
134
+ ========================================================================== */
135
+
136
+ form { margin: 0; }
137
+ fieldset { border: 0; margin: 0; padding: 0; }
138
+
139
+ /* Indicate that 'label' will shift focus to the associated form element */
140
+ label { cursor: pointer; }
141
+
142
+ /*
143
+ * 1. Correct color not inheriting in IE6/7/8/9
144
+ * 2. Correct alignment displayed oddly in IE6/7
145
+ */
146
+
147
+ legend { border: 0; *margin-left: -7px; padding: 0; }
148
+
149
+ /*
150
+ * 1. Correct font-size not inheriting in all browsers
151
+ * 2. Remove margins in FF3/4 S5 Chrome
152
+ * 3. Define consistent vertical alignment display in all browsers
153
+ */
154
+
155
+ button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
156
+
157
+ /*
158
+ * 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
159
+ * 2. Correct inner spacing displayed oddly in IE6/7
160
+ */
161
+
162
+ button, input { line-height: normal; *overflow: visible; }
163
+
164
+ /*
165
+ * Reintroduce inner spacing in 'table' to avoid overlap and whitespace issues in IE6/7
166
+ */
167
+
168
+ table button, table input { *overflow: auto; }
169
+
170
+ /*
171
+ * 1. Display hand cursor for clickable form elements
172
+ * 2. Allow styling of clickable form elements in iOS
173
+ */
174
+
175
+ button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; }
176
+
177
+ /*
178
+ * Consistent box sizing and appearance
179
+ */
180
+
181
+ input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; }
182
+ input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
183
+ input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
184
+
185
+ /*
186
+ * Remove inner padding and border in FF3/4: h5bp.com/l
187
+ */
188
+
189
+ button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
190
+
191
+ /*
192
+ * 1. Remove default vertical scrollbar in IE6/7/8/9
193
+ * 2. Allow only vertical resizing
194
+ */
195
+
196
+ textarea { overflow: auto; vertical-align: top; resize: vertical; }
197
+
198
+ /* Colors for form validity */
199
+ input:valid, textarea:valid { }
200
+ input:invalid, textarea:invalid { background-color: #f0dddd; }
201
+
202
+
203
+ /* =============================================================================
204
+ Tables
205
+ ========================================================================== */
206
+
207
+ table { border-collapse: collapse; border-spacing: 0; }
208
+ td { vertical-align: top; }
209
+
210
+
211
+ /* ==|== primary styles =====================================================
212
+ Author:
213
+ ========================================================================== */
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+ /* ==|== media queries ======================================================
231
+ PLACEHOLDER Media Queries for Responsive Design.
232
+ These override the primary ('mobile first') styles
233
+ Modify as content requires.
234
+ ========================================================================== */
235
+
236
+ @media only screen and (min-width: 480px) {
237
+ /* Style adjustments for viewports 480px and over go here */
238
+
239
+ }
240
+
241
+ @media only screen and (min-width: 768px) {
242
+ /* Style adjustments for viewports 768px and over go here */
243
+
244
+ }
245
+
246
+
247
+
248
+ /* ==|== non-semantic helper classes ========================================
249
+ Please define your styles before this section.
250
+ ========================================================================== */
251
+
252
+ /* For image replacement */
253
+ .ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; }
254
+ .ir br { display: none; }
255
+
256
+ /* Hide from both screenreaders and browsers: h5bp.com/u */
257
+ .hidden { display: none !important; visibility: hidden; }
258
+
259
+ /* Hide only visually, but have it available for screenreaders: h5bp.com/v */
260
+ .visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
261
+
262
+ /* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */
263
+ .visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
264
+
265
+ /* Hide visually and from screenreaders, but maintain layout */
266
+ .invisible { visibility: hidden; }
267
+
268
+ /* Contain floats: h5bp.com/q */
269
+ .clearfix:before, .clearfix:after { content: ""; display: table; }
270
+ .clearfix:after { clear: both; }
271
+ .clearfix { *zoom: 1; }
272
+
273
+
274
+
275
+ /* ==|== print styles =======================================================
276
+ Print styles.
277
+ Inlined to avoid required HTTP connection: h5bp.com/r
278
+ ========================================================================== */
279
+
280
+ @media print {
281
+ * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
282
+ a, a:visited { text-decoration: underline; }
283
+ a[href]:after { content: " (" attr(href) ")"; }
284
+ abbr[title]:after { content: " (" attr(title) ")"; }
285
+ .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } /* Don't show links for images, or javascript/internal links */
286
+ pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
287
+ thead { display: table-header-group; } /* h5bp.com/t */
288
+ tr, img { page-break-inside: avoid; }
289
+ img { max-width: 100% !important; }
290
+ @page { margin: 0.5cm; }
291
+ p, h2, h3 { orphans: 3; widows: 3; }
292
+ h2, h3 { page-break-after: avoid; }
293
+ }
@@ -0,0 +1,493 @@
1
+ <!doctype html>
2
+ <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
3
+ <!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
4
+ <!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
5
+ <!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
6
+ <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
7
+ <head>
8
+ <meta charset="utf-8">
9
+
10
+ <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
11
+ Remove this if you use the .htaccess -->
12
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
13
+
14
+ <title>Element Consistency Tests</title>
15
+ <meta name="description" content="">
16
+ <meta name="author" content="">
17
+
18
+ <!-- Mobile viewport optimized: j.mp/bplateviewport -->
19
+ <meta name="viewport" content="width=device-width,initial-scale=1">
20
+
21
+ <!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons -->
22
+
23
+ <!-- CSS: implied media=all -->
24
+ <link rel="stylesheet" href="../css/style.css">
25
+ <style>
26
+ /* box-sizing test */
27
+ #boxsize button,
28
+ #boxsize input,
29
+ #boxsize select,
30
+ #boxsize textarea {
31
+ width: 200px;
32
+ padding: 4px;
33
+ border: 1px solid #333;
34
+ }
35
+ </style>
36
+
37
+ <!-- All JavaScript at the bottom, except for Modernizr / Respond.
38
+ Modernizr enables HTML5 elements & feature detects; Respond is a polyfill for min/max-width CSS3 Media Queries
39
+ For optimal performance, use a custom Modernizr build: www.modernizr.com/download/ -->
40
+ <script src="../js/libs/modernizr-2.0.6.min.js"></script>
41
+ </head>
42
+
43
+ <body>
44
+
45
+ <div id="container">
46
+
47
+ <!--
48
+ demo content lovingly lifted from the azbuka project
49
+ http://code.google.com/p/azbuka/
50
+
51
+ and the bluetrip project
52
+ http://bluetrip.org/
53
+
54
+ and the normalize.css project
55
+ http://github.com/necolas/normalize.css
56
+
57
+ and peter beverloo
58
+ http://peter.sh/examples/?/html/meter-progress.html
59
+ -->
60
+
61
+ <header>
62
+ <hgroup>
63
+ <h1>Grouped Heading 1</h1>
64
+ <h2>Grouped Heading 2</h2>
65
+ </hgroup>
66
+ <nav>
67
+ <ul>
68
+ <li><a href="#">navigation item #1</a></li>
69
+ <li><a href="#">navigation item #2</a></li>
70
+ <li><a href="#">navigation item #3</a></li>
71
+ </ul>
72
+ </nav>
73
+ </header>
74
+
75
+ <h1>Heading 1</h1>
76
+ <h2>Heading 2</h2>
77
+ <h3>Heading 3</h3>
78
+ <h4>Heading 4</h4>
79
+ <h5>Heading 5</h5>
80
+ <h6>Heading 6</h6>
81
+
82
+ <section>
83
+ <h1>Section Heading 1</h1>
84
+ <article>
85
+ <h4>Article Heading 2</h4>
86
+ <address>Address: somewhere, world</address>
87
+ <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et m. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et m. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et m.</p>
88
+ <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et m. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et m. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et m.</p>
89
+ </article>
90
+ </section>
91
+
92
+ <h1>Text-level semantics</h1>
93
+
94
+ <p>
95
+ The <a href="#">a element</a> example<br>
96
+ The <abbr title="Title text">abbr element</abbr> example<br>
97
+ The <b>b element</b> example<br>
98
+ The <cite>cite element</cite> example<br>
99
+ The <code>code element</code> example<br>
100
+ The <del>del element</del> example<br>
101
+ The <dfn>dfn element</dfn> example<br>
102
+ The <em>em element</em> example<br>
103
+ The <i>i element</i> example<br>
104
+ The img element <img src="http://placekitten.com/16/16" alt=""> example<br>
105
+ The <ins>ins element</ins> example<br>
106
+ The <kbd>kbd element</kbd> example<br>
107
+ The <mark>mark element</mark> example<br>
108
+ The <q>q element <q>inside</q> a q element</q> example<br>
109
+ The <s>s element</s> example<br>
110
+ The <samp>samp element</samp> example<br>
111
+ The <small>small element</small> example<br>
112
+ The <span>span element</span> example<br>
113
+ The <strike>strike element</strike> example<br>
114
+ The <strong>strong element</strong> example<br>
115
+ The <sub>sub element</sub> example<br>
116
+ The <sup>sup element</sup> example<br>
117
+ The <var>var element</var> example<br>
118
+ The <u>u element</u> example
119
+ </p>
120
+
121
+ <h1>Embedded content</h1>
122
+
123
+ <h3>img</h3>
124
+
125
+ <img src="http://placekitten.com/100/100" alt="">
126
+ <a href="#"><img src="http://placekitten.com/100/100" alt=""></a>
127
+
128
+ <h3>svg</h3>
129
+
130
+ <svg style="width:100px; height:100px;"><circle cx="100" cy="100" r="100" fill="#ff0000"></svg>
131
+
132
+ <h1>Grouping content</h1>
133
+
134
+ <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et m.</p>
135
+
136
+ <h3>pre</h3>
137
+
138
+ <pre>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et me.</pre>
139
+
140
+ <pre><code>&lt;html>
141
+ &lt;head>
142
+ &lt;/head>
143
+ &lt;body>
144
+ &lt;div class="main"> &lt;div>
145
+ &lt;/body>
146
+ &lt;/html></code></pre>
147
+
148
+ <h3>blockquote</h3>
149
+
150
+ <blockquote>
151
+ <p>Some sort of famous witty quote marked up with a &lt;blockquote> and a child &lt;p> element.</p>
152
+ </blockquote>
153
+
154
+ <blockquote>Even better philosophical quote marked up with just a &lt;blockquote> element.</blockquote>
155
+
156
+ <h3>ordered list</h3>
157
+
158
+ <ol>
159
+ <li>list item 1</li>
160
+ <li>list item 1
161
+ <ol>
162
+ <li>list item 2</li>
163
+ <li>list item 2
164
+ <ol>
165
+ <li>list item 3</li>
166
+ <li>list item 3</li>
167
+ </ol>
168
+ </li>
169
+ <li>list item 2</li>
170
+ <li>list item 2</li>
171
+ </ol>
172
+ </li>
173
+ <li>list item 1</li>
174
+ <li>list item 1</li>
175
+ </ol>
176
+
177
+ <h3>unordered list</h3>
178
+
179
+ <ul>
180
+ <li>list item 1</li>
181
+ <li>list item 1
182
+ <ul>
183
+ <li>list item 2</li>
184
+ <li>list item 2
185
+ <ul>
186
+ <li>list item 3</li>
187
+ <li>list item 3</li>
188
+ </ul>
189
+ </li>
190
+ <li>list item 2</li>
191
+ <li>list item 2</li>
192
+ </ul>
193
+ </li>
194
+ <li>list item 1</li>
195
+ <li>list item 1</li>
196
+ </ul>
197
+
198
+ <h3>description list</h3>
199
+
200
+ <dl>
201
+ <dt>Description name</dt>
202
+ <dd>Description value</dd>
203
+ <dt>Description name</dt>
204
+ <dd>Description value</dd>
205
+ <dd>Description value</dd>
206
+ <dt>Description name</dt>
207
+ <dt>Description name</dt>
208
+ <dd>Description value</dd>
209
+ </dl>
210
+
211
+ <h3>figure</h3>
212
+
213
+ <figure>
214
+ <img src="http://placekitten.com/400/200" alt="">
215
+ <figcaption>Figcaption content</figcaption>
216
+ </figure>
217
+
218
+ <h1>Tablular data</h1>
219
+
220
+ <table summary="Jimi Hendrix albums">
221
+ <caption>
222
+ Jimi Hendrix - albums
223
+ </caption>
224
+ <thead>
225
+ <tr>
226
+ <th>Album</th>
227
+ <th>Year</th>
228
+ <th>Price</th>
229
+ </tr>
230
+ </thead>
231
+ <tfoot>
232
+ <tr>
233
+ <td>Album</td>
234
+ <td>Year</td>
235
+ <td>Price</td>
236
+ </tr>
237
+ </tfoot>
238
+ <tbody>
239
+ <tr>
240
+ <td>Are You Experienced</td>
241
+ <td>1967</td>
242
+ <td>$10.00</td>
243
+ </tr>
244
+ <tr>
245
+ <td>Axis: Bold as Love</td>
246
+ <td>1967</td>
247
+ <td>$12.00</td>
248
+ </tr>
249
+ <tr>
250
+ <td>Electric Ladyland</td>
251
+ <td>1968</td>
252
+ <td>$10.00</td>
253
+ </tr>
254
+ <tr>
255
+ <td>Band of Gypsys</td>
256
+ <td>1970</td>
257
+ <td>$12.00</td>
258
+ </tr>
259
+ </tbody>
260
+ </table>
261
+
262
+ <h1>Forms</h1>
263
+
264
+ <form>
265
+ <fieldset>
266
+ <legend>Inputs as descendents of labels (form legend)</legend>
267
+ <p><label>Text input <input type="text" value="value"></label></p>
268
+ <p><label>Text input (required) <input type="text" required></label></p>
269
+ <p><label>Text input (with pattern requirement and placeholder) <input type="text" pattern="\d{5}(-\d{4})?" title="a US Zip code, with or without the +4 exension" placeholder="12345-6789"></label></p>
270
+ <p><label>Email input <input type="email"></label></p>
271
+ <p><label>Search input <input type="search"></label></p>
272
+ <p><label>Tel input <input type="tel"></label></p>
273
+ <p><label>URL input <input type="url" placeholder="http://"></label></p>
274
+ <p><label>Password input <input type="password" value="password"></label></p>
275
+ <p><label>File input <input type="file"></label></p>
276
+
277
+ <p><label>Radio input <input type="radio" name="rad"></label></p>
278
+ <p><label>Checkbox input <input type="checkbox"></label></p>
279
+ <p><label><input type="radio" name="rad"> Radio input</label></p>
280
+ <p><label><input type="checkbox"> Checkbox input</label></p>
281
+
282
+ <p><label>Select field <select><option>Option 01</option><option>Option 02</option></select></label></p>
283
+ <p><label>Textarea <textarea cols="30" rows="5" >Textarea text</textarea></label></p>
284
+ </fieldset>
285
+
286
+ <fieldset>
287
+ <legend>Inputs as siblings of labels</legend>
288
+ <p><label for="ic">Color input</label> <input type="color" id="ic"></p>
289
+ <p><label for="in">Number input</label> <input type="number" id="in" min="0" max="10"></p>
290
+ <p><label for="ir">Range input</label> <input type="range" id="ir"></p>
291
+ <p><label for="idd">Date input</label> <input type="date" id="idd"></p>
292
+ <p><label for="idm">Month input</label> <input type="month" id="idm"></p>
293
+ <p><label for="idw">Week input</label> <input type="week" id="idw"></p>
294
+ <p><label for="idt">Datetime input</label> <input type="datetime" id="idt"></p>
295
+ <p><label for="idtl">Datetime-local input</label> <input type="datetime-local" id="idtl"></p>
296
+
297
+ <p><label for="irb">Radio input</label> <input type="radio" id="irb" name="rad"></p>
298
+ <p><label for="icb">Checkbox input</label> <input type="checkbox" id="icb"></p>
299
+ <p><input type="radio" id="irb2" name="rad"> <label for="irb2">Radio input</label></p>
300
+ <p><input type="checkbox" id="icb2"> <label for="icb2">Checkbox input</label></p>
301
+
302
+ <p><label for="s">Select field</label> <select id="s"><option>Option 01</option><option>Option 02</option></select></p>
303
+ <p><label for="t">Textarea</label> <textarea id="t" cols="30" rows="5" >Textarea text</textarea></p>
304
+ </fieldset>
305
+
306
+ <fieldset>
307
+ <legend>Clickable inputs and buttons</legend>
308
+ <p><input type="image" src="http://placekitten.com/90/24" alt="Image (input)"></p>
309
+ <p><input type="reset" value="Reset (input)"></p>
310
+ <p><input type="button" value="Button (input)"></p>
311
+ <p><input type="submit" value="Submit (input)"></p>
312
+
313
+ <p><button type="reset">Reset (button)</button></p>
314
+ <p><button type="button">Button (button)</button></p>
315
+ <p><button type="submit">Submit (button)</button></p>
316
+ </fieldset>
317
+
318
+ <fieldset id="boxsize">
319
+ <legend>box-sizing tests</legend>
320
+ <div><input type="text" value="text"></div>
321
+ <div><input type="email" value="email@example.com"></div>
322
+ <div><input type="search" value="search"></div>
323
+ <div><input type="url" value="http://"></div>
324
+ <div><input type="password" value="password"></div>
325
+
326
+ <div><input type="color"></div>
327
+ <div><input type="number"></div>
328
+ <div><input type="range"></div>
329
+ <div><input type="date"></div>
330
+ <div><input type="month"></div>
331
+ <div><input type="week"></div>
332
+ <div><input type="datetime"></div>
333
+ <div><input type="datetime-local"></div>
334
+
335
+ <div><input type="radio"></div>
336
+ <div><input type="checkbox"></div>
337
+
338
+ <div><select><option>Option 01</option><option>Option 02</option></select></div>
339
+ <div><textarea cols="30" rows="5" >Textarea text</textarea></div>
340
+
341
+ <div><input type="image" src="http://placehold.it/90x24" alt="Image (input)"></div>
342
+ <div><input type="reset" value="Reset (input)"></div>
343
+ <div><input type="button" value="Button (input)"></div>
344
+ <div><input type="submit" value="Submit (input)"></div>
345
+
346
+ <div><button type="reset">Reset (button)</button></div>
347
+ <div><button type="button">Button (button)</button></div>
348
+ <div><button type="submit">Submit (button)</button></div>
349
+ </fieldset>
350
+ </form>
351
+
352
+ <!-- thx peter beverloo: http://peter.sh/examples/?/html/meter-progress.html -->
353
+
354
+ <p id="no-support" style="color: red; margin-bottom: 12px;">
355
+ Your browser does not support these elements yet! Consider downloading a <a href="http://tools.peter.sh/download-latest-chromium.php">Chromium Nightly</a>.<br />
356
+ </p>
357
+
358
+ <h1>&lt;progress&gt;</h1>
359
+
360
+ <p>
361
+ The progress element (spec: <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#the-progress-element">4.10.16</a>) represents the completion progress of a task and can be both indeterminate as determinate.
362
+ </p>
363
+ <ul class="compact">
364
+ <li>
365
+ <label>Indeterminate</label>
366
+ <progress max="100"></progress>
367
+ </li>
368
+ <li>
369
+ <label>Progress: 0%</label>
370
+ <progress max="10" value="0"></progress>
371
+ </li>
372
+ <li>
373
+ <label>Progress: 100%</label>
374
+ <progress max="3254" value="3254"></progress>
375
+ </li>
376
+ <li>
377
+ <label>Progress: 57%</label>
378
+ <progress max="0.7" value="0.4"></progress>
379
+ </li>
380
+ <li>
381
+ <label>Javascript</label>
382
+ <progress id="progress-javascript-example"></progress>
383
+ </li>
384
+ </ul>
385
+
386
+ <h1>&lt;meter&gt;</h1>
387
+
388
+ <p>
389
+ Displaying a scalar measurement within a known range, like hard drive usage, can be done using the meter element (spec: <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#the-meter-element">4.10.17</a>)
390
+ </p>
391
+ <ul class="compact">
392
+ <li>
393
+ <label>Meter: empty</label>
394
+ <meter value="0"></meter>
395
+ </li>
396
+ <li>
397
+ <label>Meter: full</label>
398
+ <meter value="1"></meter>
399
+ </li>
400
+ <li>
401
+ <label>Meter: "a bit"</label>
402
+ <meter min=".34" max=".41" value=".36"></meter>
403
+ </li>
404
+ <li>
405
+ <label>Preferred usage</label>
406
+ <meter min="50" max="250" low="100" high="200" value="120"></meter>
407
+ </li>
408
+ <li>
409
+ <label>Too much traffic</label>
410
+ <meter min="1024" max="10240" low="2048" high="8192" value="9216"></meter>
411
+ </li>
412
+ <li>
413
+ <label>Optimum value</label>
414
+ <meter value=".5" optimum=".8"></meter>
415
+ </li>
416
+ <li>
417
+ <label>Javascript</label>
418
+ <meter id="meter-javascript-example" value="0"></meter>
419
+ </li>
420
+ </ul>
421
+
422
+ <script>
423
+ (function () {
424
+ if (! ("position" in document.createElement ("progress"))) {
425
+ var elements = document.querySelectorAll ("meter, progress");
426
+ for (var i = 0, j = elements.length; i < j; i++) {
427
+ elements [i].style.border = "1px solid red";
428
+ elements [i].style.height = "12px";
429
+ elements [i].style.display = "inline-block";
430
+ elements [i].style.webkitAppearance = "none";
431
+ }
432
+ return ;
433
+ }
434
+
435
+ document.getElementById ("no-support").style.display = "none";
436
+
437
+ /** Setup the <progress> JavaScript example **/
438
+ var progressExample = document.getElementById ("progress-javascript-example");
439
+ progressExample.min = 50;
440
+ progressExample.max = 122;
441
+
442
+ setInterval (function () {
443
+ progressExample.value = progressExample.min + Math.random () * (progressExample.max - progressExample.min);
444
+ }, 1000);
445
+
446
+ /** We'd like some fancy <meter> examples too **/
447
+ var meterExample = document.getElementById ("meter-javascript-example");
448
+ meterExample.min = 0;
449
+ meterExample.max = 100;
450
+ meterExample.value = 50;
451
+ meterExample.low = 20;
452
+ meterExample.high = 80;
453
+ meterExample.optimum = 65;
454
+
455
+ setInterval (function () {
456
+ meterExample.value = meterExample.min + Math.random () * (meterExample.max - meterExample.min);
457
+ meterExample.optimum = 65 + (5 - Math.random () * 10);
458
+ }, 1000);
459
+ })();
460
+ </script>
461
+
462
+ </div> <!--! end of #container -->
463
+
464
+
465
+ <!-- Javascript at the bottom for fast page loading -->
466
+
467
+ <!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary -->
468
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js"></script>
469
+ <script>window.jQuery || document.write('<script src="../js/libs/jquery-1.6.3.min.js"><\/script>')</script>
470
+
471
+ <!-- scripts concatenated and minified via ant build script-->
472
+ <script defer src="../js/plugins.js"></script>
473
+ <script defer src="../js/script.js"></script>
474
+ <!-- end scripts-->
475
+
476
+ <!-- Asynchronous Google Analytics snippet. Change UA-XXXXX-X to be your site's ID.
477
+ mathiasbynens.be/notes/async-analytics-snippet -->
478
+ <script>
479
+ var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview'],['_trackPageLoadTime']];
480
+ (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
481
+ g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
482
+ s.parentNode.insertBefore(g,s)}(document,'script'));
483
+ </script>
484
+
485
+ <!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
486
+ chromium.org/developers/how-tos/chrome-frame-getting-started -->
487
+ <!--[if lt IE 7 ]>
488
+ <script defer src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
489
+ <script defer>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
490
+ <![endif]-->
491
+
492
+ </body>
493
+ </html>