1
Fork 0

save every 5 seconds instead

This commit is contained in:
Ashley //// 2024-04-21 03:14:01 +00:00
parent 1e3fd63d56
commit e5a6092a25

View file

@ -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();
}
});