Cleanup unused files

This commit is contained in:
Neshura 2024-04-25 18:19:11 +02:00
parent 6bff963d7a
commit 352a1b857e
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
2 changed files with 0 additions and 30 deletions

View file

@ -1 +0,0 @@
export let audioStore: HTMLAudioElement = $state(new Audio());

View file

@ -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>