mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
15d5e1476a
- use for loop to render l-sidebar content - add current track image on l-sidebar - other minor changes
22 lines
386 B
Vue
22 lines
386 B
Vue
<template>
|
|
<input
|
|
class="progress-bar"
|
|
id="progress"
|
|
type="range"
|
|
:value="pos"
|
|
min="0"
|
|
max="1000"
|
|
@change="seek()"
|
|
/>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { ref } from "vue";
|
|
import playAudio from "../../composables/playAudio";
|
|
const pos = ref(playAudio.pos);
|
|
|
|
const seek = () => {
|
|
playAudio.seek(document.getElementById("progress").value);
|
|
};
|
|
</script>
|