added unconfirmed rupee balance UI component
This commit is contained in:
parent
4116861be2
commit
c8ad9fbcc3
@ -1101,6 +1101,11 @@ sm-panel {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.user-panel {
|
||||||
|
position: sticky;
|
||||||
|
top: 1.5rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@media only screen and (min-width: 1920px) {
|
@media only screen and (min-width: 1920px) {
|
||||||
body {
|
body {
|
||||||
|
|||||||
2
css/main.min.css
vendored
2
css/main.min.css
vendored
File diff suppressed because one or more lines are too long
@ -1234,6 +1234,10 @@ sm-panel{
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.user-panel{
|
||||||
|
position: sticky;
|
||||||
|
top: 1.5rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 1920px) {
|
@media only screen and (min-width: 1920px) {
|
||||||
|
|||||||
14
index.html
14
index.html
@ -438,13 +438,13 @@
|
|||||||
<h5>Rupee</h5>
|
<h5>Rupee</h5>
|
||||||
<h3 class="token-balance">0</h3>
|
<h3 class="token-balance">0</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="balance">
|
<div class="balance">
|
||||||
<h5>Unconfirmed Rupee</h5>
|
<h5>Unconfirmed Rupee</h5>
|
||||||
<h3 id="uncnf_token_balance">0</h3>
|
<h3 class="uncnf-token-balance">0</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="balance">
|
<div class="balance">
|
||||||
<h5>FLO</h5>
|
<h5>FLO</h5>
|
||||||
<h3 class="flo-balance" id="flo_balance">0</h3>
|
<h3 class="flo-balance">0</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -664,6 +664,10 @@
|
|||||||
<h5>Rupee</h5>
|
<h5>Rupee</h5>
|
||||||
<h3 class="token-balance">0</h3>
|
<h3 class="token-balance">0</h3>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="balance">
|
||||||
|
<h5>Unconfirmed Rupee</h5>
|
||||||
|
<h3 class="uncnf-token-balance">0</h3>
|
||||||
|
</div>
|
||||||
<div class="balance">
|
<div class="balance">
|
||||||
<h5>FLO</h5>
|
<h5>FLO</h5>
|
||||||
<h3 class="flo-balance">0</h3>
|
<h3 class="flo-balance">0</h3>
|
||||||
@ -11741,12 +11745,12 @@
|
|||||||
document.querySelectorAll('.token-balance').forEach(bal => bal.textContent = get_user_rupee_balance.balance);
|
document.querySelectorAll('.token-balance').forEach(bal => bal.textContent = get_user_rupee_balance.balance);
|
||||||
}
|
}
|
||||||
if(typeof get_user_unconfirmed_rupee_balance=="number" && !isNaN(get_user_unconfirmed_rupee_balance)) {
|
if(typeof get_user_unconfirmed_rupee_balance=="number" && !isNaN(get_user_unconfirmed_rupee_balance)) {
|
||||||
document.getElementById('uncnf_token_balance').textContent = get_user_unconfirmed_rupee_balance;
|
document.querySelectorAll('.uncnf-token-balance').forEach(elem => elem.textContent = get_user_unconfirmed_rupee_balance);
|
||||||
}
|
}
|
||||||
if (typeof get_user_flo_balance !== "number" || isNaN(get_user_flo_balance)) {
|
if (typeof get_user_flo_balance !== "number" || isNaN(get_user_flo_balance)) {
|
||||||
get_user_flo_balance = 0;
|
get_user_flo_balance = 0;
|
||||||
}
|
}
|
||||||
document.getElementById('flo_balance').textContent = get_user_flo_balance;
|
document.querySelectorAll('.flo-balance').forEach(elem => elem.textContent = get_user_flo_balance);
|
||||||
}
|
}
|
||||||
if (refreshButton) {
|
if (refreshButton) {
|
||||||
notify('Balance Updated')
|
notify('Balance Updated')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user