Feat: mark words [for guessers]

This commit is contained in:
Grail Finder
2025-06-27 15:23:45 +03:00
parent 72053281e2
commit 86063a4f7e
3 changed files with 40 additions and 103 deletions

View File

@ -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';">
&nbsp;
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}}