mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
22 lines
375 B
Vue
22 lines
375 B
Vue
<template>
|
|
<input
|
|
id="progress"
|
|
type="range"
|
|
:value="pos"
|
|
min="0"
|
|
max="100"
|
|
step="0.1"
|
|
@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>
|