Added some extra gifs
This commit is contained in:
parent
dea442cbcc
commit
af2e1b5d02
7 changed files with 71 additions and 15 deletions
BIN
lnbits/extensions/copilot/static/bitcoin.gif
Normal file
BIN
lnbits/extensions/copilot/static/bitcoin.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 308 KiB |
BIN
lnbits/extensions/copilot/static/lnurl.png
Normal file
BIN
lnbits/extensions/copilot/static/lnurl.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 35 KiB |
BIN
lnbits/extensions/copilot/static/martijn.gif
Normal file
BIN
lnbits/extensions/copilot/static/martijn.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 504 KiB |
BIN
lnbits/extensions/copilot/static/rick.gif
Normal file
BIN
lnbits/extensions/copilot/static/rick.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 MiB |
|
|
@ -14,6 +14,12 @@
|
||||||
class="fixed-bottom-right"
|
class="fixed-bottom-right"
|
||||||
></video>
|
></video>
|
||||||
<img src="" style="width: 100%" id="animations" class="fixed-bottom-left" />
|
<img src="" style="width: 100%" id="animations" class="fixed-bottom-left" />
|
||||||
|
<img
|
||||||
|
src="/copilot/static/lnurl.png"
|
||||||
|
style="width: 20%"
|
||||||
|
id="animations"
|
||||||
|
class="fixed-top-right"
|
||||||
|
/>
|
||||||
<q-btn
|
<q-btn
|
||||||
color="primary"
|
color="primary"
|
||||||
@click="reconnect"
|
@click="reconnect"
|
||||||
|
|
@ -95,15 +101,15 @@
|
||||||
console.log(res[1])
|
console.log(res[1])
|
||||||
if (res[0] != this.oldRes) {
|
if (res[0] != this.oldRes) {
|
||||||
this.oldRes = res[0]
|
this.oldRes = res[0]
|
||||||
if (res[1] == 'animation1') {
|
if (res[1] == 'rocket') {
|
||||||
document.getElementById('animations').style.width = '100%'
|
document.getElementById('animations').style.width = '50%'
|
||||||
document.getElementById('animations').src =
|
document.getElementById('animations').src =
|
||||||
'/copilot/static/confetti.gif'
|
'/copilot/static/rocket.gif'
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
document.getElementById('animations').src = ''
|
document.getElementById('animations').src = ''
|
||||||
}, 5000)
|
}, 5000)
|
||||||
}
|
}
|
||||||
if (res[1] == 'animation2') {
|
if (res[1] == 'face') {
|
||||||
document.getElementById('animations').style.width = '50%'
|
document.getElementById('animations').style.width = '50%'
|
||||||
document.getElementById('animations').src =
|
document.getElementById('animations').src =
|
||||||
'/copilot/static/face.gif'
|
'/copilot/static/face.gif'
|
||||||
|
|
@ -111,10 +117,34 @@
|
||||||
document.getElementById('animations').src = ''
|
document.getElementById('animations').src = ''
|
||||||
}, 5000)
|
}, 5000)
|
||||||
}
|
}
|
||||||
if (res[1] == 'animation3') {
|
if (res[1] == 'bitcoin') {
|
||||||
|
document.getElementById('animations').style.width = '30%'
|
||||||
|
document.getElementById('animations').src =
|
||||||
|
'/copilot/static/bitcoin.gif'
|
||||||
|
setTimeout(function () {
|
||||||
|
document.getElementById('animations').src = ''
|
||||||
|
}, 5000)
|
||||||
|
}
|
||||||
|
if (res[1] == 'confetti') {
|
||||||
|
document.getElementById('animations').style.width = '100%'
|
||||||
|
document.getElementById('animations').src =
|
||||||
|
'/copilot/static/confetti.gif'
|
||||||
|
setTimeout(function () {
|
||||||
|
document.getElementById('animations').src = ''
|
||||||
|
}, 5000)
|
||||||
|
}
|
||||||
|
if (res[1] == 'martijn') {
|
||||||
document.getElementById('animations').style.width = '50%'
|
document.getElementById('animations').style.width = '50%'
|
||||||
document.getElementById('animations').src =
|
document.getElementById('animations').src =
|
||||||
'/copilot/static/rocket.gif'
|
'/copilot/static/martijn.gif'
|
||||||
|
setTimeout(function () {
|
||||||
|
document.getElementById('animations').src = ''
|
||||||
|
}, 5000)
|
||||||
|
}
|
||||||
|
if (res[1] == 'rick') {
|
||||||
|
document.getElementById('animations').style.width = '50%'
|
||||||
|
document.getElementById('animations').src =
|
||||||
|
'/copilot/static/rick.gif'
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
document.getElementById('animations').src = ''
|
document.getElementById('animations').src = ''
|
||||||
}, 5000)
|
}, 5000)
|
||||||
|
|
|
||||||
|
|
@ -477,7 +477,7 @@
|
||||||
},
|
},
|
||||||
opencopilotCompose: function (copilot_id) {
|
opencopilotCompose: function (copilot_id) {
|
||||||
let params =
|
let params =
|
||||||
'scrollbars=no, resizable=no,status=no,location=no,toolbar=no,menubar=no,width=900,height=500,left=200,top=200'
|
'scrollbars=no, resizable=no,status=no,location=no,toolbar=no,menubar=no,width=1722,height=972,left=200,top=200'
|
||||||
open('../copilot/cp/' + copilot_id, 'test', params)
|
open('../copilot/cp/' + copilot_id, 'test', params)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
dense
|
dense
|
||||||
@click="openCompose"
|
@click="openCompose"
|
||||||
icon="face"
|
icon="face"
|
||||||
style="font-size: 100px"
|
style="font-size: 80px"
|
||||||
></q-btn>
|
></q-btn>
|
||||||
</center>
|
</center>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -56,24 +56,50 @@
|
||||||
<q-btn
|
<q-btn
|
||||||
style="width: 95%"
|
style="width: 95%"
|
||||||
color="primary"
|
color="primary"
|
||||||
@click="animationBTN('animation1')"
|
@click="animationBTN('rocket')"
|
||||||
label="Confetti"
|
label="rocket"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<q-btn
|
<q-btn
|
||||||
style="width: 95%"
|
style="width: 95%"
|
||||||
color="primary"
|
color="primary"
|
||||||
@click="animationBTN('animation2')"
|
@click="animationBTN('confetti')"
|
||||||
label="Smiley"
|
label="confetti"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<q-btn
|
<q-btn
|
||||||
style="width: 95%"
|
style="width: 95%"
|
||||||
color="primary"
|
color="primary"
|
||||||
@click="animationBTN('animation3')"
|
@click="animationBTN('face')"
|
||||||
label="Rocket"
|
label="face"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row q-pa-sm">
|
||||||
|
<div class="col">
|
||||||
|
<q-btn
|
||||||
|
style="width: 95%"
|
||||||
|
color="primary"
|
||||||
|
@click="animationBTN('rick')"
|
||||||
|
label="rick"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="col">
|
||||||
|
<q-btn
|
||||||
|
style="width: 95%"
|
||||||
|
color="primary"
|
||||||
|
@click="animationBTN('martijn')"
|
||||||
|
label="martijn"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="col">
|
||||||
|
<q-btn
|
||||||
|
style="width: 95%"
|
||||||
|
color="primary"
|
||||||
|
@click="animationBTN('bitcoin')"
|
||||||
|
label="bitcoin"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -130,7 +156,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
openCompose: function () {
|
openCompose: function () {
|
||||||
let params = `scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,width=900,height=500,left=200,top=200`
|
let params = `scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,width=1722,height=972,left=200,top=200`
|
||||||
|
|
||||||
open('../copilot/cp/{{ copilot.id }}', 'test', params)
|
open('../copilot/cp/{{ copilot.id }}', 'test', params)
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue