1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-12-25 02:20:27 +00:00

Fix: set playcounter to max-value = 1000

This commit is contained in:
jcorporation 2018-11-22 23:44:55 +00:00
parent ae706a51a6
commit 4a4c8921d7
2 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@
<div class="card-footer cardFooterPlayback">
<div class="d-flex align-items-center">
<button data-href='{"cmd": "clickPlay", "options": []}' class="mr-1 ml-1 btn btn-light material-icons btnPlay progressBarPlay">pause</button>
<input type="range" min="0" max="100" step="1" class="mr-1 ml-1 form-control-range flex-grow-1" id="progressBar">
<input type="range" min="0" max="1000" step="1" class="mr-1 ml-1 form-control-range flex-grow-1" id="progressBar">
<div class="btn ml-1 mr-1" id="counter">&nbsp;&nbsp;</div>
</div>
</div>

View File

@ -1330,7 +1330,7 @@ function setCounter(currentSongId, totalTime, elapsedTime) {
var elapsed_minutes = Math.floor(elapsedTime / 60);
var elapsed_seconds = elapsedTime - elapsed_minutes * 60;
domCache.progressBar.value = Math.floor(100 * elapsedTime / totalTime);
domCache.progressBar.value = Math.floor(1000 * elapsedTime / totalTime);
var counterText = elapsed_minutes + ":" +
(elapsed_seconds < 10 ? '0' : '') + elapsed_seconds + " / " +