MediaWiki:Common.js: Difference between revisions

From WikiFictionAI
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: $(document).ready(function() { if (!mw.user.isAnon()) { // User is logged in; the "Toolbox" section will be displayed $('#p-tb').show(); } else { // User is not logged in; hide the "Toolbox" section $('#p-tb').hide(); } });")
 
No edit summary
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.user.isAnon()) {
        // User is logged in; the "Toolbox" section will be displayed
        $('#p-tb').show();
    } else {
        // User is not logged in; hide the "Toolbox" section
        $('#p-tb').hide();
    }
});

Revision as of 16:06, 4 January 2024

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