MediaWiki:Common.js: Difference between revisions

From softwear.directory
Jump to navigation Jump to search
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');
});
});

Revision as of 11:07, 8 January 2024

// Wait for the DOM to be ready
$(document).ready(function() {
    // Change the background color of the body
    $('#mw-content-text').css('background-color', 'lightblue');
});