MediaWiki:Common.js

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

var toppestCollapsible = document.getElementsByClassName("toppest-collapsible-button");

for (i = 0; i < toppestCollapsible.length; i++) { toppestCollapsible[i].addEventListener("click", function {       this.classList.toggle("active");        var content = this.nextElementSibling;        if (content.style.display === "block") {            content.style.display = "none";        } else {            content.style.display = "block";        }    }); }