Add Rewind and Forward

This commit is contained in:
Neshura 2024-04-22 20:07:52 +02:00
parent 20499ca5a1
commit 6a7ba60ca9
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -239,11 +239,13 @@
<p class="border p-2">{progressPercent().toFixed(2)}%</p> <p class="border p-2">{progressPercent().toFixed(2)}%</p>
<Button class="border p-2" onclick={() => changeVolume(-0.05)}>-</Button> <Button class="border p-2" onclick={() => changeVolume(-0.05)}>-</Button>
<Button class="border p-2" onclick={() => changeVolume(0.05)}>+</Button> <Button class="border p-2" onclick={() => changeVolume(0.05)}>+</Button>
<Button class="border p-2" onclick={() => currentSong.source.currentTime -= 5}>{"<<"}</Button>
{#if isPaused} {#if isPaused}
<Button onclick={play}>Play</Button> <Button onclick={play}>Play</Button>
{:else} {:else}
<Button onclick={pause}>Pause</Button> <Button onclick={pause}>Pause</Button>
{/if} {/if}
<Button class="border p-2" onclick={() => currentSong.source.currentTime += 5}>{">>"}</Button>
<Button class="border p-2" onclick={() => mode.next()}>{mode.get()}</Button> <Button class="border p-2" onclick={() => mode.next()}>{mode.get()}</Button>
</div> </div>
</div> </div>