Stop progress bar when paused
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
1ffc0dbdd3
commit
e03e48d08f
|
@ -64,6 +64,7 @@
|
|||
document.title = "Empede";
|
||||
{% endif %}
|
||||
|
||||
{% if state == mpdrs::State::Play %}
|
||||
progressBar = document.querySelector(".nowplaying .progress");
|
||||
elapsed = {{ elapsed }};
|
||||
duration = {{ duration }};
|
||||
|
@ -77,4 +78,5 @@
|
|||
let progress = elapsed / duration;
|
||||
progressBar.style.width = `${progress * 100}%`;
|
||||
}, 1000);
|
||||
{% endif %}
|
||||
</script>
|
Loading…
Reference in New Issue