Detect User Activity And Fire Callback After A Idle Time – idle.js
idle.js is a vanilla JavaScript based idle timer that checks if a user is idle for a specific amount of time and fires a callback function (or redirects the page to another) if the user goes idle.