aboutsummaryrefslogtreecommitdiffstats
path: root/www/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'www/index.html')
-rw-r--r--www/index.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/www/index.html b/www/index.html
new file mode 100644
index 0000000..a2af744
--- /dev/null
+++ b/www/index.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+ <style>
+ body{margin:auto;width:40vw;}
+ iframe{height:2em;margin:auto;width:100%;}
+ label{display:inline-block;text-align:right;width:12vw;}
+ input{width:25vw;margin:0.5em;}
+ input[type=submit]{width:50%;margin:0.5em auto;display:block;}
+ h1,h3,p{text-align:center;}
+ </style>
+ <head>
+ <title>JAC's link shortener</title>
+ </head>
+ <body>
+ <h1>JAC's link shortener</h1>
+ <p>Try it out!</p>
+ <form action="/api/linkadd" target="result">
+ <div>
+ <label>URL:</label>
+ <input type="url"name="url"required/>
+ </div>
+ <div>
+ <label>Path (optional):</label>
+ <input type="text"name="try"/>
+ </div>
+ <input name="format"value="html"hidden/>
+ <input type="submit"value="Shorten URL!"/>
+ </form>
+ <h3>Result:</h3>
+ <iframe name="result"scrolling="no"/>
+ </body>
+</html>