chore(ods): rewrite the core http server handling

This commit is contained in:
Julien Dessaux 2025-03-12 00:54:55 +01:00
parent 21001c80ac
commit 89118c45d1
Signed by: adyxax
GPG key ID: F92E51B86E07177E
2 changed files with 87 additions and 27 deletions

View file

@ -14,13 +14,13 @@
<input class="fullwidth" type="text" placeholder="Entrez un mot" id="query" name="query" value="{{ .Query }}" minlength="2" maxlength="32" onfocus="this.select()" required autofocus/>
<div class=".btn-group">
<input type="submit" value="Valider"/>
{{ if .HasQuery }}
{{ if ne .Query "" }}
<input type="submit" formmethod="GET" value="Effacer"/>
{{ end }}
</div>
</form>
<p>
{{ if .HasQuery }}
{{ if ne .Query "" }}
<a href="https://dictionnaire.lerobert.com/definition/{{ .Query }}">{{ .Query }}</a> est un mot <span class="{{ if .Invalid }}invalid">IN{{ else }}valid">{{ end }}VALIDE</span> au scrabble.
{{ end }}
</p>