From b01cf0ce89a3f78a844625be9e7e794283ab23c2 Mon Sep 17 00:00:00 2001 From: Christian Richter Date: Sun, 17 Jul 2022 11:16:21 +0200 Subject: [PATCH] add reconnect & format index Signed-off-by: Christian Richter --- assets/index.html | 238 ++++++++++++++++++++++++---------------------- 1 file changed, 122 insertions(+), 116 deletions(-) diff --git a/assets/index.html b/assets/index.html index ffe62f5..d0826d4 100644 --- a/assets/index.html +++ b/assets/index.html @@ -1,122 +1,128 @@ - - - Weirdradio - - -
-
-
-

Weirdradio

-
-
- {playlist} -
+ + + Weirdradio + + + +
+
+
+

Weirdradio

-
-
-
-
+
{playlist}
+
+
+
+
-
- - - \ No newline at end of file + }; + } + + function updatePlaylist() { + pl = document.getElementById("playlist"); + output = ""; + playlist.forEach((e) => { + output = + output + `
${e.title}
${e.link}
`; + }); + pl.innerHTML = output; + } + +