1. I recommend you don't use wix.com
2. Try using setInterval() for updating the price
read up on it on W3Schools.com or something
3. data["last"].toFixed(2) this gets the data from
https://api.bitcoinaverage.com/ticker/global/USD/{
"24h_avg": 381.58,
"ask": 378.13,
"bid": 377.6,
"last": 378.0, // The data here is used (data["last"])
"timestamp": "Thu, 11 Feb 2016 15:04:41 -0000",
"volume_btc": 73598.5,
"volume_percent": 76.12
}
now you have that, you get that value, + 5%
1 = 100%
0.01 = 1%
Therefore the value + 5% is = value * 1.05
I don't want to give you the actual code, so you can learn
Regards,
JM Erestain