jQuery throws out a wrong number? -
i'm working on simple roulette wheel using jquery. i can spin wheel using jquery want strange reason jquery code spits out wrong number! here code: jquery code: <script type="text/javascript">//<![cdata[ $(function(){ window.wheeloffortune = { cache: {}, init: function () { console.log('controller init...'); var _this = this; this.cache.wheel = $('.wheel'); this.cache.wheelmarker = $('.marker'); this.cache.wheelspinbtn = $('.wheel'); //mapping backwards wheel spins clockwise //1=win this.cache.wheelmapping = [5,24,16,33,1,20,14,31,9,22,18,29,7,28,12,35,3,26,0,32,15,19,4,21,2,25,17,34,6,27,13,36,11,30,8,23,10].reverse(); this.cache.wheelspinbtn.on('click', function (e) { e.preventdefault(); if (!...