1.0.0 Clean html base with no errors
This commit is contained in:
parent
b2ae8d6c10
commit
b12cbc7a65
27
index.html
27
index.html
@ -676,9 +676,9 @@
|
|||||||
// Token split Info
|
// Token split Info
|
||||||
let [floid_balances, floid_transactions] = find_balances_txs_floid(myFloID);
|
let [floid_balances, floid_transactions] = find_balances_txs_floid(myFloID);
|
||||||
|
|
||||||
update_element("total-consumertoken-balance", floid_balances["consumer_amt"]);
|
//update_element("total-consumertoken-balance", floid_balances["consumer_amt"]);
|
||||||
|
|
||||||
render_user_transactions(floid_transactions);
|
//render_user_transactions(floid_transactions);
|
||||||
}
|
}
|
||||||
|
|
||||||
function load_overview_data() {
|
function load_overview_data() {
|
||||||
@ -986,8 +986,6 @@
|
|||||||
function find_balances_txs_floid(floID) {
|
function find_balances_txs_floid(floID) {
|
||||||
let floid_balances = {
|
let floid_balances = {
|
||||||
consumer_amt: 0,
|
consumer_amt: 0,
|
||||||
property_amt: 0,
|
|
||||||
investor_amt: 0,
|
|
||||||
referrer_amt: 0
|
referrer_amt: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1001,18 +999,6 @@
|
|||||||
floid_transactions[d] = floGlobals.generalData[fk][d].message
|
floid_transactions[d] = floGlobals.generalData[fk][d].message
|
||||||
}
|
}
|
||||||
|
|
||||||
if (floGlobals.generalData[fk][d].message.property_floid == floID) {
|
|
||||||
floid_balances["property_amt"] +=
|
|
||||||
floGlobals.generalData[fk][d].message.producer_split;
|
|
||||||
floid_transactions[d] = floGlobals.generalData[fk][d].message
|
|
||||||
}
|
|
||||||
|
|
||||||
if (floGlobals.generalData[fk][d].message.investor_floid == floID) {
|
|
||||||
floid_balances["investor_amt"] +=
|
|
||||||
floGlobals.generalData[fk][d].message.investor_split;
|
|
||||||
floid_transactions[d] = floGlobals.generalData[fk][d].message
|
|
||||||
}
|
|
||||||
|
|
||||||
if (floGlobals.generalData[fk][d].message.referrer_floid == floID) {
|
if (floGlobals.generalData[fk][d].message.referrer_floid == floID) {
|
||||||
floid_balances["referrer_amt"] +=
|
floid_balances["referrer_amt"] +=
|
||||||
floGlobals.generalData[fk][d].message.referrer_split;
|
floGlobals.generalData[fk][d].message.referrer_split;
|
||||||
@ -1194,6 +1180,15 @@
|
|||||||
|
|
||||||
//App functions....
|
//App functions....
|
||||||
|
|
||||||
|
fetch('https://miningapitest.duckdns.org/getUsers')
|
||||||
|
.then(response => response.json())
|
||||||
|
.then(data => {
|
||||||
|
// Check if all the user data is present in the cloud object
|
||||||
|
console.log('user data')
|
||||||
|
console.log(data)
|
||||||
|
})
|
||||||
|
.catch(error => console.error('Error:', error))
|
||||||
|
|
||||||
|
|
||||||
}).catch((error) => console.error(error));
|
}).catch((error) => console.error(error));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user