2011-07-28 11:34:31 +00:00
|
|
|
(function() {
|
|
|
|
|
2014-09-03 12:37:51 +00:00
|
|
|
var current, version, url,
|
|
|
|
parts = document.location.search.slice( 1 ).split( "&" ),
|
2011-07-28 11:34:31 +00:00
|
|
|
length = parts.length,
|
2014-09-03 12:37:51 +00:00
|
|
|
i = 0;
|
2011-07-28 11:34:31 +00:00
|
|
|
|
|
|
|
for ( ; i < length; i++ ) {
|
|
|
|
current = parts[ i ].split( "=" );
|
|
|
|
if ( current[ 0 ] === "jquery" ) {
|
|
|
|
version = current[ 1 ];
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-10 18:19:16 +00:00
|
|
|
if ( version === "git" || version === "git1" ) {
|
|
|
|
url = "http://code.jquery.com/jquery-" + version + ".js";
|
2011-07-28 11:34:31 +00:00
|
|
|
} else {
|
2015-02-23 19:01:03 +00:00
|
|
|
url = "../../../external/jquery-" + ( version || "1.11.2" ) + "/jquery.js";
|
2011-07-28 11:34:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
document.write( "<script src='" + url + "'></script>" );
|
|
|
|
|
|
|
|
}() );
|