summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorJulien Dessaux2024-03-25 13:58:48 +0100
committerJulien Dessaux2024-03-25 13:58:48 +0100
commit4c9b51b8c6b2ebeea0481d219df89ed4fec1e360 (patch)
tree4fadf1fb8dc7de8de571d828ecf61014826d9e9e /index.html
parentchore(dictionary): go mod init and initial dictionary (diff)
downloadods-4c9b51b8c6b2ebeea0481d219df89ed4fec1e360.tar.gz
ods-4c9b51b8c6b2ebeea0481d219df89ed4fec1e360.tar.bz2
ods-4c9b51b8c6b2ebeea0481d219df89ed4fec1e360.zip
feat(ods): implement basic ods functionality
Diffstat (limited to 'index.html')
-rw-r--r--index.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..f98fd30
--- /dev/null
+++ b/index.html
@@ -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>