jQuery-jSlots
jQuery-jSlots copied to clipboard
How to call it on a jquery function
Instead of using the spin event and spinner how can you call it in a functions
any luck on this?
Looks like a reference to the jSlots base object is set on $el.data("jSlots", base).
https://github.com/matthewlein/jQuery-jSlots/blob/e87ce43045ed3f7718e9951ffb15826ba298694f/jquery.jSlots.js#L19
So after instantiating it, you should be able to make calls directly using that. Something along the lines of this:
var $slot = $('.slot').jSlots();
$slot.data('jSlots').playSlots();