summaryrefslogtreecommitdiff
path: root/static/html/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'static/html/index.html')
-rw-r--r--static/html/index.html59
1 files changed, 59 insertions, 0 deletions
diff --git a/static/html/index.html b/static/html/index.html
new file mode 100644
index 0000000..64ca853
--- /dev/null
+++ b/static/html/index.html
@@ -0,0 +1,59 @@
+<!--
+ Copyright 2022 ilotterytea
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>file hoster</title>
+ <link rel="stylesheet" href="css/style.css">
+ <meta property="og:title" content="iLotterytea's file hoster">
+ <meta property="og:description" content="iLotterytea's file hoster. Powered by notdankenough/fh. ">
+ <meta property="og:image" content="webimg/favicon.png">
+ </head>
+ <body>
+ <div class="container">
+ <div class="content">
+ <section id="brand">
+ <a href="/">
+ <img src="webimg/favicon.png" width="64" title="{{AboutFileHoster}}">
+ </a>
+ </section>
+
+ <section id="uploadform">
+ <form action="dank_upload" method="post" enctype="multipart/form-data">
+ <p>Select file to upload: </p>
+ <input accept="image/*" name="file" id="fileu" type="file" onchange="loadFile(event)">
+ <input value="Upload" name="submit" type="submit" id="submitbtn" disabled="true">
+ </form>
+ </section>
+ <section id="i_preview">
+ <img id="preview" src="#" alt="">
+ </section>
+ </div>
+ </div>
+ </body>
+ <script>
+ var loadFile = function(event) {
+ var out = document.getElementById("preview");
+ var btn = document.getElementById("submitbtn");
+ out.src = URL.createObjectURL(event.target.files[0]);
+ btn.disabled = false;
+ out.onload = function() {
+ URL.revokeObjectURL(out.src);
+ }
+ }
+ </script>
+</html> \ No newline at end of file