MediaWiki:Common.js: Difference between revisions

From Ardent Spacers Wiki
Created page with "→Any JavaScript here will be loaded for all users on every page load.: →Full width of content when no TOC: $(function () { var hasTOC = $('#toc').length; if (!hasTOC) { $('#mw-content-text').css('padding-right', '0'); } }());"
 
No edit summary
 
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. */
/* Full width of content when no TOC */
$(function () {
  var hasTOC = $('#toc').length;
  if (!hasTOC) {
    $('#mw-content-text').css('padding-right', '0');
  }
}());

Latest revision as of 23:19, 9 August 2026

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