User:Idris/common.js: Difference between revisions

Superseded by a gadget.
(Testing if this can work here too.)
 
(Superseded by a gadget.)
 
Line 1:
/* Spoiler script, by Idris for Kings Wiki http://en.kingswiki.com/wiki/MediaWiki:Common.js */
$(function(){
$(".spoiler").each(function(){
$(this).click(function(){
$(this).toggleClass("spoilershown");
});
});
});