update from sparkleup

This commit is contained in:
Madison Scott-Clary 2020-04-15 19:30:07 -07:00
parent ccb9f797cb
commit 209000bc50
2 changed files with 13 additions and 1 deletions

View File

@ -238,11 +238,23 @@
<p>Page generated on 2020-04-08 16:11</p> <p>Page generated on 2020-04-08 16:11</p>
</footer> </footer>
</main> </main>
<style>
.has-nested:before {
content: 'v';
}
.has-nested.closed:before {
content: '>';
}
.has-nested.closed {
max-height: 16pt;
overflow: hidden;
}
</style>
<script type="text/javascript"> <script type="text/javascript">
const els = document.querySelectorAll('li'); const els = document.querySelectorAll('li');
els.forEach(el => { els.forEach(el => {
if (el.querySelectorAll('li').length !== 0) { if (el.querySelectorAll('li').length !== 0) {
el.classList.toggle('has-nested'); el.classList.add('has-nested', 'closed');
} }
}); });
</script> </script>