Difference between revisions of "MediaWiki:Common.js"

From Why Dont Russians Smile The definitive guide to the differences between Russians and Americans
Jump to: navigation, search
(https://www.mediawiki.org/wiki/Manual_talk:Table_of_contents#Collapse_%28Hide%29_TOCs_When_Pages_Load)
 
m (3 revisions imported)
 
(2 intermediate revisions by the same user not shown)
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.     */
//collaps default the TOC on opening an pages  
+
/*  //collaps default the TOC on opening an pages       */
function hideToc() {  
+
/* function hideToc() {       */
   var toc = document.getElementById('toc').getElementsByTagName('ul')[0];  
+
/*   var toc = document.getElementById('toc').getElementsByTagName('ul')[0];       */
   var toggleLink = document.getElementById('togglelink');  
+
/*   var toggleLink = document.getElementById('togglelink');       */
   toc.style.display = 'none';  
+
/*   toc.style.display = 'none';       */
}  
+
/* }       */
hideToc();
+
/*  hideToc();     */

Latest revision as of 13:16, 17 February 2023

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