mirror of
https://github.com/alvierahman90/uploadr.git
synced 2025-10-13 16:04:22 +00:00
Add QR code generator, remove unneccesary javascript from upload_success.html
This commit is contained in:
4
templates/qr.html
Normal file
4
templates/qr.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<!doctype html>
|
||||
<body style="background-color: black">
|
||||
<img src="{{ imagesrc }}" />
|
||||
</body>
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user