diff options
author | Julian T <julian@jtle.dk> | 2020-09-10 21:27:06 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-09-10 21:27:06 +0200 |
commit | 0c2623543f324e70132ae12595814cd183255135 (patch) | |
tree | de03741eb7588d4f47d457088eeec1f68b4bab14 | |
parent | 0db7e0ea39b9a03fe401296517bb59360d7fbff8 (diff) |
Added upload box
-rw-r--r-- | root.template | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/root.template b/root.template index e396d0e..93741f9 100644 --- a/root.template +++ b/root.template @@ -32,10 +32,26 @@ :checked ~ * .filtered { display: none; } + + :checked + #upload-box { + display: block; + } + #upload-box { + display: none; + } </style> </head> <body> <div class="box"> + <label for="doupload">Vis upload</label> + <input type="checkbox" id="doupload"> + <div id="upload-box"> + <form method="POST" action="/upload" enctype="multipart/form-data"> + <input type="file" name="f" accept="image/*,.pdf,.txt,.md" capture> + <input type="input" name="hash"> + <input type="submit" value="go"> + </form> + </div> <label for="dohelp">Vis hjælp</label> <input type="checkbox" id="dohelp"> <div class="help"> |