mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
remove pagination
This commit is contained in:
@@ -21,7 +21,7 @@ const playAudio = (path) => {
|
||||
};
|
||||
|
||||
audio.ontimeupdate = () => {
|
||||
pos.value = (audio.currentTime / audio.duration) * 100;
|
||||
pos.value = (audio.currentTime / audio.duration) * 1000;
|
||||
};
|
||||
|
||||
audio.addEventListener("ended", () => {
|
||||
@@ -41,7 +41,7 @@ function playPrev() {
|
||||
|
||||
function seek(pos) {
|
||||
console.log(pos);
|
||||
audio.currentTime = (pos / 100) * audio.duration;
|
||||
audio.currentTime = (pos / 1000) * audio.duration;
|
||||
}
|
||||
|
||||
function playPause() {
|
||||
|
||||
Reference in New Issue
Block a user