AlexanderTirik / homepage

My very own personal website. Basically this is just a résumé.
https://alexandertirik.github.io/homepage/
MIT License
0 stars 1 forks source link

Add growing of shares #16

Closed AlexanderTirik closed 4 years ago

AlexanderTirik commented 4 years ago

Need to write a function which will grow shares cost

AlexanderTirik commented 4 years ago
setInterval(() => {
  var shares = document.getElementById("shares").innerHTML
  shares = +shares.slice(0, -1)
  var range = Math.floor(shares*(randomInteger(5,10)/100))
  if (shares < 10000) animateValue("shares", range, 500)
}, randomInteger(3000,6000))