UI update

Added currency formatting to remaining prices
This commit is contained in:
sairaj mote 2021-05-15 17:19:36 +05:30
parent d348a213ef
commit 88fa5c7d62

View File

@ -101,7 +101,7 @@
<section id="homepage__hero-section" class="full-bleed page-layout"> <section id="homepage__hero-section" class="full-bleed page-layout">
<h2 class="h2 weight-700 margin-bottom-1r">Bob's Fund<br>on FLO Blockchain</h2> <h2 class="h2 weight-700 margin-bottom-1r">Bob's Fund<br>on FLO Blockchain</h2>
<p> <p>
Bob's Fund is a 20 year long term Bitcoin price linked product. Investors are entitled to 100 percent Bob's Fund is a 20 year long term Bitcoin price linked product. Investors are entitled to 100%
of Bitcoin price gains, but they must hold for 20 years. Over a very long time period, investor returns of Bitcoin price gains, but they must hold for 20 years. Over a very long time period, investor returns
on an asset like Bitcoin should outstrip returns on conventional assets like real estate and stocks. The on an asset like Bitcoin should outstrip returns on conventional assets like real estate and stocks. The
management fees on this product is zero. RanchiMall earns by having invested an equal amount as management fees on this product is zero. RanchiMall earns by having invested an equal amount as
@ -10392,7 +10392,7 @@ Bitcoin.Util = {
this.shadow.querySelector('.start-date').textContent = startDate this.shadow.querySelector('.start-date').textContent = startDate
this.shadow.querySelector('.end-date').textContent = endDate this.shadow.querySelector('.end-date').textContent = endDate
this.shadow.querySelector('.base-usd').textContent = `₹${baseUsd}` this.shadow.querySelector('.base-usd').textContent = `₹${baseUsd}`
this.shadow.querySelector('.base-btc').textContent = `$${baseBtc}` this.shadow.querySelector('.base-btc').textContent = `${baseBtc.toLocaleString(`en-US`, {style: 'currency', currency: 'USD'})}`
this.shadow.querySelector('.investors-group-list').append(investorsFrag) this.shadow.querySelector('.investors-group-list').append(investorsFrag)
this.toggleCurrency() this.toggleCurrency()
@ -10781,7 +10781,7 @@ Bitcoin.Util = {
BTC_current = rates.BTC_USD; BTC_current = rates.BTC_USD;
console.log(`USD rate: ${USD_current} INR\nBTC rate: ${BTC_current} USD`); console.log(`USD rate: ${USD_current} INR\nBTC rate: ${BTC_current} USD`);
getRef("usd-rate").textContent = `USD: ₹${rates.USD_INR.toFixed(2)}`; getRef("usd-rate").textContent = `USD: ₹${rates.USD_INR.toFixed(2)}`;
getRef("btc-usd-rate").textContent = `BTC: $${rates.BTC_USD.toFixed(2)}`; getRef("btc-usd-rate").textContent = `BTC: ${parseFloat(rates.BTC_USD.toFixed(2)).toLocaleString(`en-US`, {style: 'currency', currency: 'USD'})}`;
getRef('fund_list').innerHTML = ''; getRef('fund_list').innerHTML = '';
getRef('fund_selector').innerHTML = '' getRef('fund_selector').innerHTML = ''
getRef('term_selector').innerHTML = `` getRef('term_selector').innerHTML = ``
@ -11011,7 +11011,7 @@ Bitcoin.Util = {
smOption.innerHTML = ` smOption.innerHTML = `
<div class="grid gap-0-5"> <div class="grid gap-0-5">
<span>Start date: ${fundObj.startDate}</span> <span>Start date: ${fundObj.startDate}</span>
<span>Base BTC: $${fundObj.baseBtc} | Base USD: ₹${fundObj.baseUsd}</span> <span>Base BTC: ${parseFloat(fundObj.baseBtc).toLocaleString(`en-US`, {style: 'currency', currency: 'USD'})} | Base USD: ₹${fundObj.baseUsd}</span>
</div> </div>
` `
smOption.setAttribute('value', funds[k][0].txid) smOption.setAttribute('value', funds[k][0].txid)