all repos — honk @ 5a6285a5afdb821170ae6b0cabf6aaad3cf2486b

my fork of honk

add a button to expand it all
Ted Unangst tedu@tedunangst.com
Mon, 15 Jul 2019 21:32:38 -0400
commit

5a6285a5afdb821170ae6b0cabf6aaad3cf2486b

parent

effe0d0bff77a2164b4364450109c2d5e87955c2

1 files changed, 11 insertions(+), 0 deletions(-)

jump to
M views/honkers.htmlviews/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>