MediaWiki:Common.js: Difference between revisions
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.addEventListener('DOMContentLoaded', function() { | ||
// | // Change the background color of the body | ||
document.body.style.backgroundColor = 'lightblue'; | |||
}); | }); |
Revision as of 11:03, 8 January 2024
// Wait for the DOM to be ready document.addEventListener('DOMContentLoaded', function() { // Change the background color of the body document.body.style.backgroundColor = 'lightblue'; });