refactor bindings + include start_at option

This commit is contained in:
Ollie Taylor
2023-02-24 14:43:33 +00:00
parent d7d81ce732
commit 62497fe06b
5 changed files with 150 additions and 108 deletions
+3 -2
View File
@@ -16,8 +16,9 @@
<a href="/another-page">Another Page</a>
<h5>Load Audio</h5>
<button type="button" on:click={() => audio.load(sources['syntax'], { autoplay: true })}
>Syntax</button
<button
type="button"
on:click={() => audio.load(sources['syntax'], { autoplay: true, start_at: 45 })}>Syntax</button
>
<button type="button" on:click={() => audio.load(sources['knomii'], { autoplay: false })}
>Knomii</button