Cleanup unused files
This commit is contained in:
parent
6bff963d7a
commit
352a1b857e
2 changed files with 0 additions and 30 deletions
|
@ -1 +0,0 @@
|
|||
export let audioStore: HTMLAudioElement = $state(new Audio());
|
|
@ -1,29 +0,0 @@
|
|||
<svelte:options runes={true} />
|
||||
|
||||
<script lang="ts">
|
||||
import {Button} from "$lib/components/ui/button";
|
||||
import {onMount} from "svelte";
|
||||
let { audio, pause, play } = $props();
|
||||
let mounted = $state(false);
|
||||
|
||||
$inspect(audio);
|
||||
|
||||
onMount(() => {
|
||||
mounted = true;
|
||||
})
|
||||
</script>
|
||||
|
||||
<div class="flex flex-row gap-2">
|
||||
{#if mounted}
|
||||
<p>Paused: {audio.paused}</p>
|
||||
<p>Volume: {audio.volume}</p>
|
||||
<p>Duration: {audio.duration}</p>
|
||||
{#if audio.paused}
|
||||
<Button onclick={play}>Play</Button>
|
||||
{:else}
|
||||
<Button onclick={pause}>Pause</Button>
|
||||
{/if}
|
||||
{:else}
|
||||
<p>Nothing going on here</p>
|
||||
{/if}
|
||||
</div>
|
Loading…
Reference in a new issue