comparison src/main/webapp/imageServer/resources/js/jquery-ui-1.10.4/tests/jquery.js @ 7:764f47286679

(none)
author jurzua
date Wed, 29 Oct 2014 14:28:34 +0000
parents
children
comparison
equal deleted inserted replaced
6:ded3bccf2cf9 7:764f47286679
1 (function() {
2
3 var parts = document.location.search.slice( 1 ).split( "&" ),
4 length = parts.length,
5 i = 0,
6 current,
7 version,
8 url;
9
10 for ( ; i < length; i++ ) {
11 current = parts[ i ].split( "=" );
12 if ( current[ 0 ] === "jquery" ) {
13 version = current[ 1 ];
14 break;
15 }
16 }
17
18 if ( version === "git" ) {
19 url = "http://code.jquery.com/jquery-git.js";
20 } else {
21 url = "../../jquery-" + ( version || "1.10.2" ) + ".js";
22 }
23
24 document.write( "<script src='" + url + "'></script>" );
25
26 }() );