mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2026-03-22 11:32:29 +01:00
* Initial plan * Package: Add jQuery 4.0.0 support to peerDependencies Co-authored-by: bytestream <1788397+bytestream@users.noreply.github.com> * Build: Remove package-lock.json and update .gitignore Co-authored-by: bytestream <1788397+bytestream@users.noreply.github.com> * Chore: test on jquery 4.0.0 and mockjax 2.7.0 * Chore: bump jquery.simulate.js to 1.1.1 * Chore: replace $.trim * Chore: fix test * Chore: use pushStack instead of push --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: bytestream <1788397+bytestream@users.noreply.github.com> Co-authored-by: bytestream <kieran@supportpal.com>
28 lines
580 B
JavaScript
28 lines
580 B
JavaScript
(function() {
|
|
|
|
var parts = document.location.search.slice( 1 ).split( "&" ),
|
|
length = parts.length,
|
|
scripts = document.getElementsByTagName("script"),
|
|
src = scripts[ scripts.length - 1].src,
|
|
i = 0,
|
|
current,
|
|
version = "4.0.0",
|
|
file = "http://code.jquery.com/jquery-git.js";
|
|
|
|
for ( ; i < length; i++ ) {
|
|
current = parts[ i ].split( "=" );
|
|
if ( current[ 0 ] === "jquery" ) {
|
|
version = current[ 1 ];
|
|
break;
|
|
}
|
|
}
|
|
|
|
if (version != "git") {
|
|
file = src.replace(/jquery\.js$/, "jquery-" + version + ".js");
|
|
}
|
|
|
|
|
|
document.write( "<script src='" + file + "'></script>" );
|
|
|
|
})();
|