From e5a6092a258844aa342fbd9c3cacd584cee921fa Mon Sep 17 00:00:00 2001 From: Ashley //// Date: Sun, 21 Apr 2024 03:14:01 +0000 Subject: [PATCH] save every 5 seconds instead --- css/app.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/css/app.js b/css/app.js index f2651a26..67b19cfd 100644 --- a/css/app.js +++ b/css/app.js @@ -96,10 +96,6 @@ function fadeInElements() { }); } -window.addEventListener('scroll', fadeInElements); -document.addEventListener('fullscreenchange', fadeInElements); -setInterval(fadeInElements, 100); - function jumpToTime(e) { e.preventDefault(); @@ -188,7 +184,7 @@ function resumeProgress() { } video.addEventListener('timeupdate', () => { - if (Math.floor(video.currentTime) % 1 === 0) { + if (Math.floor(video.currentTime) % 5 === 0) { saveProgress(); } });