From e61be9f59407e383b86230a9e1209899e33540ca Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Fri, 11 Sep 2020 18:13:49 +0530 Subject: [PATCH] Fixed: floData with 16 char didnot sent on testnet Adjusted max floData size to 1040 --- FLO_webWallet_minified.html | 2 +- index.html | 10987 ++++++++++++++++---------------- testnet.html | 11394 +++++++++++++++++----------------- 3 files changed, 11234 insertions(+), 11149 deletions(-) diff --git a/FLO_webWallet_minified.html b/FLO_webWallet_minified.html index 6a7467e..d4c981b 100644 --- a/FLO_webWallet_minified.html +++ b/FLO_webWallet_minified.html @@ -12,7 +12,7 @@
There seems to be a problem connecting to the internet.
Monitor
Monitor FLO data
Send
Send FLO data
Generate
Generate address
Settings
Settings
Settings
Copied

Add new address to monitoring list

Edit display card

Copy FLO address

Add new address to monitor
Go back to monitoring page

Refresh transactions
Available balance
0
To send FLO data, make sure you have enough balance.
Go back to monitoring page

Send

Transaction successful



Dark mode

Automatic
Dark mode active : 6pm - 6am
Manual
Dark mode

Clear all local data

This will delete all local Web Wallet data like added addresses and locally stored transactions.After clearing local data you may experience slow loading of newly added address, please proceed cautiously!

About

