User:Kennydude/global.js

From South Park Wiki
Jump to: navigation, search
/* Right this is [[User:Kennydude|kennydude's]] spoiler warning */
if(document.getElementById("spoiler")){
 var x = document.createElement("div");
 x.setAttribute("style", "background-color:#000000;display:block;height:"+window.offsetHeight+"px;left:0;position:absolute;top:0;width:100%;z-index:100;");
 var s = document.createElement("div");
 s.setAttribute("style", "margin: 0pt auto; background: white; width: 400px; height: 200px;");
 s.innerHTML = "<h2>WARNING!</h2>The following page contains spoilers. If you have not yet seen this episode/item then this could spoil it for you. If you are really, really sure you want to continue click the button bellow you<br/><br/><input type='submit' value='I want to see this page' onclick='this.parentNode.parentNode.style.display=/"none/"' />";
 x.appendChild(s);
 document.body.appendChild(x);
}