The Idle Timer plugin allows you to monitor user activity on the page. Idle is defined as a lack of mouse movement, scrolling, or keyboard input.
You can instantiate the timer either statically or on a specific element. Element-bound
timers will only track activity within that element, whereas global timers will monitor
activity on the entire page. To set up page-level activity, you can initialize the timer
on document, document.documentElement, or
document.body.
The initialization returns a jQuery object, allowing for method chaining.