Jump to content

MediaWiki:Common.js: Difference between revisions

From Rejoice in Saint Joan of Arc
Created page with "Any JavaScript here will be loaded for all users on every page load.: to limit texg content to 900 px on standard view only: document.addEventListener('DOMContentLoaded', function() { var bodyContent = document.getElementById('bodyContent'); if (document.body.classList.contains('skin-standard')) { bodyContent.style.maxWidth = '900px'; bodyContent.style.margin = '0 auto'; } });"
 
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. */
/* to limit texg content to 900 px on standard view only */
document.addEventListener('DOMContentLoaded', function() {
    var bodyContent = document.getElementById('bodyContent');
    if (document.body.classList.contains('skin-standard')) {
        bodyContent.style.maxWidth = '900px';
        bodyContent.style.margin = '0 auto';
    }
});

Latest revision as of 01:36, 2 February 2025

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