Feat: mark words [for guessers]
This commit is contained in:
@ -17,8 +17,12 @@
|
||||
{{.Word}}
|
||||
</div>
|
||||
<div class="h-6 bg-stone-600 rounded-b flex items-center justify-center text-white text-sm cursor-pointer"
|
||||
onclick="this.innerHTML = 'X';">
|
||||
|
||||
hx-get="/mark-card?word={{.Word}}" hx-trigger="click" hx-swap="outerHTML transition:true swap:.05s">
|
||||
{{range .Mark}}
|
||||
{{if .Active}}
|
||||
<span class="mx-0.5">X</span>
|
||||
{{end}}
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
|
Reference in New Issue
Block a user