Mercurial > hg > ismi-richfaces
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/webapp/imageServer/resources/js/jquery-ui-1.10.4/tests/jquery.js Wed Oct 29 14:28:34 2014 +0000 @@ -0,0 +1,26 @@ +(function() { + +var parts = document.location.search.slice( 1 ).split( "&" ), + length = parts.length, + i = 0, + current, + version, + url; + +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 { + url = "../../jquery-" + ( version || "1.10.2" ) + ".js"; +} + +document.write( "<script src='" + url + "'></script>" ); + +}() );