Difference between revisions of "MediaWiki:Common.js"

From Charitylog Manual
Jump to: navigation, search
(Created page with "Any JavaScript here will be loaded for all users on every page load.: //collaps default the TOC on opening an pages function hideToc() { var toc = document.getElemen...")
(No difference)

Revision as of 13:51, 10 August 2017

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

//collaps 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();