middleman-core 3.0.1.pre → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. data/features/cli_init.feature +1 -1
  2. data/lib/middleman-core/core_extensions/extensions.rb +1 -1
  3. data/lib/middleman-core/templates/html5/source/.htaccess +540 -0
  4. data/lib/middleman-core/templates/html5/source/404.html +155 -41
  5. data/lib/middleman-core/templates/html5/source/LICENSE.md +19 -0
  6. data/lib/middleman-core/templates/html5/source/README.md +38 -30
  7. data/lib/middleman-core/templates/html5/source/apple-touch-icon-114x114-precomposed.png +0 -0
  8. data/lib/middleman-core/templates/html5/source/apple-touch-icon-144x144-precomposed.png +0 -0
  9. data/lib/middleman-core/templates/html5/source/apple-touch-icon-57x57-precomposed.png +0 -0
  10. data/lib/middleman-core/templates/html5/source/apple-touch-icon-72x72-precomposed.png +0 -0
  11. data/lib/middleman-core/templates/html5/source/apple-touch-icon-precomposed.png +0 -0
  12. data/lib/middleman-core/templates/html5/source/apple-touch-icon.png +0 -0
  13. data/lib/middleman-core/templates/html5/source/crossdomain.xml +9 -19
  14. data/lib/middleman-core/templates/html5/source/css/main.css +298 -0
  15. data/lib/middleman-core/templates/html5/source/css/normalize.css +504 -0
  16. data/lib/middleman-core/templates/html5/source/favicon.ico +0 -0
  17. data/lib/middleman-core/templates/html5/source/humans.txt +9 -37
  18. data/lib/middleman-core/templates/html5/source/index.html +40 -67
  19. data/lib/middleman-core/templates/html5/source/js/main.js +1 -0
  20. data/lib/middleman-core/templates/html5/source/js/plugins.js +14 -11
  21. data/lib/middleman-core/templates/html5/source/js/vendor/jquery-1.8.0.min.js +2 -0
  22. data/lib/middleman-core/templates/html5/source/js/vendor/modernizr-2.6.1.min.js +4 -0
  23. data/lib/middleman-core/templates/html5/source/robots.txt +1 -2
  24. data/lib/middleman-core/version.rb +1 -1
  25. data/middleman-core-x86-mingw32.gemspec +1 -1
  26. metadata +18 -12
  27. data/lib/middleman-core/templates/html5/source/css/style.css +0 -293
  28. data/lib/middleman-core/templates/html5/source/js/libs/jquery-1.7.1.js +0 -9266
  29. data/lib/middleman-core/templates/html5/source/js/libs/jquery-1.7.1.min.js +0 -4
  30. data/lib/middleman-core/templates/html5/source/js/libs/modernizr-2.5.3.min.js +0 -4
  31. data/lib/middleman-core/templates/html5/source/js/script.js +0 -8
