Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
m (Update other instance of prop name) Tags: Mobile web edit Mobile edit Advanced mobile edit |
m (Update spoiler popup for Defiant) |
||
window.innerHTML = '<h2>⚠️ Spoiler Warning</h2>';
window.innerHTML += '<p style="font-size: 1em; overflow-y: auto; flex: 1;">Welcome to the Coppermind! Be aware that the wiki may have spoilers for all published works by Brandon Sanderson, <b>including <em>Yumi and the Nightmare Painter</em>
var button = document.createElement('button');
button.innerHTML = 'Proceed';
button.onclick = function () {
localStorage.setItem('
document.body.removeChild(container);
$(document.body).removeClass('spoiler-warning-blur');
$(document.body).addClass('spoiler-warning-blur');
document.body.appendChild(container);
$('#spoiler-warning__time-machine-link').click(function () { localStorage.setItem('
$('#spoiler-warning__spoiler-policy-link').click(function () { localStorage.setItem('
}
if (window.localStorage.getItem('
showDialog();
}
|