gameover.html
319 bytes
1{{define "gameover"}}
2{{if .Result}}{{template "resultBody" .}}<hr class="final-sep">{{end}}
3<div class="final-wrap">
4 <div class="final-score">{{.Score}}</div>
5 <p class="final-sub">out of {{.MaxScore}} points</p>
6 <button hx-post="/restart" hx-target="#game" hx-swap="innerHTML">Play again</button>
7</div>
8{{end}}