Commit 3e3ee022 authored by Lukas Bhm's avatar Lukas Bhm
Browse files

qrcode

but on client side
parent d8c863e2
This diff is collapsed.
......@@ -6,7 +6,7 @@
<p class="lead">Kopieren und verschicken sie den unten stehenden Link.</p>
</div>
<div class="card mb-4 shadow-sm text-center">
<div class="card mb-4 shadow text-center">
<div class="input-group mb-3">
<input type="text" class="form-control" aria-label="Shared URL" aria-describedby="copy-url" id="url" readonly value="http://localhost:5000/shared/9e0c409b-26f6-446b-9690-66d4e5942926">
......@@ -20,11 +20,11 @@
</div>
</div>
<div class="input-group">
<div class="input-group align-content-center center">
<div id="qrcode" class="text-center btn-outline-primary"></div>
<a href="{{ url }}" class="btn btn-lg btn-block btn-primary">Zum Download</a>
</div>
<script>
$(document).ready(function() {
$("#url").val(window.location.origin + "{{ url }}");
......@@ -40,6 +40,10 @@
});
});
</script>
<script src="{{ url_for('static', filename='js/qrcode.js') }}"></script>
<script>
new QRCode(document.getElementById("qrcode"), window.location.origin + "{{ url }}");
</script>
</div>
{% endblock content %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment