Add QR code generator, remove unneccesary javascript from upload_success.html

This commit is contained in:
alvierahman90
2017-10-25 12:50:03 +01:00
parent aed5f9390d
commit 12c2dfb4be
3 changed files with 29 additions and 10 deletions

4
templates/qr.html Normal file
View File

@@ -0,0 +1,4 @@
<!doctype html>
<body style="background-color: black">
<img src="{{ imagesrc }}" />
</body>

View File

@@ -5,13 +5,7 @@
<body>
<h1>Upload success!</h1>
<div class="indent">
<p>File located at <a id="file_link" href=""><a>
<script>
file = document.getElementById('file_link');
file.setAttribute('href','/download/{{ filename }}');
file.innerHTML = '/download/{{ filename }}';
</script>
<p id="downloadLink" >File located at <a id="file_link" href="/download/{{ filename }}">/download/{{ filename }}<a>
<p><a href="/qr/{{ filename }}"> QR Code link </a> </p>
</div>
</body>