add a button to expand it all

This commit is contained in:
Ted Unangst 2019-07-15 21:32:38 -04:00
parent 4aba1ba5fd
commit 9abea47a02
1 changed files with 11 additions and 0 deletions

View File

@ -13,6 +13,17 @@
</form> </form>
</div> </div>
{{ $honkercsrf := .HonkerCSRF }} {{ $honkercsrf := .HonkerCSRF }}
<div class="info">
<script>
function expandstuff() {
var els = document.querySelectorAll(".honk details")
for (var i = 0; i < els.length; i++) {
els[i].open = true
}
}
</script>
<p><button onclick="expandstuff()">expand</button>
</div>
{{ range .Honkers }} {{ range .Honkers }}
<section class="honk"> <section class="honk">
<header> <header>