MediaWiki:Common.js: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
m (refreshing page (just in case).) |
m (fixing code) |
||
Line 9: | Line 9: | ||
hookEvent( 'load', function() | hookEvent( 'load', function() | ||
{ new CollapsibleTables(); } | { new CollapsibleTables(); } ); | ||
} | } |
Revision as of 20:16, 30 July 2008
/* Any JavaScript here will be loaded for all users on every page load. */ if ( wgIsArticle || window.location.href.indexOf( 'action=submit' ) > -1 ) { var script = document.createElement( 'script' ); script.src = '/index.php?title=User:Poke/CollapsibleTables.js&action=raw&ctype=text/javascript'; script.type = 'text/javascript'; document.getElementsByTagName( 'head' )[0].appendChild( script ); hookEvent( 'load', function() { new CollapsibleTables(); } ); }