make filters into a <nav>

This commit is contained in:
Rhiannon Morris 2020-08-04 18:22:16 +02:00
parent 8af4dac3ec
commit 739cc49c0c
2 changed files with 3 additions and 3 deletions

View file

@ -43,7 +43,7 @@ make' (GalleryInfo {title, prefix, filters, hidden}) infos = [b|@0
</h2> </h2>
</header> </header>
<form id=filters> <nav id=filters>
<details> <details>
<summary><h2>filters</h2></summary> <summary><h2>filters</h2></summary>
<div> <div>
@ -61,7 +61,7 @@ make' (GalleryInfo {title, prefix, filters, hidden}) infos = [b|@0
<a href=# id=reset>default</a> <a href=# id=reset>default</a>
</div> </div>
</details> </details>
</form> </nav>
<main> <main>
<ul class=grid> <ul class=grid>

View file

@ -65,7 +65,7 @@ function clear(e) {
} }
function resetForm() { function resetForm() {
document.getElementById('filters').reset(); allBoxes.forEach(b => b.checked = b.defaultChecked);
} }
function reset(e) { function reset(e) {