Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremieForge committed Jul 20, 2021
1 parent 63c92f7 commit 43a0570
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions WebApps/S1-VIDEOPLAYER/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,16 @@ var idleTime = 3000;
var autoHideControls = function() {
var timer;

window.onload = timerReset;
document.onkeypress = timerReset;
document.onmousemove = timerReset;
document.onmousedown = timerReset;
document.ontouchstart = timerReset;
document.onclick = timerReset;
document.onscroll = timerReset;
document.onkeypress = timerReset;
// window.onload = timerReset;
// document.onkeypress = timerReset;
// document.onmousemove = timerReset;
// document.onmousedown = timerReset;
// document.ontouchstart = timerReset;
// document.onclick = timerReset;
// document.onscroll = timerReset;
// document.onkeypress = timerReset;
$('body').mousemove(function(){ timerReset(); })
$('body').click(function(){ timerReset(); })

function timerElapsed() {
hideControls();
Expand Down

0 comments on commit 43a0570

Please sign in to comment.