MediaWiki:Common.js: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Tag: Reverted
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */
$(document).ready(function() {
    if (mw.config.get('wgPageName') === 'Main_Page') {
        var title = $('#firstHeading').detach();
       
        // Append elements to the content bottom
        $('#bodyContent').append('<div class="mainpage-elements"></div>');
        $('.mainpage-elements').append(title)
    }

Revision as of 00:59, 2 June 2024

/* Any JavaScript here will be loaded for all users on every page load. */
$(document).ready(function() {
    if (mw.config.get('wgPageName') === 'Main_Page') {
        var title = $('#firstHeading').detach();
        
        // Append elements to the content bottom
        $('#bodyContent').append('<div class="mainpage-elements"></div>');
        $('.mainpage-elements').append(title)

    }