add a button to expand it all
Ted Unangst tedu@tedunangst.com
Mon, 15 Jul 2019 21:32:38 -0400
1 files changed,
11 insertions(+),
0 deletions(-)
jump to
M
views/honkers.html
→
views/honkers.html
@@ -13,6 +13,17 @@ <p><input tabindex=1 type="submit" name="add honker" value="add honker">
</form> </div> {{ $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 }} <section class="honk"> <header>