Difference between revisions of "MediaWiki:Common.js"
From AngloScottish
(Created page with "→Any JavaScript here will be loaded for all users on every page load.: function positionSearch() { if (skin=='monobook' && document.getElementById('p-search') && docum...") |
(No difference)
|
Latest revision as of 13:10, 5 July 2013
/* Any JavaScript here will be loaded for all users on every page load. */ function positionSearch() { if (skin=='monobook' && document.getElementById('p-search') && document.getElementById('p-logo')) { var searchDiv = document.getElementById('p-search'); var sidebarDiv = document.getElementById('p-logo').nextSibling; searchDiv.parentNode.removeChild(searchDiv); sidebarDiv.parentNode.insertBefore(searchDiv,sidebarDiv); } } addOnloadHook(positionSearch);