Hello all,
...like this:
- $(document).idle({
- onIdle: function(){
- if(timer + 1) return;
- _slide();
- },
- onActive: function(){
- if(currEl) currEl.removeClass(addclass);
- if(timer + 1) clearInterval(timer);
- timer = -1;
- },
- idle: idleTime
- });
...and am quite happy with it.
I would now like to trigger an event programmatically to invoke this handler:
Tried lots of combinations like:
- $(window).trigger('idle');
How is it done properly?
Thanks in advance!