| 1 | (function() { |
| 2 | // Default to the local version. |
| 3 | var path = '../libs/jquery/jquery.js'; |
| 4 | // Get any jquery=___ param from the query string. |
| 5 | var jqversion = location.search.match(/[?&]jquery=(.*?)(?=&|$)/); |
| 6 | // If a version was specified, use that version from code.jquery.com. |
| 7 | if (jqversion) { |
| 8 | path = 'http://code.jquery.com/jquery-' + jqversion[1] + '.js'; |
| 9 | } |
| 10 | // This is the only time I'll ever use document.write, I promise! |
| 11 | document.write('<script src="' + path + '"></script>'); |
| 12 | }()); |