Difference between revisions of "MediaWiki:Common.js"

 
(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. */
 +
$(document).ready(function(){
 +
$('#toc').addClass('tochidden');
 +
$('#toc ul').css('display', 'none');
 +
$('.togglelink').text('show');
 +
});
 +
$(window).on('load', function(){
 +
$('#toc').addClass('tochidden');
 +
$('#toc ul').css('display', 'none');
 +
$('.togglelink').text('show');
 +
});

Latest revision as of 17:12, 24 October 2019

/* Any JavaScript here will be loaded for all users on every page load. */
$(document).ready(function(){
	$('#toc').addClass('tochidden');
	$('#toc ul').css('display', 'none');
	$('.togglelink').text('show');
});
$(window).on('load', function(){
	$('#toc').addClass('tochidden');
	$('#toc ul').css('display', 'none');
	$('.togglelink').text('show');
});