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

View file

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