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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( version === "git" ) {
|
|
|
|
url = "http://code.jquery.com/jquery-git.js";
|
|
|
|
} else {
|
2014-06-10 12:26:24 +00:00
|
|
|
url = "../../../external/jquery-" + ( version || "1.10.2" ) + "/jquery.js";
|
2011-07-28 11:34:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
document.write( "<script src='" + url + "'></script>" );
|
|
|
|
|
|
|
|
}() );
|