all repos — honk @ b93adc318d2266c3e43dbf776142b20d1eae5b18

my fork of honk

delete old homepage.html
Ted Unangst tedu@tedunangst.com
Tue, 23 Apr 2019 16:49:28 -0400
commit

b93adc318d2266c3e43dbf776142b20d1eae5b18

parent

406646bc1eb70967225810a6388d7f8723b7a14e

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

jump to
D views/homepage.html

@@ -1,34 +0,0 @@

-{{ template "header.html" . }} -<div class="center"> -<div class="info" id="infobox"> -<p>{{ .ServerMessage }} -{{ if .HonkCSRF }} -{{ template "honkform.html" . }} -{{ end }} -</div> -<div> -{{ $BonkCSRF := .HonkCSRF }} -{{ range .Honks }} -{{ template "honk.html" map "Honk" . "Bonk" $BonkCSRF }} -{{ end }} -</div> -{{ if $BonkCSRF }} -<script> -function post(url, data) { - var x = new XMLHttpRequest() - x.open("POST", url) - x.setRequestHeader("Content-Type", "application/x-www-form-urlencoded") - x.send(data) -} -function bonk(el, xid) { - el.innerHTML = "bonked" - el.disabled = true - post("/bonk", "CSRF={{ $BonkCSRF }}&xid=" + xid) -} -function zonkit(el, xid) { - el.innerHTML = "zonked" - el.disabled = true - post("/zonkit", "CSRF={{ $BonkCSRF }}&xid=" + xid) -} -</script> -{{ end }}