mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-29 17:08:49 +01:00
ehe
This commit is contained in:
parent
b5307ddfc8
commit
dbde6dbfb9
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue