User:Sonicwave/common.js

mw.loader.load( '//wikisandbox.gamepedia.com/index.php?title=User:Sonicwave32/xp-calculator.js&action=raw&ctype=text/javascript' );

$(function {	var pagename = mw.config.get( 'wgPageName' );	if (pagename !== 'User:Sonicwave32/JavaScript_test') return;	$(".test-collapsed").before(' [show] ');	$(".test-expanded").before(' [hide] ');	$(".test-collapsible-text").click(function { if ($(this).text === "[show]") { $(this).text("[hide]"); } else { $(this).text("[show]"); }		$(this).next.toggleClass("test-collapsed"); $(this).next.toggleClass("test-expanded"); }); });