MediaWiki:Common.js
Jump to navigation
Jump to search
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
// js on this page loads globally $(function () { var e = document.getElementById('wip'); e.style["font-size"] = "32px"; e.style["font-weight"] = "700"; e.style["text-align"] = "center"; var notice = document.getElementById("notice"); notice.style["background-color"] = "rgba(255, 56, 56, .5)"; notice.style["font-size"] = "28px"; notice.style.border = "1px solid rgba(255, 56, 56, 1)"; notice.style.padding = "15px"; var cdeArray = document.getElementsByClassName('cde'); for (i = 0; i < cdeArray.length; i++) { cdeArray[i].style["background-color"] = "rgba(248, 249, 250, 1)"; cdeArray[i].style.border = "1px solid rgba(234, 236, 240, 1)"; cdeArray[i].style["font-family"] = "'Courier', monospace"; cdeArray[i].style.padding = "4px"; } }());