mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-07-31 10:30:15 +02:00
Fixes index page.
This commit is contained in:
@@ -77,5 +77,4 @@ html.no-js( lang="en" )
|
|||||||
span.right
|
span.right
|
||||||
span.center
|
span.center
|
||||||
|
|
||||||
script( src="config.js" )
|
|
||||||
script( src="js/scripts.js" )
|
script( src="js/scripts.js" )
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
// @include "inc/**/*.js"
|
// @include "inc/**/*.js"
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: $('script[src$="/js/scripts.js"]').attr('src').replace(/\/js\/scripts.js$/, '/config.json'),
|
url: $('script[src$="scripts.js"]').attr('src').replace(/scripts.js$/, '../config.json'),
|
||||||
complete: function (data) {
|
complete: function (data) {
|
||||||
|
|
||||||
var config = JSON.parse(data.responseText.replace(/\/\*[\s\S]*?\*\/|\/\/.*?(\n|$)/g, ''));
|
var config = JSON.parse(data.responseText.replace(/\/\*[\s\S]*?\*\/|\/\/.*?(\n|$)/g, ''));
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
modulejs.require($('body').attr('id'));
|
modulejs.require($('body').attr('id'));
|
||||||
});
|
});
|
||||||
}}
|
}
|
||||||
);
|
});
|
||||||
|
|
||||||
}(jQuery));
|
}(jQuery));
|
||||||
|
Reference in New Issue
Block a user