From Test-Scratch-Wiki

< User:Jakel181

Revision as of 22:24, 29 April 2019 by Jakel181 (talk | contribs)

Note: After saving, 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: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
function Popup(){localStorage.clear(),newPopup(),document.getElementById("popupClose").onclick=function(){localStorage.setItem("enquete",JSON.stringify({hiddenOn:Date.now()})),document.getElementById("popupbox").remove()}}function newPopup(){var e=document.getElementById("mw-content-text"),t=document.createElement("div");t.id="popupbox",t.style.padding="20px",t.style.maxWidth="calc(100% - 80px)",t.style.backgroundColor="#f9d44d",t.style.borderRadius="5px",t.style.color="#000000",t.style.bottom="calc(0% + 20px)",t.style.right="calc(0% + 20px)",t.style.width="300px",t.style.position="fixed",t.style.boxShadow="0px 1px 5px black",t.style.zIndex="10",t.style.transition="0.5s cubic-bezier(0.43, 0.02, 0.52, 0.96)",t.innerHTML='<img src="https://fr.scratch-wiki.info/w/images/4/4c/Enqu%C3%AAte.png" style="float:left;height:50px;padding-right: 20px;"/><button id="popupClose" style="float:right;background-color: transparent;cursor: pointer;border:none;"><u>X</u></button></html> <div style="line-height: 1.7em;color: black;font-size: 16px;font-weight: bold;">YOUR TITLE HERE</div><hr>YOUR TEXT HERE.',e.appendChild(t)}window.onload=function(){if(localStorage.getItem("closed"))try{var e=JSON.parse(localStorage.getItem("closed"));Date.now()-6048e5>e.hiddenOn&&Popup()}catch(e){Popup()}else Popup()};