미디어위키:Minerva.js: 두 판 사이의 차이
편집 요약 없음 태그: 되돌려진 기여 |
편집 요약 없음 태그: 되돌려진 기여 |
||
| 78번째 줄: | 78번째 줄: | ||
titleLi.classList.toggle('open'); | titleLi.classList.toggle('open'); | ||
let next = titleLi.nextElementSibling; | let next = titleLi.nextElementSibling; | ||
while (next && !next.classList.contains('title-recommended') && !next.classList.contains('title-category')) { | while (next && !next.classList.contains('title-recommended') && !next.classList.contains('title-category') && !next.classList.contains('title-family') && !next.classList.contains('title-youtube')) { | ||
if (next.matches(selector)) { | if (next.matches(selector)) { | ||
next.style.display = (next.style.display === 'none' || next.style.display === '') ? 'block' : 'none'; | next.style.display = (next.style.display === 'none' || next.style.display === '') ? 'block' : 'none'; | ||