MediaWiki:Common.js

Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
   toc.style.display = 'none';  
   toc.style.display = 'none';  
}  
}  
hideToc();
/* hideToc(); */

Revision as of 18:18, 3 April 2021

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