MediaWiki:Common.js

Jump to navigation Jump to search
No edit summary
No edit summary
 
(8 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. */


// collapse the TOC by default
var ts_alternate_row_colors = true;
var toc, toggleLink;


try {
// collapss the TOC by default
  toc = document.getElementById('toc').getElementsByTagName('ul')[0];
function hideToc() {
  toggleLink = document.getElementById('toctogglecheckbox');
    document.getElementById('toctogglecheckbox').click();
  // if (tocIsHidden()) {
  toggleToc();
  // }
} catch (error) {
  console.log('erred', error);
}
}
hideToc();

Latest revision as of 14:43, 21 June 2021

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

var ts_alternate_row_colors = true;

// collapss the TOC by default 
function hideToc() { 
    document.getElementById('toctogglecheckbox').click();
}

hideToc();