2015-08-21 04:13:44 +00:00
|
|
|
( function() {
|
2021-06-06 22:58:12 +00:00
|
|
|
"use strict";
|
2015-04-03 19:21:16 +00:00
|
|
|
|
|
|
|
function includeStyle( url ) {
|
|
|
|
document.write( "<link rel='stylesheet' href='../../../" + url + "'>" );
|
|
|
|
}
|
|
|
|
|
|
|
|
// Find the script element
|
|
|
|
var scripts = document.getElementsByTagName( "script" );
|
|
|
|
var script = scripts[ scripts.length - 1 ];
|
|
|
|
|
|
|
|
// Load the modules
|
|
|
|
var modules = script.getAttribute( "data-modules" );
|
|
|
|
if ( modules ) {
|
|
|
|
modules = modules.split( /\s+/ );
|
|
|
|
for ( var i = 0; i < modules.length; i++ ) {
|
|
|
|
includeStyle( "themes/base/" + modules[ i ] + ".css" );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Load the QUnit stylesheet
|
|
|
|
includeStyle( "external/qunit/qunit.css" );
|
|
|
|
|
|
|
|
} )();
|