MediaWiki:Wikia.js

/* Spoiler Popup - by XGlass Reflection */ //Make sure cookies are enabled if($.cookie('closePolicy') != 'close' && wgUserName) { $.cookie('closePolicy','enabled'); if($.cookie('closePolicy') == 'enabled') { var $optionsWindowHTML = $.showCustomModal( ' Welcome to the Shingeki no Kyojin Wiki! ', 'Please be aware before progressing that is wiki contains heavy spoilers on the future plot of the story. Before you progress, we'd like you to take a look at our spoiler policy!.', {				id: "optionsWindow",				width: 600,				buttons: [				{					id: "agree",					message: "Okay, I understand.",					handler: function {						closePolicy;					}				}				]			}); $(".close").click(function { closePolicy; }); function closePolicy { $.cookie('closePolicy','close',{expires: 365}); var dialog = $('#optionsWindow'); dialog.closeModal; }	} }