MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
// Wait for the DOM to be ready
// Wait for the DOM to be ready
document.addEventListener('DOMContentLoaded', function() {
$(document).ready(function() {
     // Change the background color of the body
     // Change the background color of the body
     document.body.style.backgroundColor = 'lightblue';
     $('#mw-content-text').css('background-color', 'lightblue');
});
});

Navigation menu