Difference between revisions of "MediaWiki:Common.js"

From Fight As One MUSH
Jump to navigation Jump to search
(Created page with "Any JavaScript here will be loaded for all users on every page load.: //collapse default the TOC on opening an pages function hideToc() { var toc = document.getEleme...")
 
 
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. */
 
//collapse default the TOC on opening an pages
 
function hideToc() {
 
  var toc = document.getElementById('toc').getElementsByTagName('ul')[0];
 
  var toggleLink = document.getElementById('togglelink');
 
  toc.style.display = 'none';
 
}
 
hideToc();
 

Latest revision as of 23:10, 29 July 2017

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