first commit
This commit is contained in:
14
WebRoot/node_modules/jquery-backstretch/libs/jquery-loader.js
generated
vendored
Normal file
14
WebRoot/node_modules/jquery-backstretch/libs/jquery-loader.js
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
(function() {
|
||||
// Get any jquery=___ param from the query string.
|
||||
var jqversion = location.search.match(/[?&]jquery=(.*?)(?=&|$)/);
|
||||
var path;
|
||||
if (jqversion) {
|
||||
// A version was specified, load that version from code.jquery.com.
|
||||
path = 'http://code.jquery.com/jquery-' + jqversion[1] + '.js';
|
||||
} else {
|
||||
// No version was specified, load the local version.
|
||||
path = '../libs/jquery/jquery.js';
|
||||
}
|
||||
// This is the only time I'll ever use document.write, I promise!
|
||||
document.write('<script src="' + path + '"></script>');
|
||||
}());
|
||||
Reference in New Issue
Block a user