mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 07:18:26 +01:00
save every 5 seconds instead
This commit is contained in:
parent
1e3fd63d56
commit
e5a6092a25
1 changed files with 1 additions and 5 deletions
|
@ -96,10 +96,6 @@ function fadeInElements() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
window.addEventListener('scroll', fadeInElements);
|
|
||||||
document.addEventListener('fullscreenchange', fadeInElements);
|
|
||||||
setInterval(fadeInElements, 100);
|
|
||||||
|
|
||||||
function jumpToTime(e) {
|
function jumpToTime(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
|
@ -188,7 +184,7 @@ function resumeProgress() {
|
||||||
}
|
}
|
||||||
|
|
||||||
video.addEventListener('timeupdate', () => {
|
video.addEventListener('timeupdate', () => {
|
||||||
if (Math.floor(video.currentTime) % 1 === 0) {
|
if (Math.floor(video.currentTime) % 5 === 0) {
|
||||||
saveProgress();
|
saveProgress();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue