mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-03-10 17:26:15 +01:00
Make QR code and price draggable
This commit is contained in:
parent
e886d17f15
commit
4397516160
1 changed files with 22 additions and 3 deletions
|
@ -15,7 +15,8 @@
|
||||||
|
|
||||||
<div
|
<div
|
||||||
v-if="copilot.lnurl_toggle == 1"
|
v-if="copilot.lnurl_toggle == 1"
|
||||||
class="rounded-borders column fixed-right"
|
id="draggableqr"
|
||||||
|
class="rounded-borders"
|
||||||
style="
|
style="
|
||||||
width: 250px;
|
width: 250px;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
|
@ -36,8 +37,9 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2
|
<h2
|
||||||
|
id="draggableprice"
|
||||||
v-if="copilot.show_price != 0"
|
v-if="copilot.show_price != 0"
|
||||||
class="text-bold fixed-bottom-left"
|
class="text-bold"
|
||||||
style="
|
style="
|
||||||
margin: 60px 60px;
|
margin: 60px 60px;
|
||||||
font-size: 110px;
|
font-size: 110px;
|
||||||
|
@ -47,6 +49,7 @@
|
||||||
>
|
>
|
||||||
{% raw %}{{ price }}{% endraw %}
|
{% raw %}{{ price }}{% endraw %}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<p
|
<p
|
||||||
v-if="copilot.show_ack != 0"
|
v-if="copilot.show_ack != 0"
|
||||||
class="fixed-top"
|
class="fixed-top"
|
||||||
|
@ -73,7 +76,19 @@
|
||||||
.q-page {
|
.q-page {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
}
|
}
|
||||||
|
#draggableqr {
|
||||||
|
width: 250px;
|
||||||
|
height: 300px;
|
||||||
|
cursor: grab;
|
||||||
|
}
|
||||||
|
#draggableprice {
|
||||||
|
width: 550px;
|
||||||
|
height: 60px;
|
||||||
|
cursor: grab;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<script src="https://code.jquery.com/jquery-3.6.0.js"></script>
|
||||||
|
<script src="https://code.jquery.com/ui/1.13.2/jquery-ui.js"></script>
|
||||||
<script>
|
<script>
|
||||||
Vue.component(VueQrcode.name, VueQrcode)
|
Vue.component(VueQrcode.name, VueQrcode)
|
||||||
|
|
||||||
|
@ -167,7 +182,11 @@
|
||||||
this.initCamera()
|
this.initCamera()
|
||||||
},
|
},
|
||||||
created: function () {
|
created: function () {
|
||||||
self = this
|
$(function () {
|
||||||
|
$('#draggableqr').draggable()
|
||||||
|
$('#draggableprice').draggable()
|
||||||
|
}),
|
||||||
|
(self = this)
|
||||||
self.copilot = JSON.parse(localStorage.getItem('copilot'))
|
self.copilot = JSON.parse(localStorage.getItem('copilot'))
|
||||||
LNbits.api
|
LNbits.api
|
||||||
.request(
|
.request(
|
||||||
|
|
Loading…
Add table
Reference in a new issue