Difference between revisions of "Monobook.js"
From Vanimedia
Line 1: | Line 1: | ||
function addJs(js) { $('<script type="text/javascript" src="' + js + '"></script>').insertAfter('#globalWrapper'); } | function addJs(js) { $('<script type="text/javascript" src="' + js + '"></script>').insertAfter('#globalWrapper'); } | ||
− | addJs('http://vanisource.org/js-include/vanisearch-template-adjust.js'); | + | $(document).ready(function() { |
+ | addJs('http://vanisource.org/js-include/vanisearch-template-adjust.js'); | ||
+ | }); |
Revision as of 12:45, 4 June 2017
function addJs(js) { $('<script type="text/javascript" src="' + js + '"></script>').insertAfter('#globalWrapper'); } $(document).ready(function() { addJs('http://vanisource.org/js-include/vanisearch-template-adjust.js'); });