MediaWiki:Commons.js: Difference between revisions

From Acadēmīa Latīnitātis
(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 difference)

Latest revision as of 23:34, 1 January 2024

/* 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');
  }
}());