@@ -0,0 +1,504 @@
1
+ /*! normalize.css v1.0.1 | MIT License | git.io/normalize */
2
+
3
+ /* ==========================================================================
4
+ HTML5 display definitions
5
+ ========================================================================== */
6
+
7
+ /*
8
+ * Corrects `block` display not defined in IE 6/7/8/9 and Firefox 3.
9
+ */
10
+
11
+ article,
12
+ aside,
13
+ details,
14
+ figcaption,
15
+ figure,
16
+ footer,
17
+ header,
18
+ hgroup,
19
+ nav,
20
+ section,
21
+ summary {
22
+ display: block;
23
+ }
24
+
25
+ /*
26
+ * Corrects `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
27
+ */
28
+
29
+ audio,
30
+ canvas,
31
+ video {
32
+ display: inline-block;
33
+ *display: inline;
34
+ *zoom: 1;
35
+ }
36
+
37
+ /*
38
+ * Prevents modern browsers from displaying `audio` without controls.
39
+ * Remove excess height in iOS 5 devices.
40
+ */
41
+
42
+ audio:not([controls]) {
43
+ display: none;
44
+ height: 0;
45
+ }
46
+
47
+ /*
48
+ * Addresses styling for `hidden` attribute not present in IE 7/8/9, Firefox 3,
49
+ * and Safari 4.
50
+ * Known issue: no IE 6 support.
51
+ */
52
+
53
+ [hidden] {
54
+ display: none;
55
+ }
56
+
57
+ /* ==========================================================================
58
+ Base
59
+ ========================================================================== */
60
+
61
+ /*
62
+ * 1. Corrects text resizing oddly in IE 6/7 when body `font-size` is set using
63
+ * `em` units.
64
+ * 2. Prevents iOS text size adjust after orientation change, without disabling
65
+ * user zoom.
66
+ */
67
+
68
+ html {
69
+ font-size: 100%; /* 1 */
70
+ -webkit-text-size-adjust: 100%; /* 2 */
71
+ -ms-text-size-adjust: 100%; /* 2 */
72
+ }
73
+
74
+ /*
75
+ * Addresses `font-family` inconsistency between `textarea` and other form
76
+ * elements.
77
+ */
78
+
79
+ html,
80
+ button,
81
+ input,
82
+ select,
83
+ textarea {
84
+ font-family: sans-serif;
85
+ }
86
+
87
+ /*
88
+ * Addresses margins handled incorrectly in IE 6/7.
89
+ */
90
+
91
+ body {
92
+ margin: 0;
93
+ }
94
+
95
+ /* ==========================================================================
96
+ Links
97
+ ========================================================================== */
98
+
99
+ /*
100
+ * Addresses `outline` inconsistency between Chrome and other browsers.
101
+ */
102
+
103
+ a:focus {
104
+ outline: thin dotted;
105
+ }
106
+
107
+ /*
108
+ * Improves readability when focused and also mouse hovered in all browsers.
109
+ */
110
+
111
+ a:active,
112
+ a:hover {
113
+ outline: 0;
114
+ }
115
+
116
+ /* ==========================================================================
117
+ Typography
118
+ ========================================================================== */
119
+
120
+ /*
121
+ * Addresses font sizes and margins set differently in IE 6/7.
122
+ * Addresses font sizes within `section` and `article` in Firefox 4+, Safari 5,
123
+ * and Chrome.
124
+ */
125
+
126
+ h1 {
127
+ font-size: 2em;
128
+ margin: 0.67em 0;
129
+ }
130
+
131
+ h2 {
132
+ font-size: 1.5em;
133
+ margin: 0.83em 0;
134
+ }
135
+
136
+ h3 {
137
+ font-size: 1.17em;
138
+ margin: 1em 0;
139
+ }
140
+
141
+ h4 {
142
+ font-size: 1em;
143
+ margin: 1.33em 0;
144
+ }
145
+
146
+ h5 {
147
+ font-size: 0.83em;
148
+ margin: 1.67em 0;
149
+ }
150
+
151
+ h6 {
152
+ font-size: 0.75em;
153
+ margin: 2.33em 0;
154
+ }
155
+
156
+ /*
157
+ * Addresses styling not present in IE 7/8/9, Safari 5, and Chrome.
158
+ */
159
+
160
+ abbr[title] {
161
+ border-bottom: 1px dotted;
162
+ }
163
+
164
+ /*
165
+ * Addresses style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome.
166
+ */
167
+
168
+ b,
169
+ strong {
170
+ font-weight: bold;
171
+ }
172
+
173
+ blockquote {
174
+ margin: 1em 40px;
175
+ }
176
+
177
+ /*
178
+ * Addresses styling not present in Safari 5 and Chrome.
179
+ */
180
+
181
+ dfn {
182
+ font-style: italic;
183
+ }
184
+
185
+ /*
186
+ * Addresses styling not present in IE 6/7/8/9.
187
+ */
188
+
189
+ mark {
190
+ background: #ff0;
191
+ color: #000;
192
+ }
193
+
194
+ /*
195
+ * Addresses margins set differently in IE 6/7.
196
+ */
197
+
198
+ p,
199
+ pre {
200
+ margin: 1em 0;
201
+ }
202
+
203
+ /*
204
+ * Corrects font family set oddly in IE 6, Safari 4/5, and Chrome.
205
+ */
206
+
207
+ code,
208
+ kbd,
209
+ pre,
210
+ samp {
211
+ font-family: monospace, serif;
212
+ _font-family: 'courier new', monospace;
213
+ font-size: 1em;
214
+ }
215
+
216
+ /*
217
+ * Improves readability of pre-formatted text in all browsers.
218
+ */
219
+
220
+ pre {
221
+ white-space: pre;
222
+ white-space: pre-wrap;
223
+ word-wrap: break-word;
224
+ }
225
+
226
+ /*
227
+ * Addresses CSS quotes not supported in IE 6/7.
228
+ */
229
+
230
+ q {
231
+ quotes: none;
232
+ }
233
+
234
+ /*
235
+ * Addresses `quotes` property not supported in Safari 4.
236
+ */
237
+
238
+ q:before,
239
+ q:after {
240
+ content: '';
241
+ content: none;
242
+ }
243
+
244
+ /*
245
+ * Addresses inconsistent and variable font size in all browsers.
246
+ */
247
+
248
+ small {
249
+ font-size: 80%;
250
+ }
251
+
252
+ /*
253
+ * Prevents `sub` and `sup` affecting `line-height` in all browsers.
254
+ */
255
+
256
+ sub,
257
+ sup {
258
+ font-size: 75%;
259
+ line-height: 0;
260
+ position: relative;
261
+ vertical-align: baseline;
262
+ }
263
+
264
+ sup {
265
+ top: -0.5em;
266
+ }
267
+
268
+ sub {
269
+ bottom: -0.25em;
270
+ }
271
+
272
+ /* ==========================================================================
273
+ Lists
274
+ ========================================================================== */
275
+
276
+ /*
277
+ * Addresses margins set differently in IE 6/7.
278
+ */
279
+
280
+ dl,
281
+ menu,
282
+ ol,
283
+ ul {
284
+ margin: 1em 0;
285
+ }
286
+
287
+ dd {
288
+ margin: 0 0 0 40px;
289
+ }
290
+
291
+ /*
292
+ * Addresses paddings set differently in IE 6/7.
293
+ */
294
+
295
+ menu,
296
+ ol,
297
+ ul {
298
+ padding: 0 0 0 40px;
299
+ }
300
+
301
+ /*
302
+ * Corrects list images handled incorrectly in IE 7.
303
+ */
304
+
305
+ nav ul,
306
+ nav ol {
307
+ list-style: none;
308
+ list-style-image: none;
309
+ }
310
+
311
+ /* ==========================================================================
312
+ Embedded content
313
+ ========================================================================== */
314
+
315
+ /*
316
+ * 1. Removes border when inside `a` element in IE 6/7/8/9 and Firefox 3.
317
+ * 2. Improves image quality when scaled in IE 7.
318
+ */
319
+
320
+ img {
321
+ border: 0; /* 1 */
322
+ -ms-interpolation-mode: bicubic; /* 2 */
323
+ }
324
+
325
+ /*
326
+ * Corrects overflow displayed oddly in IE 9.
327
+ */
328
+
329
+ svg:not(:root) {
330
+ overflow: hidden;
331
+ }
332
+
333
+ /* ==========================================================================
334
+ Figures
335
+ ========================================================================== */
336
+
337
+ /*
338
+ * Addresses margin not present in IE 6/7/8/9, Safari 5, and Opera 11.
339
+ */
340
+
341
+ figure {
342
+ margin: 0;
343
+ }
344
+
345
+ /* ==========================================================================
346
+ Forms
347
+ ========================================================================== */
348
+
349
+ /*
350
+ * Corrects margin displayed oddly in IE 6/7.
351
+ */
352
+
353
+ form {
354
+ margin: 0;
355
+ }
356
+
357
+ /*
358
+ * Define consistent border, margin, and padding.
359
+ */
360
+
361
+ fieldset {
362
+ border: 1px solid #c0c0c0;
363
+ margin: 0 2px;
364
+ padding: 0.35em 0.625em 0.75em;
365
+ }
366
+
367
+ /*
368
+ * 1. Corrects color not being inherited in IE 6/7/8/9.
369
+ * 2. Corrects text not wrapping in Firefox 3.
370
+ * 3. Corrects alignment displayed oddly in IE 6/7.
371
+ */
372
+
373
+ legend {
374
+ border: 0; /* 1 */
375
+ padding: 0;
376
+ white-space: normal; /* 2 */
377
+ *margin-left: -7px; /* 3 */
378
+ }
379
+
380
+ /*
381
+ * 1. Corrects font size not being inherited in all browsers.
382
+ * 2. Addresses margins set differently in IE 6/7, Firefox 3+, Safari 5,
383
+ * and Chrome.
384
+ * 3. Improves appearance and consistency in all browsers.
385
+ */
386
+
387
+ button,
388
+ input,
389
+ select,
390
+ textarea {
391
+ font-size: 100%; /* 1 */
392
+ margin: 0; /* 2 */
393
+ vertical-align: baseline; /* 3 */
394
+ *vertical-align: middle; /* 3 */
395
+ }
396
+
397
+ /*
398
+ * Addresses Firefox 3+ setting `line-height` on `input` using `!important` in
399
+ * the UA stylesheet.
400
+ */
401
+
402
+ button,
403
+ input {
404
+ line-height: normal;
405
+ }
406
+
407
+ /*
408
+ * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
409
+ * and `video` controls.
410
+ * 2. Corrects inability to style clickable `input` types in iOS.
411
+ * 3. Improves usability and consistency of cursor style between image-type
412
+ * `input` and others.
413
+ * 4. Removes inner spacing in IE 7 without affecting normal text inputs.
414
+ * Known issue: inner spacing remains in IE 6.
415
+ */
416
+
417
+ button,
418
+ html input[type="button"], /* 1 */
419
+ input[type="reset"],
420
+ input[type="submit"] {
421
+ -webkit-appearance: button; /* 2 */
422
+ cursor: pointer; /* 3 */
423
+ *overflow: visible; /* 4 */
424
+ }
425
+
426
+ /*
427
+ * Re-set default cursor for disabled elements.
428
+ */
429
+
430
+ button[disabled],
431
+ input[disabled] {
432
+ cursor: default;
433
+ }
434
+
435
+ /*
436
+ * 1. Addresses box sizing set to content-box in IE 8/9.
437
+ * 2. Removes excess padding in IE 8/9.
438
+ * 3. Removes excess padding in IE 7.
439
+ * Known issue: excess padding remains in IE 6.
440
+ */
441
+
442
+ input[type="checkbox"],
443
+ input[type="radio"] {
444
+ box-sizing: border-box; /* 1 */
445
+ padding: 0; /* 2 */
446
+ *height: 13px; /* 3 */
447
+ *width: 13px; /* 3 */
448
+ }
449
+
450
+ /*
451
+ * 1. Addresses `appearance` set to `searchfield` in Safari 5 and Chrome.
452
+ * 2. Addresses `box-sizing` set to `border-box` in Safari 5 and Chrome
453
+ * (include `-moz` to future-proof).
454
+ */
455
+
456
+ input[type="search"] {
457
+ -webkit-appearance: textfield; /* 1 */
458
+ -moz-box-sizing: content-box;
459
+ -webkit-box-sizing: content-box; /* 2 */
460
+ box-sizing: content-box;
461
+ }
462
+
463
+ /*
464
+ * Removes inner padding and search cancel button in Safari 5 and Chrome
465
+ * on OS X.
466
+ */
467
+
468
+ input[type="search"]::-webkit-search-cancel-button,
469
+ input[type="search"]::-webkit-search-decoration {
470
+ -webkit-appearance: none;
471
+ }
472
+
473
+ /*
474
+ * Removes inner padding and border in Firefox 3+.
475
+ */
476
+
477
+ button::-moz-focus-inner,
478
+ input::-moz-focus-inner {
479
+ border: 0;
480
+ padding: 0;
481
+ }
482
+
483
+ /*
484
+ * 1. Removes default vertical scrollbar in IE 6/7/8/9.
485
+ * 2. Improves readability and alignment in all browsers.
486
+ */
487
+
488
+ textarea {
489
+ overflow: auto; /* 1 */
490
+ vertical-align: top; /* 2 */
491
+ }
492
+
493
+ /* ==========================================================================
494
+ Tables
495
+ ========================================================================== */
496
+
497
+ /*
498
+ * Remove most spacing between table cells.
499
+ */
500
+
501
+ table {
502
+ border-collapse: collapse;
503
+ border-spacing: 0;
504
+ }
@@ -1,43 +1,15 @@
1
- /* the humans responsible & colophon */
2
- /* humanstxt.org */
1
+ # humanstxt.org/
2
+ # The humans responsible & technology colophon
3
3
 
