MediaWiki

Difference between revisions of "Monobook.js"

From Vanimedia

(New page: →‎Deprecated; use [[MediaWiki:common.js]]: // install Vanipedia common css document.write('<script type="text/css" src="' + 'http://vanipedia.org/w/index.php?title=MediaWiki:Monobook....)
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* Deprecated; use [[MediaWiki:common.js]] */
+
function addJs(js) { $('<script type="text/javascript" src="' + js + '"></script>').insertAfter('#globalWrapper'); }
  
// install Vanipedia common css
+
$(document).ready(function() {
document.write('<script type="text/css" src="'
+
    addJs('https://vanisource.org/js-include/vanisearch-template-adjust.js');
+ 'http://vanipedia.org/w/index.php?title=MediaWiki:Monobook.css'
+
});
+ '&action=raw&ctype=text/css"></' + 'script>');
 

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');
});