Jump to content

MediaWiki:Common.js: Difference between revisions

From stereotool.info
No edit summary
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. */
mw.loader.using(['jquery']).then(function () {
    $(".collapsible-header").click(function () {
        $(this).toggleClass("active");
        $(this).next(".collapsible-content").slideToggle();
    });
});
mw.loader.using(['jquery']).then(function () {
    $(".collapsible-header").click(function () {
        $(this).toggleClass("active");
        $(this).next(".collapsible-content").slideToggle();
    });
    $(".collapsible-subheader").click(function () {
        $(this).toggleClass("active");
        $(this).next(".collapsible-subcontent").slideToggle();
    });
});

Revision as of 00:32, 4 February 2025

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