mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-27 07:59:30 +01:00
28 lines
531 B
HTML
28 lines
531 B
HTML
|
{% extends "print.html" %} {% block page %}
|
||
|
<div class="row justify-center">
|
||
|
<div class="qr">
|
||
|
<qrcode value="{{ lnurl }}" :options="{width}"></qrcode>
|
||
|
</div>
|
||
|
</div>
|
||
|
{% endblock %} {% block styles %}
|
||
|
<style>
|
||
|
.qr {
|
||
|
margin: auto;
|
||
|
}
|
||
|
</style>
|
||
|
{% endblock %} {% block scripts %}
|
||
|
<script>
|
||
|
Vue.component(VueQrcode.name, VueQrcode)
|
||
|
|
||
|
new Vue({
|
||
|
el: '#vue',
|
||
|
created: function () {
|
||
|
window.print()
|
||
|
},
|
||
|
data: function () {
|
||
|
return {width: window.innerWidth * 0.5}
|
||
|
}
|
||
|
})
|
||
|
</script>
|
||
|
{% endblock %}
|