How to control the spinning wheel result
I
am creating a fortune wheel using jquery
- $( document ).ready(function() {
-
- var prices = [0, 26, 3, 35, 12, 28, 7, 29, 18, 22, 9, 31, 14, 20, 1, 33, 16, 24, 5, 10, 23, 8, 30, 11, 36, 13, 27, 6, 34, 17, 25, 2, 21, 4, 19, 15, 32];
- setInterval(function () {
-
- var $r = $('.roulette').fortune(prices);
-
- $r.spin().done(function(price) {
- $('.price').text(price);
- $('.result_number_circle').text(price);
-
- });
- // $('.roulette').animate({rotate: '+=10deg'}, 0);
- },30000);
- });
Here is the codepen
CODEPEN
Now I want to control the output.I want to show that result which I will define. Can you please tell me how is it achievable?