User:Morbus Iff/wikia.js

$('#toggle-comics').click(function { $(this).text($(this).text == 'Show comics' ? 'Hide comics' : 'Show comics'); $('tr.comic').toggle; });

$('#toggle-novels').click(function { $(this).text($(this).text == 'Show novels' ? 'Hide novels' : 'Show novels'); $('tr.novel').toggle; });

$('#toggle-videogames').click(function { $(this).text($(this).text == 'Show video games' ? 'Hide video games' : 'Show video games'); $('tr.videogame').toggle; });

$('#toggle-shorts').click(function { $(this).text($(this).text == 'Show short stories/books' ? 'Hide short stories/ebooks' : 'Show short stories/ebooks'); $('tr.short').toggle; });