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).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');
});
});

Revision as of 11:08, 8 January 2024

// Wait for the DOM to be ready
$(document).ready(function() {
    // 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');
});