I'm using this jsfiddle for the animation and the final value is
wheel.segments[i]
And I would like to retrieve that value after animation has stopped so I can use it in PHP. I tried something like:
function retrivewinner() {
var winner = wheel.segments[i];
window.location.href = "index.php?tag=" + winner;
}
But it would freeze the browser or reload each time
Aucun commentaire:
Enregistrer un commentaire