From 64b5fb20d4027d8fcf8d9949ecf750130118e861 Mon Sep 17 00:00:00 2001 From: Arc <33088785+arcbtc@users.noreply.github.com> Date: Mon, 27 Jan 2020 23:06:37 +0000 Subject: [PATCH] Update app.js --- lnbits/static/app.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lnbits/static/app.js b/lnbits/static/app.js index 63a658a08..4a676658f 100644 --- a/lnbits/static/app.js +++ b/lnbits/static/app.js @@ -53,6 +53,8 @@ function getAjax(url, thekey, success) { return xhr } + + function sendfundsinput() { document.getElementById('sendfunds').innerHTML = "
'; postAjax( '/v1/channels/transactions', @@ -235,7 +237,8 @@ function scanQRsend() { video.play() requestAnimationFrame(tick) }) - function tick() { + + function tick() { loadingMessage.innerText = '⌛ Loading video...' if (video.readyState === video.HAVE_ENOUGH_DATA) { loadingMessage.hidden = true @@ -253,7 +256,7 @@ function scanQRsend() { var code = jsQR(imageData.data, imageData.width, imageData.height, { inversionAttempts: 'dontInvert' }) - if (code) { + if (code) { outputMessage.hidden = true outputData.parentElement.hidden = false @@ -314,6 +317,8 @@ function scanQRsend() { } } + + function copyfunc(){ var copyText = document.getElementById("invoiceinput"); copyText.select(); '; + '