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).ready(function() {
$(document).ready(function() {
     // Change the background color of the body
    // Log a message to the console
    console.log('JavaScript is working!');
 
     // Change the background color of the "mw-content-text" element
     $('#mw-content-text').css('background-color', 'lightblue');
     $('#mw-content-text').css('background-color', 'lightblue');
});
});

Navigation menu