MediaWiki:Monobook.js: Difference between revisions
From MusicBrainz Wiki
Jump to navigationJump to search
(add js stuff from wikiport, before migration) |
(No difference)
|
Revision as of 04:33, 7 September 2012
/* Deprecated; use [[MediaWiki:common.js]] */ /* Add rounded corners ******************************************************** * * Description: Adds the four corner divs inside #content so as to give the wiki rounded corners */ function addRoundedCorners () { var bodyContent = document.getElementById('bodyContent'); var tl = document.createElement('div'); tl.className = "tl"; var tr = document.createElement('div'); tr.className = "tr"; var bl = document.createElement('div'); bl.className = "bl"; var br = document.createElement('div'); br.className = "br"; bodyContent.parentNode.insertBefore(tl, bodyContent.nextSibling); bodyContent.parentNode.insertBefore(tr, bodyContent.nextSibling); bodyContent.parentNode.insertBefore(bl, bodyContent.nextSibling); bodyContent.parentNode.insertBefore(br, bodyContent.nextSibling); } addOnloadHook( addRoundedCorners );