mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-27 13:34:30 -04:00
40 lines
1 KiB
JavaScript
40 lines
1 KiB
JavaScript
|
|
// jQuery libs
|
|
// -----------
|
|
// @include "lib/jquery-*.js"
|
|
// @include "lib/jquery.*.js"
|
|
|
|
// other libs
|
|
// ----------
|
|
// @include "lib/underscore-1.3.3.js"
|
|
// @include "lib/amplify-1.1.0.min.js"
|
|
// @include "lib/modulejs-0.2.js"
|
|
// @include "lib/moment-1.7.0.js"
|
|
// @include "lib/json2-2011.10.19.js"
|
|
// @include "lib/base64.js"
|
|
// @include "lib/spin-1.2.5.min.js"
|
|
|
|
// h5ai
|
|
// ----
|
|
(function ($) {
|
|
'use strict';
|
|
|
|
// @include "inc/**/*.js"
|
|
|
|
$(function () {
|
|
/*global H5AI_CONFIG, amplify, Base64, jQuery, Modernizr, moment, _ */
|
|
|
|
// `jQuery`, `moment` and `underscore` are itself functions,
|
|
// so they have to be wrapped to not be handled as constructors.
|
|
modulejs.define('config', H5AI_CONFIG);
|
|
modulejs.define('amplify', amplify);
|
|
modulejs.define('base64', Base64);
|
|
modulejs.define('$', function () { return jQuery; });
|
|
modulejs.define('modernizr', Modernizr);
|
|
modulejs.define('moment', function () { return moment; });
|
|
modulejs.define('_', function () { return _; });
|
|
|
|
modulejs.require($('body').attr('id'));
|
|
});
|
|
|
|
}(jQuery));
|