quadfile/templates/upload.html

42 lines
1.1 KiB
HTML
Raw Normal View History

2015-12-23 15:30:48 +00:00
{% extends "shell.html" %}
2015-12-23 13:11:38 +00:00
{% block body %}
2015-12-23 15:30:48 +00:00
<h1 class="title">
QuadFile
</h1>
2016-01-16 21:29:29 +00:00
<p class="note">This is temporary storage, check the about page for details</p>
2015-12-23 13:41:25 +00:00
<form action="" id="form" name="fileForm" method="post" enctype="multipart/form-data" class="uploadForm">
2015-12-26 23:38:52 +00:00
<div id="uploadButton" class="uploadButton">
2015-12-24 20:09:38 +00:00
<p id="uploadText">
2015-12-23 15:30:48 +00:00
Click to select a file
2015-12-23 13:41:25 +00:00
</p>
<input id="file" type="file" name="file">
2015-12-23 13:41:25 +00:00
</div>
2015-12-23 13:11:38 +00:00
<input type="hidden" name="source" value="web">
</form>
2015-12-23 15:30:48 +00:00
<ul class="links">
<li>
<a href="/about">About</a>
</li>
<li>
<a href="/terms">Terms</a>
</li>
2015-12-24 14:26:55 +00:00
<li>
<a href="/privacy">Privacy</a>
</li>
<li>
<a href="/faq">FAQ</a>
</li>
2015-12-28 15:38:13 +00:00
<li>
<a href="/dmca">DMCA</a>
</li>
2015-12-23 15:30:48 +00:00
</ul>
2015-12-23 13:11:38 +00:00
<script>
document.getElementById("file").onchange = function() {
2015-12-24 20:09:38 +00:00
document.getElementById("uploadText").innerHTML = "Uploading...";
2015-12-26 23:38:52 +00:00
var button = document.getElementById("uploadButton");
button.className = button.className + " uploading";
2015-12-23 13:11:38 +00:00
document.getElementById("form").submit();
};
</script>
{% endblock %}