make filters into a <nav>
This commit is contained in:
parent
8af4dac3ec
commit
739cc49c0c
2 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue