MediaWiki:Common.js: Difference between revisions
Appearance
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. */ | ||