mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-10 00:42:06 +00:00

Sync up to the same version we have on the commitfest app, which will also be required for eventual django 1.11 support.
14 lines
675 B
JavaScript
14 lines
675 B
JavaScript
(function() {
|
|
// Get any jquery=___ param from the query string.
|
|
var jqversion = location.search.match(/[?&]jquery=(.*?)(?=&|$)/);
|
|
var uiversion = location.search.match(/[?&]ui=(.*?)(?=&|$)/);
|
|
var path;
|
|
window.jqversion = jqversion && jqversion[1] || '1.11.2';
|
|
window.uiversion = uiversion && uiversion[1] || '1.11.4';
|
|
jqpath = 'http://code.jquery.com/jquery-' + window.jqversion + '.js';
|
|
uipath = 'http://code.jquery.com/ui/' + window.uiversion + '/jquery-ui.js';
|
|
// This is the only time I'll ever use document.write, I promise!
|
|
document.write('<script src="' + jqpath + '"></script>');
|
|
document.write('<script src="' + uipath + '"></script>');
|
|
}());
|