mirror of
https://github.com/dpnmw/community-landing.git
synced 2026-03-18 09:27:16 +00:00
Major overhaul and options inclusion
This commit is contained in:
@@ -211,4 +211,19 @@
|
||||
});
|
||||
}
|
||||
|
||||
// ═══════════════════════════════════════════════════════════════════
|
||||
// 8. FAQ EXCLUSIVE ACCORDION
|
||||
// ═══════════════════════════════════════════════════════════════════
|
||||
$$("details[data-faq-exclusive]").forEach(function (detail) {
|
||||
detail.addEventListener("toggle", function () {
|
||||
if (detail.open) {
|
||||
$$("details[data-faq-exclusive]").forEach(function (other) {
|
||||
if (other !== detail && other.open) {
|
||||
other.removeAttribute("open");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user