mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-13 09:24:11 +02:00
Clean code.
This commit is contained in:
@@ -1,21 +1,23 @@
|
|||||||
(function () {
|
(function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
if (function () {
|
|
||||||
var el = document.createElement('i');
|
var el = document.createElement('i');
|
||||||
el.innerHTML = '<!--[if lt IE 10]><br><![endif]-->';
|
el.innerHTML = '<!--[if lt IE 10]><br><![endif]-->';
|
||||||
return el.getElementsByTagName('br').length;
|
var browser = el.getElementsByTagName('br').length === 0;
|
||||||
}()) {
|
|
||||||
document.documentElement.className = 'js no-browser';
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// @include "lib/modernizr-*.js"
|
if (!browser) {
|
||||||
// @include "lib/jquery-*.js"
|
document.documentElement.className = 'js no-browser';
|
||||||
// @include "lib/jquery.*.js"
|
throw 'no-browser';
|
||||||
// @include "lib/lodash-*.js"
|
}
|
||||||
// @include "lib/marked-*.js"
|
}());
|
||||||
// @include "lib/modulejs-*.js"
|
|
||||||
// @include "lib/prism-*.js"
|
// @include 'lib/modernizr-*.js'
|
||||||
|
// @include 'lib/jquery-*.js'
|
||||||
|
// @include 'lib/jquery.*.js'
|
||||||
|
// @include 'lib/lodash-*.js'
|
||||||
|
// @include 'lib/marked-*.js'
|
||||||
|
// @include 'lib/modulejs-*.js'
|
||||||
|
// @include 'lib/prism-*.js'
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
@@ -27,9 +29,7 @@ if (function () {
|
|||||||
modulejs.define('modernizr', function () { return win.Modernizr; });
|
modulejs.define('modernizr', function () { return win.Modernizr; });
|
||||||
modulejs.define('prism', function () { return win.Prism; });
|
modulejs.define('prism', function () { return win.Prism; });
|
||||||
|
|
||||||
// @include "inc/**/*.js"
|
// @include 'inc/**/*.js'
|
||||||
|
|
||||||
modulejs.require('boot');
|
modulejs.require('boot');
|
||||||
}());
|
}());
|
||||||
|
|
||||||
}());
|
|
||||||
|
Reference in New Issue
Block a user