diff options
author | Leif Johansson <leifj@sunet.se> | 2011-11-25 21:18:19 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-11-25 21:18:19 +0100 |
commit | 3909e6d89e01e4cd8777377c63037896bb95aa2f (patch) | |
tree | 59679df287c2bee55087fb5afb8d42e7f93a44fb /src/main/webapp/jquery-ui-1.9pre/tests/jquery.js | |
parent | e5f94e9be5017f627c1ccd8c6306c5cc2e200432 (diff) |
new jq layout
Diffstat (limited to 'src/main/webapp/jquery-ui-1.9pre/tests/jquery.js')
-rw-r--r-- | src/main/webapp/jquery-ui-1.9pre/tests/jquery.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main/webapp/jquery-ui-1.9pre/tests/jquery.js b/src/main/webapp/jquery-ui-1.9pre/tests/jquery.js new file mode 100644 index 0000000..101f9bb --- /dev/null +++ b/src/main/webapp/jquery-ui-1.9pre/tests/jquery.js @@ -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.7.1" ) + ".js"; +} + +document.write( "<script src='" + url + "'></script>" ); + +}() ); |