update from sparkleup
This commit is contained in:
parent
6ccbf4c2c7
commit
86fde5e856
|
@ -39,6 +39,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -32,6 +32,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -32,6 +32,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -47,6 +47,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -79,6 +79,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -88,6 +88,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -65,6 +65,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -101,6 +101,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -87,6 +87,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -77,6 +77,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -59,6 +59,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -86,6 +86,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -59,6 +59,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -66,6 +66,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -49,6 +49,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -79,6 +79,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -64,6 +64,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -56,6 +56,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -72,6 +72,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -63,6 +63,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -56,6 +56,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -27,6 +27,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -130,6 +130,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -27,6 +27,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -109,6 +109,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -91,6 +91,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -27,6 +27,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -27,6 +27,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -27,6 +27,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -633,6 +633,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -85,6 +85,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -68,6 +68,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -144,6 +144,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -442,6 +442,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -276,6 +276,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -40,6 +40,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -121,6 +121,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -47,6 +47,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -562,6 +562,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -134,6 +134,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -118,6 +118,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -28,6 +28,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -119,6 +119,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -194,6 +194,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -106,6 +106,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
|
@ -540,6 +540,9 @@ document.querySelectorAll('li').forEach(el => {
|
|||
el.innerHTML = `<span class="toggle"></span> ${el.innerHTML}`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.toc .has-nested').forEach(el => {
|
||||
el.classList.remove('has-nested', 'closed');
|
||||
});
|
||||
document.querySelectorAll('li.has-nested').forEach(el => {
|
||||
el.querySelector('.toggle').addEventListener('click', () => {
|
||||
el.classList.toggle('closed');
|
||||
|
|
Loading…
Reference in New Issue