minor fixes
This commit is contained in:
@ -93,9 +93,7 @@
|
||||
}
|
||||
});
|
||||
document.getElementById("playbar").addEventListener("input", (e) => {
|
||||
let value = document.getElementById("playbar").value;
|
||||
audioObject.currentTime = value/1000*audioObject.duration;
|
||||
document.getElementById("playbar").value = value;
|
||||
audioObject.currentTime = document.getElementById("playbar").value/1000*audioObject.duration;
|
||||
});
|
||||
audioObject.addEventListener("timeupdate", (e) => {
|
||||
document.getElementById("totalLength").innerText = `${Math.floor(audioObject.duration/60)}:${String(Math.floor(audioObject.duration%60)).padStart(2, "0")}`
|
||||
|
||||
Reference in New Issue
Block a user