Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.js: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Tag: Manual revert
 
(5 intermediate revisions by the same user not shown)
Line 3: Line 3:
$(document).ready(function() {
$(document).ready(function() {
     // Sidebar Menu Icons
     // Sidebar Menu Icons
     $('#n-About-This-Wiki').prepend('<i class="fa-solid-fa-circle-info"></i> ');
 
     function addIcon(id, icon) {
        $(`#n-${id} a:first-child`).prepend(`<i class="fa-solid fa-${icon}"></i> `);
    }
 
    addIcon("About-This-Wiki", "circle-info");
});
});

Latest revision as of 11:45, 23 October 2025

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

$(document).ready(function() {
    // Sidebar Menu Icons

    function addIcon(id, icon) {
        $(`#n-${id} a:first-child`).prepend(`<i class="fa-solid fa-${icon}"></i> `);
    }

    addIcon("About-This-Wiki", "circle-info");
});