From e1b06208ca4b8355726ecd95915d136a337c578b Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 12 Dec 2023 13:39:04 +0100 Subject: clean up some icon stuffs --- web/script/player/mod.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web/script/player/mod.ts') diff --git a/web/script/player/mod.ts b/web/script/player/mod.ts index 4e4a4cc..ed6677b 100644 --- a/web/script/player/mod.ts +++ b/web/script/player/mod.ts @@ -46,7 +46,7 @@ function initialize_player(el: HTMLElement, node_id: string) { const track_select = (kind: TrackKind) => { let enabled = true const button = e("button", MEDIA_KIND_ICONS[kind][+enabled], { - class: "iicon", + class: "icon", onclick: () => { enabled = !enabled button.textContent = MEDIA_KIND_ICONS[kind][+enabled] @@ -67,7 +67,7 @@ function initialize_player(el: HTMLElement, node_id: string) { const controls = e("div", { class: "jsp-controls" }, player.playing.map(playing => - e("button", { class: "iicon" }, playing ? "pause" : "play_arrow", { onclick: toggle_playing }) + e("button", { class: "icon" }, playing ? "pause" : "play_arrow", { onclick: toggle_playing }) ), e("p", { class: "jsp-status" }, player.position.map(v => e("span", show.duration(v))), e("br"), @@ -96,7 +96,7 @@ function initialize_player(el: HTMLElement, node_id: string) { track_select("subtitles") ), e("button", "fullscreen", { - class: "iicon", + class: "icon", onclick() { if (document.fullscreenElement) document.exitFullscreen() else document.documentElement.requestFullscreen() -- cgit v1.2.3-70-g09d2