MediaWiki:Vector.js: Difference between revisions
Jump to navigation
Jump to search
Admin (talk | contribs) (Replaced content with "→All JavaScript here will be loaded for users of the Vector skin: ") |
|||
| Line 1: | Line 1: | ||
/* All JavaScript here will be loaded for users of the Vector skin */ | /* All JavaScript here will be loaded for users of the Vector skin */ | ||
document.addEventListener("click", function (e) { | |||
if (!e.target.classList.contains("pf-collapsible")) return; | |||
const content = e.target.nextElementSibling; | |||
if (!content) return; | |||
content.classList.toggle("active"); | |||
}); | |||
Revision as of 23:12, 21 January 2026
/* All JavaScript here will be loaded for users of the Vector skin */
document.addEventListener("click", function (e) {
if (!e.target.classList.contains("pf-collapsible")) return;
const content = e.target.nextElementSibling;
if (!content) return;
content.classList.toggle("active");
});