Hi,
So I have this fiddle: http://jsfiddle.net/bb0Lschd/4/
And what it is is a slot machine using jSlots jquery plugin. However, I want the machine to trigger on load, and did so with trigger(‘click’) on window load, and then I did a setTimeout on the function so it repeats itself with 1000ms paus.
However, the “repeats” doesnt seem to count as clicks, because I get the same ending number for each “slot-roll”. And as you can see that is not what I want, so i set different ending numbers for each click.
Anyone know how this can be fixed?
I am a beginner at jquery/js , and maybe there is some better way to go through three different ending number -scenarios, without counting clicks? Like doing an array in an array or something? array(array(‘1’,‘1’,‘1’), (array(‘2’,‘2’,‘2’),(array(‘3’,‘3’,‘3’));