From 88fa5c7d624c7d20588ef7e220233cc9c11ff9d7 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Sat, 15 May 2021 17:19:36 +0530 Subject: [PATCH] UI update Added currency formatting to remaining prices --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 4c9b024..24cd606 100644 --- a/index.html +++ b/index.html @@ -101,7 +101,7 @@

Bob's Fund
on FLO Blockchain

- 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 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 @@ -10392,7 +10392,7 @@ Bitcoin.Util = { this.shadow.querySelector('.start-date').textContent = startDate this.shadow.querySelector('.end-date').textContent = endDate 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.toggleCurrency() @@ -10781,7 +10781,7 @@ Bitcoin.Util = { BTC_current = rates.BTC_USD; console.log(`USD rate: ${USD_current} INR\nBTC rate: ${BTC_current} USD`); 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_selector').innerHTML = '' getRef('term_selector').innerHTML = `` @@ -11011,7 +11011,7 @@ Bitcoin.Util = { smOption.innerHTML = `

Start date: ${fundObj.startDate} - Base BTC: $${fundObj.baseBtc} | Base USD: ₹${fundObj.baseUsd} + Base BTC: ${parseFloat(fundObj.baseBtc).toLocaleString(`en-US`, {style: 'currency', currency: 'USD'})} | Base USD: ₹${fundObj.baseUsd}
` smOption.setAttribute('value', funds[k][0].txid)