Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
(Add Yumi warning) |
|||
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></b> and <b><em>The
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('
}
|