4
+ # TEAM
4
5
 
5
- /* TEAM */
6
- <your title>: <your name>
7
- Site:
8
- Twitter:
9
- Location:
6
+ <name> -- <role> -- <twitter>
10
7
 
11
- /* THANKS */
12
- Names (& URL):
8
+ # THANKS
13
9
 
14
- /* SITE */
15
- Standards: HTML5, CSS3
16
- Components: Modernizr, jQuery
17
- Software:
10
+ <name>
18
11
 
12
+ # TECHNOLOGY COLOPHON
19
13
 
20
-
21
- -o/-
22
- +oo//-
23
- :ooo+//:
24
- -ooooo///-
25
- /oooooo//:
26
- :ooooooo+//-
27
- -+oooooooo///-
28
- -://////////////+oooooooooo++////////////::
29
- :+ooooooooooooooooooooooooooooooooooooo+:::-
30
- -/+ooooooooooooooooooooooooooooooo+/::////:-
31
- -:+oooooooooooooooooooooooooooo/::///////:-
32
- --/+ooooooooooooooooooooo+::://////:-
33
- -:+ooooooooooooooooo+:://////:--
34
- /ooooooooooooooooo+//////:-
35
- -ooooooooooooooooooo////-
36
- /ooooooooo+oooooooooo//:
37
- :ooooooo+/::/+oooooooo+//-
38
- -oooooo/::///////+oooooo///-
39
- /ooo+::://////:---:/+oooo//:
40
- -o+/::///////:- -:/+o+//-
41
- :-:///////:- -:/://
42
- -////:- --//:
43
- -- -:
14
+ HTML5, CSS3
15
+ jQuery, Modernizr
@@ -1,67 +1,40 @@
1
- <!doctype html>
2
- <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
3
- <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
4
- <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
5
- <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
6
- <!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
7
- <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
8
- <head>
9
- <meta charset="utf-8">
10
-
11
- <!-- Use the .htaccess and remove these lines to avoid edge case issues.
12
- More info: h5bp.com/i/378 -->
13
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
14
-
15
- <title></title>
16
- <meta name="description" content="">
17
-
18
- <!-- Mobile viewport optimized: h5bp.com/viewport -->
19
- <meta name="viewport" content="width=device-width">
20
-
21
- <!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons -->
22
-
23
- <link rel="stylesheet" href="css/style.css">
24
-
25
- <!-- More ideas for your <head> here: h5bp.com/d/head-Tips -->
26
-
27
- <!-- All JavaScript at the bottom, except this Modernizr build.
28
- Modernizr enables HTML5 elements & feature detects for optimal performance.
29
- Create your own custom Modernizr build: www.modernizr.com/download/ -->
30
- <script src="js/libs/modernizr-2.5.3.min.js"></script>
31
- </head>
32
- <body>
33
- <!-- Prompt IE 6 users to install Chrome Frame. Remove this if you support IE 6.
34
- chromium.org/developers/how-tos/chrome-frame-getting-started -->
35
- <!--[if lt IE 7]><p class=chromeframe>Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</p><![endif]-->
36
- <header>
37
-
38
- </header>
39
- <div role="main">
40
-
41
- </div>
42
- <footer>
43
-
44
- </footer>
45
-
46
-
47
- <!-- JavaScript at the bottom for fast page loading -->
48
-
49
- <!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
50
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
51
- <script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.1.min.js"><\/script>')</script>
52
-
53
- <!-- scripts concatenated and minified via build script -->
54
- <script src="js/plugins.js"></script>
55
- <script src="js/script.js"></script>
56
- <!-- end scripts -->
57
-
58
- <!-- Asynchronous Google Analytics snippet. Change UA-XXXXX-X to be your site's ID.
59
- mathiasbynens.be/notes/async-analytics-snippet -->
60
- <script>
61
- var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
62
- (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
63
- g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
64
- s.parentNode.insertBefore(g,s)}(document,'script'));
65
- </script>
66
- </body>
67
- </html>
1
+ <!DOCTYPE html>
2
+ <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
3
+ <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
4
+ <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
5
+ <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
6
+ <head>
7
+ <meta charset="utf-8">
8
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
9
+ <title></title>
10
+ <meta name="description" content="">
11
+ <meta name="viewport" content="width=device-width">
12
+
13
+ <!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
14
+
15
+ <link rel="stylesheet" href="css/normalize.css">
16
+ <link rel="stylesheet" href="css/main.css">
17
+ <script src="js/vendor/modernizr-2.6.1.min.js"></script>
18
+ </head>
19
+ <body>
20
+ <!--[if lt IE 7]>
21
+ <p class="chromeframe">You are using an outdated browser. <a href="http://browsehappy.com/">Upgrade your browser today</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to better experience this site.</p>
22
+ <![endif]-->
23
+
24
+ <!-- Add your site or application content here -->
25
+ <p>Hello world! This is HTML5 Boilerplate.</p>
26
+
27
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
28
+ <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.8.0.min.js"><\/script>')</script>
29
+ <script src="js/plugins.js"></script>
30
+ <script src="js/main.js"></script>
31
+
32
+ <!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
33
+ <script>
34
+ var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
35
+ (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
36
+ g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
37
+ s.parentNode.insertBefore(g,s)}(document,'script'));
38
+ </script>
39
+ </body>
40
+ </html>
@@ -1,11 +1,14 @@
1
- // usage: log('inside coolFunc', this, arguments);
2
- // paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
3
- window.log = function f(){ log.history = log.history || []; log.history.push(arguments); if(this.console) { var args = arguments, newarr; args.callee = args.callee.caller; newarr = [].slice.call(args); if (typeof console.log === 'object') log.apply.call(console.log, console, newarr); else console.log.apply(console, newarr);}};
4
-
5
- // make it safe to use console.log always
6
- (function(a){function b(){}for(var c="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),d;!!(d=c.pop());){a[d]=a[d]||b;}})
7
- (function(){try{console.log();return window.console;}catch(a){return (window.console={});}}());
8
-
9
-
10
- // place any jQuery/helper plugins in here, instead of separate, slower script files.
11
-
1
+ // Avoid `console` errors in browsers that lack a console.
2
+ if (!(window.console && console.log)) {
3
+ (function() {
4
+ var noop = function() {};
5
+ var methods = ['assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline', 'profile', 'profileEnd', 'markTimeline', 'table', 'time', 'timeEnd', 'timeStamp', 'trace', 'warn'];
6
+ var length = methods.length;
7
+ var console = window.console = {};
8
+ while (length--) {
9
+ console[methods[length]] = noop;
10
+ }
11
+ }());
12
+ }
13
+
14
+ // Place any jQuery/helper plugins in here.