User:Ginrikuzuma/global.js

/* I have little idea of what I am doing... */

function includePage(name) { document.write('<\/script>'); }

$(document).ready(function {

/* Showing/hiding spoilers */ $("div.spoiler").each(function {		var $spoiler = $(this).removeClass("spoilerCss");		var $spoilerstart = $spoiler.prev(".spoilerStart");		var $spoilerend = $spoiler.next(".spoilerEnd");		$spoilerend.appendTo($spoiler).css("width", "100%").css("margin-top", "12px");		$spoiler.hide;		$("", { href: "#", style: "margin-left:30px", text: "[Click here to show/hide the spoiler content.]" }).click(function { $spoiler.slideToggle; return false; }).appendTo($spoilerstart.find("div:first"));	}); /* Oasis Main Page fix */ if ($("#HOME_TOP_RIGHT_BOXAD").is(":hidden")) { $(".skin-oasis.page-Main_Page #WikiaArticle .compensate_ads table").each(function {			$(this).attr("style", $(this).attr("style") + ";width:100% !important");		}); } });