diff --git a/views/homepage.html b/views/homepage.html index 0c39a48..a52ad38 100644 --- a/views/homepage.html +++ b/views/homepage.html @@ -20,10 +20,14 @@ function post(url, data) { x.setRequestHeader("Content-Type", "application/x-www-form-urlencoded") x.send(data) } -function bonk(xid) { +function bonk(el, xid) { + el.innerHTML = "bonked" + el.disabled = true post("/bonk", "CSRF={{ $BonkCSRF }}&xid=" + xid) } -function zonkit(xid) { +function zonkit(el, xid) { + el.innerHTML = "zonked" + el.disabled = true post("/zonkit", "CSRF={{ $BonkCSRF }}&xid=" + xid) } diff --git a/views/honk.html b/views/honk.html index 6c57023..a1595a2 100644 --- a/views/honk.html +++ b/views/honk.html @@ -27,8 +27,8 @@ convoy: {{ .Convoy }} {{ end }} {{ if and .Bonk (not (eq .Honk.What "zonked")) }}
- + - + {{ end }}