aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-10-01 23:08:46 +0200
committermetamuffin <metamuffin@disroot.org>2023-10-01 23:08:46 +0200
commit8d9d158e2c249f16b8bfed3140a76ce499e9f388 (patch)
tree60144885f50b33e15cc427ddf0a943ccffc8317f /web
parent4b6dbed857754a13b0b8776ab9ec583e093d548b (diff)
downloadjellything-8d9d158e2c249f16b8bfed3140a76ce499e9f388.tar
jellything-8d9d158e2c249f16b8bfed3140a76ce499e9f388.tar.bz2
jellything-8d9d158e2c249f16b8bfed3140a76ce499e9f388.tar.zst
wire up play button
Diffstat (limited to 'web')
-rw-r--r--web/script/player/mod.ts2
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)))