(cnt)
| 5611 | } |
| 5612 | |
| 5613 | function closeSectionContent(cnt) { |
| 5614 | if (!cnt) return; |
| 5615 | clearSectionTimer(cnt); |
| 5616 | cnt.classList.remove("is-open"); |
| 5617 | cnt.classList.add("is-closing"); |
| 5618 | cnt.__closeTimer = setTimeout(() => { |
| 5619 | if (cnt.classList.contains("is-closing")) { |
| 5620 | cnt.style.display = "none"; |
| 5621 | cnt.classList.remove("is-closing"); |
| 5622 | } |
| 5623 | cnt.__closeTimer = null; |
| 5624 | }, SECTION_ANIM_MS); |
| 5625 | } |
| 5626 | |
| 5627 | function setSectionContentImmediate(cnt, open) { |
| 5628 | if (!cnt) return; |
no test coverage detected