MediaWiki talk:AlertBar/Source.js

Rewrite
 $(function {   $.get(mw.config.get('wgServer') + '/wiki/Project:HeaderAlert', function(data) { var WikiaHeader = document.getElementById('WikiHeader'); var MonobookHeader = document.getElementById('firstHeading'); var div = document.createElement('div'); div.className = 'alertbox'; div.style.backgroundColor = "#FF3131"; div.style.borderColor = "#FFF"; div.style.fontSize = '10px', div.style.borderPadding = '1px'; div.style.color = "#FFF"; div.innerHTML = GetMsg; if (WikiaHeader) { WikiaHeader.appendChild(div); } else if (MonobookHeader) { MonobookHeader.appendChild(div); }   }); });

骑士盔甲 22:05, November 8, 2015 (UTC)