Version 2.7.2
Powered by
diff --git a/index.html b/index.html index 4226bcb..6119427 100644 --- a/index.html +++ b/index.html @@ -165,7 +165,7 @@ color: var(--accent-color); } - .text-area textarea{ + .text-area textarea { resize: none; } @@ -193,11 +193,11 @@ transition: border 0.2s ease; } - textarea{ + textarea { margin-bottom: 2rem; } - #show_character_count{ + #show_character_count { position: absolute; bottom: 0; right: 0; @@ -1799,7 +1799,8 @@ -
+
@@ -1816,14 +1817,14 @@ - +
Send
Send FLO data
-
+
+ id="floAddr" />
- +
@@ -1894,7 +1896,7 @@

- @@ -1963,22 +1965,22 @@
To send FLO data, make sure you have enough balance.
- +
-
-
@@ -2006,7 +2008,7 @@
-
@@ -2042,7 +2044,7 @@ Dark mode active : 6pm - 6am @@ -2052,7 +2054,7 @@ Dark mode @@ -2109,9 +2111,8 @@

Recover FLO address

Please enter your private key.
- +
@@ -2163,13 +2164,13 @@ function daylight() { html.setAttribute("style", `--bw: #000;--back-color: #EBEBEB;--body-color: #fff;--sidenav-color:#f0f0f0;--sec-color: #ccc;--opac-accent-color: rgb(210, 13, 29, 0.1);` - ); + ); } function nightlight() { html.setAttribute("style", `--bw: #fff;--back-color: #222;--body-color: #2a2a2a;--sidenav-color:#313131;--sec-color: #555;--opac-accent-color: rgb(210, 13, 29, 0.2);` - ); + ); } function autoMode() { @@ -2446,7 +2447,7 @@ floatPart = parts[1], intPart = parts[0]; intPartText.textContent = intPart; - if(floatPart) + if (floatPart) floatPartText.textContent = `.${floatPart}`; document.getElementById('sdright').setAttribute('style', 'pointer-events: all; opacity: 1') loading.classList.remove('show', 'spin'); @@ -2561,50 +2562,50 @@ floWebWallet.readTransactions(address).then((receivedData) => { if (receivedData === undefined) tCont.innerHTML = - `

Data is not synced yet, Try again after sometime.

`; + `

Data is not synced yet, Try again after sometime.

`; else - if (receivedData.length === 0) { - tCont.innerHTML = - `

There are no transactions to show.

`; - } else { - receivedData.reverse(); - document.querySelector('loading').children[0].classList.remove('spin'); - tCont.innerHTML = ''; - if (receivedData.length < 10) { - limit = receivedData.length; - tCont.appendChild(createTransactionCard(address, receivedData)) + if (receivedData.length === 0) { + tCont.innerHTML = + `

There are no transactions to show.

`; } else { - let timeout; - scrollingEvent = tCont.addEventListener('scroll', (event) => { - clearTimeout(timeout) - timeout = setTimeout(() => { - if (tCont.scrollTop > window.innerHeight) - document.getElementById('scrollToTop').classList.add( - 'show'); - else - document.getElementById('scrollToTop').classList.remove( - 'show'); - }, 200); - }) - tCont.appendChild(createTransactionCard(address, receivedData)) - const load = target => { - const sm = new IntersectionObserver((entries, observer) => { - entries.forEach((entry) => { - if (entry.isIntersecting && entry.target == tCont - .lastElementChild && receivedData.length >= limit) { - tCont.appendChild(createTransactionCard(address, - receivedData)) - document.querySelectorAll('transaction-card') - .forEach(load); - observer.disconnect(); - } - }) + receivedData.reverse(); + document.querySelector('loading').children[0].classList.remove('spin'); + tCont.innerHTML = ''; + if (receivedData.length < 10) { + limit = receivedData.length; + tCont.appendChild(createTransactionCard(address, receivedData)) + } else { + let timeout; + scrollingEvent = tCont.addEventListener('scroll', (event) => { + clearTimeout(timeout) + timeout = setTimeout(() => { + if (tCont.scrollTop > window.innerHeight) + document.getElementById('scrollToTop').classList.add( + 'show'); + else + document.getElementById('scrollToTop').classList.remove( + 'show'); + }, 200); }) - sm.observe(target) + tCont.appendChild(createTransactionCard(address, receivedData)) + const load = target => { + const sm = new IntersectionObserver((entries, observer) => { + entries.forEach((entry) => { + if (entry.isIntersecting && entry.target == tCont + .lastElementChild && receivedData.length >= limit) { + tCont.appendChild(createTransactionCard(address, + receivedData)) + document.querySelectorAll('transaction-card') + .forEach(load); + observer.disconnect(); + } + }) + }) + sm.observe(target) + } + document.querySelectorAll('transaction-card').forEach(load); } - document.querySelectorAll('transaction-card').forEach(load); } - } }).catch((error) => { console.log(error); alert(error); @@ -2719,7 +2720,7 @@ floWebWallet.getLabels().then((labelAddr) => { if (Object.entries(labelAddr).length === 0) document.getElementById('monitor-list').innerHTML = - `

Add a FLO address to start monitoring

`; + `

Add a FLO address to start monitoring

`; else Object.keys(labelAddr).forEach((address) => { createAddressCards(address, labelAddr[address]); @@ -2796,4682 +2797,4682 @@ document.getElementById('transactions-container').scrollTop = 0; } - let showCharacterCount = document.getElementById('show_character_count') - document.getElementById('flotextdata').addEventListener('input', function(){ - if(1040 - this.value.length){ - showCharacterCount.textContent = `${1040 - this.value.length}/1040` + let showCharacterCount = document.getElementById('show_character_count') + document.getElementById('flotextdata').addEventListener('input', function () { + if (1040 - this.value.length) { + showCharacterCount.textContent = `${1040 - this.value.length}/1040` } else - showCharacterCount.textContent = `You can only add FLO data upto 1040 characters.` + showCharacterCount.textContent = `You can only add FLO data upto 1040 characters.` }) - + - - + - - + + - + + \ No newline at end of file diff --git a/testnet.html b/testnet.html index dea84b8..778056f 100644 --- a/testnet.html +++ b/testnet.html @@ -1,817 +1,900 @@ + -FLO webWallet Testnet - + FLO webWallet Testnet + - - - + + - + /* for custom scrollbar for webkit browser*/ + ::-webkit-scrollbar { + width: 6px; + } + + ::-webkit-scrollbar-track { + -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); + } + + ::-webkit-scrollbar-thumb { + -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); + } + + + - + window["loadwait"] = false; + window["refreshwait"] = false; + const fee = 0.0005; + -

FLOTestnet Web Wallet

- +

FLOTestnet Web Wallet

-
- -
-
-
- -
-
-
- - - - - - - -
FLO AddressPrivate Key
-
-
- -
-
-
-
+
+ +
-
-
-
- +
+
-
-
+
+
+
+ + + + + + + +
FLO AddressPrivate Key
+
+
+ +
+
+
+
+ +
+
+
+ + +
+
+
+
+
+ + + +
-
- - -
+ +
+
+
-
-
+
+ -
-
- - -
-
-
+ - - - - - - - - var change = utxoAmt-sendAmt-fee; - if(change>0) - trx.addoutput(sender, change); - console.log(sender+":"+ change); + + function validateAddr(inputtxt) { + try { + var addr = new Bitcoin.Address(inputtxt); + return true; + + } catch { + return false; + } + } + + function verifyWIF(wif, addr) { + try { + var key = new Bitcoin.ECKey(wif); + if (key.priv == null) { + return false; + } + key.setCompressed(true); + var bitcoinAddress = key.getBitcoinAddress(); + if (addr == bitcoinAddress) + return true; + else + return false; + } + catch (e) { + // browser does not have sufficient JavaScript support to generate a bitcoin address + alert(e); + console.log("error"); + } + } + + + + + + - - - - + + }); + break; + } + table.deleteRow(0); + }; + db.close(); + }; + }); + } + + function removedata(param) { + param.parentNode.removeChild(param); + } + + function editLabel(param) { + param.getElementsByTagName('input')[0].disabled = false; + param.getElementsByTagName('button')[0].style.display = "none"; + param.getElementsByTagName('button')[1].style.display = "block"; + } + function saveLabel(param) { + label = param.getElementsByTagName('input')[0]; + label.disabled = true; + label = label.value; + param.getElementsByTagName('button')[0].style.display = "block"; + param.getElementsByTagName('button')[1].style.display = "none"; + var idb = indexedDB.open("FLO_webWallet_testnet"); + idb.onerror = function (event) { + console.log("Error in opening IndexedDB!"); + }; + idb.onsuccess = function (event) { + var db = event.target.result; + var obslabel = db.transaction('Label', "readwrite").objectStore('Label'); + obslabel.put(label, param.id); + db.close(); + } + } + + + - + + \ No newline at end of file