Advertisement
Guest User

Untitled

a guest
Apr 8th, 2020
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         $(document).ready(function () {
  2.             idleWait = 35000;
  3.             $(document).bind('mousemove keydown touchstart', function () {
  4.                 clearTimeout(timerRedirect);
  5.                 timerRedirect =
  6.                     setTimeout(function () {
  7.                         window.location.href = window.location.origin + '/screen';
  8.                     }, idleWait);
  9.             });
  10.         });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement