MediaWiki:Common.js: Difference between revisions

From HPC Wiki
Jump to:navigation Jump to:search
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: /* from: https://github.com/prtksxna/persistent-toc A gadget to add persistent table of c...")
 
No edit summary
 
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */
/*
  from:
  https://github.com/prtksxna/persistent-toc
 
A gadget to add persistent table of contents on Wikipeida articles. The table of contents move to the left sidebar after scrolling past the first section and they expand on hover.
*/
mw.loader.load( 'https://cdn.rawgit.com/prtksxna/persistent-toc/master/ptoc.css', 'text/css' );
mw.loader.load( 'https://cdn.rawgit.com/prtksxna/persistent-toc/master/ptoc.js', 'text/javascript' );

Latest revision as of 09:55, 28 April 2017

/* Any JavaScript here will be loaded for all users on every page load. */