This commit is contained in:
ashley 2024-07-25 20:54:19 +00:00
parent b5307ddfc8
commit dbde6dbfb9

View file

@ -764,6 +764,11 @@ function cstsRemaining(totalTimeInSeconds, elapsedTimeInSeconds) {
let canPlayPause = true; let canPlayPause = true;
let didFirstTimePlay = false; let didFirstTimePlay = false;
document.addEventListener("DOMContentLoaded", () => { document.addEventListener("DOMContentLoaded", () => {
setInterval(()=>{
if(!document.getElementById("video").paused) {
document.getElementById("play-pause").innerHTML = pauseSVG;
}
}, 100);
//FIXME: saved playback intentionally overwritten //FIXME: saved playback intentionally overwritten
localStorage.setItem(`progress-${new URLSearchParams(window.location.search).get('v')}`, 0); localStorage.setItem(`progress-${new URLSearchParams(window.location.search).get('v')}`, 0);
// Controls and high-res playback // Controls and high-res playback