feat(ods): implement basic ods functionality
This commit is contained in:
parent
510ad0cf55
commit
4c9b51b8c6
4 changed files with 258 additions and 0 deletions
29
index.html
Normal file
29
index.html
Normal file
|
@ -0,0 +1,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>
|
Loading…
Add table
Add a link
Reference in a new issue