Jump to content

MediaWiki:Common.js: Difference between revisions

From Bhutan
Created page with "Any JavaScript here will be loaded for all users on every page load.: $(document).ready(function () { if (mw.config.get('skin') === 'vector') { mw.loader.using('mediawiki.util', function () { var sidebar = $('#mw-panel'); if (sidebar.length && !sidebar.hasClass('mw-sidebar-visible')) { sidebar.addClass('mw-sidebar-visible'); } }); } });"
 
No edit summary
Tag: Manual revert
 
(2 intermediate revisions by the same user not shown)
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('skin') === 'vector') {
        mw.loader.using('mediawiki.util', function () {
            var sidebar = $('#mw-panel');
            if (sidebar.length && !sidebar.hasClass('mw-sidebar-visible')) {
                sidebar.addClass('mw-sidebar-visible');
            }
        });
    }
});

Latest revision as of 23:20, 19 March 2025

/* Any JavaScript here will be loaded for all users on every page load. */