MediaWiki

Monobook.js: Difference between revisions

No edit summary
No edit summary
 
(48 intermediate revisions by 4 users not shown)
Line 1: Line 1:
/* Deprecated; use [[MediaWiki:common.js]] */
function addJs(js) { $('<script type="text/javascript" src="' + js + '"></script>').insertAfter('#globalWrapper'); }


// [[User:Henrik/sandbox/google-search]] (please include this line)
$(document).ready(function() {
function install_search()
    addJs('https://vanisource.org/js-include/vanisearch-template-adjust.js');
{
});
document.getElementById('searchBody').innerHTML+='<script type="text/javascript" src="'
+ 'http://vanipedia.org/w/index.php?title=Mediawiki:GoogleSearch.js'
+ '&action=raw&ctype=text/javascript"></' + 'script>';
}
addOnloadHook(install_search);

Latest revision as of 06:29, 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');
});