MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
(Created page with "→Any JavaScript here will be loaded for all users on every page load.: $(function() { importScriptURI('http://cdn.mathjax.org/mathjax/latest/MathJax.js'); });") |
(*/) |
||
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 | |||
function hideToc() { | |||
}); | var toc = document.getElementById('toc').getElementsByTagName('ul')[0]; | ||
var toggleLink = document.getElementById('togglelink'); | |||
toc.style.display = 'none'; | |||
} | |||
hideToc(); | |||
*/ |
Revision as of 17:50, 16 February 2022
/* 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(); */