lets show the odds of winning
< Feedback on Gleam.io Winning Chance
Change code with var total = parseInt(document.querySelector(".current.ng-binding").textContent.replace(/[,.]/,'')) so that it handles all locales correctly.
var total = parseInt(document.querySelector(".current.ng-binding").textContent.replace(/[,.]/,''))
Sign in to post a reply.
Change code with
var total = parseInt(document.querySelector(".current.ng-binding").textContent.replace(/[,.]/,''))
so that it handles all locales correctly.