From ac459b70b6cbb91cf0bb4721f831038ee4a68913 Mon Sep 17 00:00:00 2001
From: Arc <33088785+arcbtc@users.noreply.github.com>
Date: Wed, 26 Feb 2020 00:39:45 +0000
Subject: [PATCH] Update index.html
---
.../extensions/tpos/templates/tpos/index.html | 105 +++++++++++++++++-
1 file changed, 102 insertions(+), 3 deletions(-)
diff --git a/lnbits/extensions/tpos/templates/tpos/index.html b/lnbits/extensions/tpos/templates/tpos/index.html
index 946edd0dd..5942d1c4e 100644
--- a/lnbits/extensions/tpos/templates/tpos/index.html
+++ b/lnbits/extensions/tpos/templates/tpos/index.html
@@ -94,6 +94,101 @@
+
+
+
+
+
+
+
+
+
+
@@ -171,7 +266,7 @@ function drawwithdraw() {
walname = document.getElementById("fauselect").value
thewithdraw = walname.split("-");
- theurl = window.location.hostname + "{{ url_for('tpos.tpos') }}?pos=" + thewithdraw[1] + "&exc=9000"
+ theurl = window.location.hostname + "{{ url_for('tpos.tpos') }}?pos=" + thewithdraw[1]
new QRCode(document.getElementById('qrcode'), {
text: theurl,
@@ -184,7 +279,7 @@ function drawwithdraw() {
document.getElementById('qrcodetxt').innerHTML =
- "Shareable link
"
+ "Shareable link
"
document.getElementById("qrcode").style.backgroundColor = "white";
document.getElementById("qrcode").style.padding = "20px";
@@ -194,9 +289,13 @@ function drawwithdraw() {
function postfau(){
nme = document.getElementById('nme').value
+ wal = document.getElementById('wal').value
+ cur = document.getElementById('cur').value
+ wall = wal.split("-")
+ console.log(window.location.hostname + "-" + wall[1])
getAjax(
- "{{ url_for('tpos.index') }}?nme=" + nme + "&usr=" + user,
+ "{{ url_for('tpos.index') }}?nme=" + nme + "&usr=" + user + "&cur=" + cur + "&wal=" + wall[1],
"filla",
function(data) { location.replace("{{ url_for('tpos.index') }}?usr=" + user)