From 2dc2fa7cdfbee690fbf1361fb46910eec0b3b673 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Sat, 26 Oct 2019 00:00:28 +0530 Subject: [PATCH] Update FLO_webWallet_mainnet.html --- FLO_webWallet_mainnet.html | 110 +++++++++++++++++++++++-------------- 1 file changed, 68 insertions(+), 42 deletions(-) diff --git a/FLO_webWallet_mainnet.html b/FLO_webWallet_mainnet.html index f81864f..90da845 100644 --- a/FLO_webWallet_mainnet.html +++ b/FLO_webWallet_mainnet.html @@ -78,7 +78,7 @@ button { button:hover { background-color: var(--opac-accent-color); - border: 1px var(--accent-color) solid; + border: 1px transparent solid; } .primaryButton { @@ -91,26 +91,10 @@ button:hover { opacity: 0.8; } -input:disabled, -input[disabled] { - cursor: not-allowed; -} - -input:disabled:hover, -input[disabled]:hover { - background: transparent; -} - button:disabled, button[disabled] { - cursor: not-allowed; color: var(--sec-color); -} - -button:disabled:hover, -button[disabled]:hover { - background: transparent; - border: 1px solid var(--sec-color); + pointer-events: none; } button:focus, input:focus, textarea:focus { @@ -364,6 +348,25 @@ textarea, input { border: 1px solid var(--accent-color); } +#sendData .sdleft #loadBalance { + opacity: 0; + position: absolute; + top: 0; + right: 0; + width: 2em; + height: 2em; + padding: 0.3em; + margin: 2em 1em; +} + +#sendData .sdleft #loadBalance #p1 { + fill: none; +} + +#sendData .sdleft #loadBalance #p2 { + fill: var(--accent-color); +} + #sendData #sdright { opacity: 0.6; -ms-flex-wrap: wrap; @@ -380,6 +383,7 @@ textarea, input { } #sendData #dispBal { + position: relative; width: 100%; border: 1px solid var(--sec-color); padding: 1em 2em; @@ -545,7 +549,7 @@ textarea, input { padding: 0.6em; height: 2.5em; width: 2.5em; - margin: 1em; + margin: 0.8em; fill: var(--bw); opacity: 0.5; border-radius: 2em; @@ -703,29 +707,27 @@ input[type=number] { } loading { - pointer-events: none; position: absolute; display: -ms-grid; display: grid; - top: 0; - bottom: 0; - left: 0; - right: 0; + height: calc(100% - 1.6em); + width: calc(100% - 1.1em); place-items: center; z-index: 10; } loading svg { position: relative; - height: 4em; - width: 4em; - -webkit-animation: spin 1s infinite ease; - animation: spin 1s infinite ease; - fill: var(--accent-color); + height: 2.5em; + width: 2.5em; } -loading svg .st1 { - opacity: 0.4; +loading #p1 { + fill: none; +} + +loading #p2 { + fill: var(--accent-color); } #addNewAddress { @@ -806,7 +808,7 @@ loading svg .st1 { } #edit-container #edit div:first-of-type { - overflow-wrap: break-word; + word-break: break-all; opacity: 0.6; margin: 1em 0; } @@ -1058,6 +1060,11 @@ input:checked + .slider:before { padding: 0 1em; } +.spin { + -webkit-animation: spin 1s infinite ease; + animation: spin 1s infinite ease; +} + @-webkit-keyframes spin { 0% { -webkit-transform: rotate(0deg); @@ -1620,6 +1627,15 @@ input:checked + .slider:before {
+ + + + + +
Available balance
0 @@ -1649,8 +1665,8 @@ input:checked + .slider:before {
- -

+ +

@@ -1738,7 +1754,7 @@ input:checked + .slider:before { floAddr = document.getElementById('floAddr'), addrLabel = document.getElementById('addrLabel'), newAddrLabel = document.getElementById('newAddrLabel'), - recentPage = 'sendDataBtn', + recentPage = 'getDataBtn', mode, activeAddress; const html = document.querySelector('html'); @@ -2016,7 +2032,9 @@ input:checked + .slider:before { } function getBal(){ - let x= document.getElementById("getBal_addr"); + let x= document.getElementById("getBal_addr"), + loading = document.getElementById('loadBalance'); + loading.classList.add('show', 'spin'); floBlockchainAPI.getBalance(x.value).then((retrievedBal) => { let parts = retrievedBal.split("."), floatPart = parts.pop(), @@ -2030,8 +2048,10 @@ input:checked + .slider:before { document.getElementById('sdright').setAttribute('style', 'pointer-events: all; opacity: 1') document.getElementById('sendBtn').disabled = false; } + loading.classList.remove('show', 'spin'); }).catch((error) => { console.log(error); + loading.classList.remove('show', 'spin'); }) } @@ -2114,12 +2134,17 @@ input:checked + .slider:before { dbLabels = floWebWallet.getLabels(), tCont = document.getElementById('transactions-container'); tCont.innerHTML= ` - - - - - `; + + + + + + + `; + document.querySelector('loading').children[0].classList.add('spin'); document.getElementById('addressLabel').textContent = label; document.getElementById('fullAddress').textContent = address; floWebWallet.syncTransactions(address); @@ -2128,6 +2153,7 @@ input:checked + .slider:before { tCont.innerHTML = `

There are no transactions to show.

`; } else{ + document.querySelector('loading').children[0].classList.remove('spin'); tCont.innerHTML = ''; receivedData.forEach(tx => { let date = new Date(tx.time*1000).toLocaleDateString(),