summaryrefslogtreecommitdiff
path: root/root.template
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-09-10 21:27:06 +0200
committerJulian T <julian@jtle.dk>2020-09-10 21:27:06 +0200
commit0c2623543f324e70132ae12595814cd183255135 (patch)
treede03741eb7588d4f47d457088eeec1f68b4bab14 /root.template
parent0db7e0ea39b9a03fe401296517bb59360d7fbff8 (diff)
Added upload box
Diffstat (limited to 'root.template')
-rw-r--r--root.template16
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">