feat: 討滅戦ページのロール別立ち回りをアコーディオン化し一覧リンクを分離

This commit is contained in:
armonica committed 2026-11-03 13:51:03 +09:00
1 parent 0690e4c92b
commit c3759d1c8e
80 files changed
+1139 -658

No files matched your search

+12
View File
@@ -734,4 +734,16 @@ document.addEventListener('DOMContentLoaded', () => {
renderFooter();
// ロール別アコーディオン:同時に1つだけ開く
document.querySelectorAll('[data-accordion="single"]').forEach(function (box) {
box.querySelectorAll('details').forEach(function (d) {
d.addEventListener('toggle', function () {
if (!d.open) return;
box.querySelectorAll('details').forEach(function (o) {
if (o !== d) o.open = false;
});
});
});
});
});