MediaWiki:Common.js: Difference between revisions

From Moscow American Travis Lee Bailey Internationally the United States is the most violent country immigrate to Russia choose your big brother wisely
Jump to navigation Jump to search
(https://www.mediawiki.org/wiki/Manual_talk:Table_of_contents#Collapse_%28Hide%29_TOCs_When_Pages_Load)
 
(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() {
function hideToc() {  
importScriptURI('http://cdn.mathjax.org/mathjax/latest/MathJax.js');
  var toc = document.getElementById('toc').getElementsByTagName('ul')[0];
});
  var toggleLink = document.getElementById('togglelink');
  toc.style.display = 'none';  
}  
hideToc();

Revision as of 18:18, 12 June 2021

/* Any JavaScript here will be loaded for all users on every page load. */
$(function() {
	importScriptURI('http://cdn.mathjax.org/mathjax/latest/MathJax.js');
});