Files
谢宇宁andClaude Opus 5.5 0fbdba5ccf Initial commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 11:47:47 +07:00

16 lines
425 B
JavaScript

(function () {
var root = document.querySelector("[data-help-faq]");
if (!root) return;
var items = root.querySelectorAll(".help-faq__item");
Array.prototype.forEach.call(items, function (item) {
item.addEventListener("toggle", function () {
if (!item.open) return;
Array.prototype.forEach.call(items, function (other) {
if (other !== item) other.open = false;
});
});
});
})();