diff options
| author | metamuffin <metamuffin@disroot.org> | 2023-10-01 23:08:46 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2023-10-01 23:08:46 +0200 |
| commit | 8d9d158e2c249f16b8bfed3140a76ce499e9f388 (patch) | |
| tree | 60144885f50b33e15cc427ddf0a943ccffc8317f | |
| parent | 4b6dbed857754a13b0b8776ab9ec583e093d548b (diff) | |
| download | jellything-8d9d158e2c249f16b8bfed3140a76ce499e9f388.tar jellything-8d9d158e2c249f16b8bfed3140a76ce499e9f388.tar.bz2 jellything-8d9d158e2c249f16b8bfed3140a76ce499e9f388.tar.zst | |
wire up play button
| -rw-r--r-- | web/script/player/mod.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/script/player/mod.ts b/web/script/player/mod.ts index 1a977e2..09f9dcc 100644 --- a/web/script/player/mod.ts +++ b/web/script/player/mod.ts @@ -58,7 +58,7 @@ function initialize_player(el: HTMLElement, node_id: string) { let pri_current: HTMLElement; let pri: HTMLElement; const controls = e("div", { class: "jsp-controls" }, - player.playing.map(playing => e("button", playing ? "||" : "|>", { onclick() { } })), + player.playing.map(playing => e("button", playing ? "||" : "|>", { onclick: toggle_playing })), e("p", { class: "jsp-status" }, player.position.map(v => e("span", display_time(v))), e("br"), player.position.map(v => e("span", display_time(v - player.duration.value))) |