all repos — honk @ 105b95348744e1112e25b8a8f0057841931587e1

my fork of honk

fixes for peekses
Ted Unangst tedu@tedunangst.com
Fri, 27 Jan 2023 00:20:27 -0500
commit

105b95348744e1112e25b8a8f0057841931587e1

parent

c973e951ec23543966278c98ab77892435fcce08

2 files changed, 12 insertions(+), 3 deletions(-)

jump to
M docs/honk.5docs/honk.5

@@ -139,6 +139,9 @@ A 24 hour clock is assumed, unless am or pm are specified.

The duration is optional and may be specified as XdYhZm for X days, Y hours, and Z minutes (1d12h would be a 36 hour event). .Pp +Clicking the pretty circle face will open the emu peeker to add in the +selection of emus. +.Pp When everything is at last ready to go, press the .Dq it's gonna be honked button.
M views/honkpage.jsviews/honkpage.js

@@ -446,16 +446,22 @@ makeaguess = module.makeaguess

module.addguesscontrols(elem, word, wordlist, xid) }) } -function addemu(data){ +function addemu(elem) { + const data = elem.alt const box = document.getElementById("honknoise"); box.value += data; } function loademus() { div = document.getElementById("emupicker") - request = new XMLHttpRequest(); + request = new XMLHttpRequest() request.open('GET', '/emus') - request.onload = function(){ + request.onload = function() { div.innerHTML = request.responseText + div.querySelectorAll(".emu").forEach(function(el) { + el.onclick = function() { + addemu(el) + } + }) } if (div.style.display === "none") { div.style.display = "block";