MediaWiki

Difference between revisions of "Monobook.js"

From Vanimedia

 
(One intermediate revision by the same user not shown)
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('https://vanisource.org/js-include/vanisearch-template-adjust.js');
 +
});

Latest revision as of 12:48, 13 June 2017

function addJs(js) { $('<script type="text/javascript" src="' + js + '"></script>').insertAfter('#globalWrapper'); }

$(document).ready(function() {
    addJs('https://vanisource.org/js-include/vanisearch-template-adjust.js');
});