diff --git a/lnbits/extensions/tpos/templates/tpos/tpos.html b/lnbits/extensions/tpos/templates/tpos/tpos.html index 0e4fe75..1f5716e 100644 --- a/lnbits/extensions/tpos/templates/tpos/tpos.html +++ b/lnbits/extensions/tpos/templates/tpos/tpos.html @@ -84,7 +84,7 @@ - + @@ -140,8 +140,6 @@ var total = ""; document.getElementById(field1).innerHTML = "
" document.getElementById(field2).innerHTML = "" -console.log( "{{ rate }}" ); -console.log("cunt") function keys(num){ if(Number.isInteger(num)){ @@ -158,11 +156,22 @@ console.log("cunt") else if(num == "C"){ location.reload(); } - else if(num == "<->"){ - field1 = field2 - field2 = field1 - document.getElementById(field1).innerHTML = "" - document.getElementById(field2).innerHTML = "" + else if(num == "#"){ + + new QRCode(document.getElementById('qrcode'), { + text: window.location.href, + width: 300, + height: 300, + colorDark: '#000000', + colorLight: '#ffffff', + correctLevel: QRCode.CorrectLevel.M + }) + document.getElementById("sats").innerHTML = "" + document.getElementById("fiat").innerHTML = "" + + + document.getElementById("qrcode").style.backgroundColor = "white"; + document.getElementById("qrcode").style.padding = "20px"; }