summaryrefslogtreecommitdiffstats
path: root/pages/index.html
diff options
context:
space:
mode:
authorclsr <clsr@clsr.net>2016-06-16 02:18:59 +0200
committerclsr <clsr@clsr.net>2016-06-16 02:18:59 +0200
commit77fb1d63635bb61b26296b742d2d57ea40566884 (patch)
tree4f9c035a3b157f06ff13525931c4d865b3f1667b /pages/index.html
downloadgomf-web-pomf-77fb1d63635bb61b26296b742d2d57ea40566884.tar.gz
gomf-web-pomf-77fb1d63635bb61b26296b742d2d57ea40566884.zip
Initial commit; forked from pantsu/pomfv0.1.0
Diffstat (limited to 'pages/index.html')
-rw-r--r--pages/index.html49
1 files changed, 49 insertions, 0 deletions
diff --git a/pages/index.html b/pages/index.html
new file mode 100644
index 0000000..4509570
--- /dev/null
+++ b/pages/index.html
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>{{ .SiteName }} &middot; Kawaii File Hosting</title>
+ <link rel="icon" href="favicon.ico">
+ <link rel="stylesheet" href="/static/pomf.css">
+ <script src="/static/pomf.js"></script>
+ </head>
+ <body>
+ <div class="container">
+ <div class="jumbotron">
+ <h1>Ohayou!</h1>
+ <p class="lead">Max upload size is {{ .MaxSize }}, read the <a href="faq.html">FAQ</a></p>
+
+ <form id="upload-form" enctype="multipart/form-data" method="post" action="upload.php?output=html">
+ <input type="hidden" name="output" value="html">
+ <button style="display: none" id="upload-btn" class="btn" type="button">Select or drop file(s)</button>
+ <input type="file" id="upload-input" name="files[]" multiple data-max-size="{{ .MaxSize }}">
+ <input type="submit" value="Submit">
+ </form>
+
+ {{ with .Result }}
+ <ul id="upload-filelist" {{ if or .Files .Description }}class="{{ if .Description }}error {{ else }}completed{{ end }}"{{ end }}>
+ {{ range .Files }}
+ <li class="file" data-filename="{{ .Name }}">
+ <span class="file-name">{{ .Name }}</span>
+ <span class="file-url"><a href="{{ .Url }}" target="_blank">{{ .Url }}</a></span>
+ </li>
+ {{ end }}
+ </ul>
+ {{ end }}
+
+ </div>
+
+ <nav>
+ <ul>
+ <li><a href="/">{{ .SiteName }}</a></li>
+ <li><a href="mailto:{{ .Contact }}">Contact</a></li>
+ <li><a href="mailto:{{ .Abuse }}">Report abuse</a></li>
+ {{ range $name, $path := .Pages }}{{ if ne $path "index.html" }}
+ <li><a href="{{ $path }}">{{ $name }}</a></li>
+ {{ end }}{{ end }}
+ </ul>
+ </nav>
+ </div>
+ </body>
+</html>