More actions
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.
/* Added by Gabubu and big thanks to Lighty for making it!*/ //Init $(function(){ var allLinks = $("a").filter(function(){ return this.hostname && this.hostname !== location.hostname; //Filter if internal link }).click(function(e) { e.preventDefault(); LG_create_popup(this.href); }); }); function LG_create_popup(link) { var popup = document.createElement("dialog"); popup.innerHTML = "<h2>WARNING</h2><br/><p class='lg_warn'>You are leaving WiiWAD Wiki and going to <br/><strong>"+ link +"</strong><br/>do you want to continue?</p><button class='lg_btn' onclick='LG_leave_site(\""+link+"\")'>Yes</button><button class='lg_btn' onclick='LG_stay_site(event)'>No</button>" $("body","html").append(popup); popup.classList.add("lg_popup"); popup.showModal(); } function LG_leave_site(link){ location.href = link; } function LG_stay_site(e){ var popup = e.target.parentElement; popup.style.animation = 'lg_hide_popup 0.3s ease-in forwards'; popup.addEventListener('animationend', function() { popup.remove(); }) }