blob: f98fd30e7f8d34e35e47ea8cf7136a57471a3e1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="/static/favicon.svg">
<link rel="stylesheet" type="text/css" href="/static/index4.css" media="all">
<title>ODS</title>
</head>
<body>
<main>
<form action="/" method="post">
<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 }}
<input type="submit" formmethod="GET" value="Effacer"/>
{{ end }}
</div>
</form>
<p>
{{ if .HasQuery }}
<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>
</main>
</body>
</html>
|