There is also a more modern version of the plugin.
He will be able to trigger an unoccupied event for the entire document or individual elements. For example, a mouse over an element in x seconds, and it fires an event. Another event is fired when the user becomes active again.
This unoccupied event will allow you to redirect the user after a specified period of inactivity.
Supported Activity: mousemove keydown wheel DOMMouseScroll mousewheel mousedown touchstart touchmove MSPointerDown MSPointerMove
https://github.com/thorst/jquery-idletimer
Firze
source share