From 3fb4f3df696ace4c83d6ef2bdab52d36bfb780d8 Mon Sep 17 00:00:00 2001 From: BlueFox Date: Tue, 26 Mar 2024 17:00:14 +0100 Subject: [PATCH] Refactored HTML, written some requesting functions to fill table data on the site --- simpledemo.html | 203 +++++++++++++++++++++++++++++++++--------------- 1 file changed, 140 insertions(+), 63 deletions(-) diff --git a/simpledemo.html b/simpledemo.html index 9f0bc37..e0f498e 100644 --- a/simpledemo.html +++ b/simpledemo.html @@ -9,12 +9,12 @@ -
+

Welcome to

-

[FRIENDLY NAME HERE]

-

-

[VERSION STRING HERE]

+

+

+


@@ -35,79 +35,73 @@ Playing - - [html += audioPlaying ? "yes" : "no"] - + Volume - [" + String(currentVolume) + "/" + String(maxVolume) + "] + Muted - - [html += muted ? "yes" : "no"] - + Equalizer Low - [" + String(eqLow) + "dB"] - + Equalizer Mid - [" + String(eqMid) + "dB"] - + Equalizer High - [" + String(eqHigh) + "dB"] + Balance (range -16 | +16) - " + String(balanceLevel) + " + Path to playlist - " + currentPlaylist + " + Index in playlist (starting from 0) - " + String(currentPlaylistPosition) + " + Resource path - " + pbInfo.resourcePath + " + Resource type - " + pbInfo.type + " + Resource title - " + pbInfo.title + " + Resource album - " + pbInfo.album + " + Resource artist - " + pbInfo.artist + " + Resource track number - " + pbInfo.track + " + Resource year - " + pbInfo.year + " + Resource genre - " + pbInfo.genre + " + Resource language (for TTS) - " + pbInfo.tts_language + " + @@ -127,29 +121,23 @@ Version - " + version + " + Friendly name - " + configuration.getString(PREFERENCES_KEY_FRIENDLY_NAME, " - ") + " - + Save & Restore state - - html += configuration.getBool(PREFERENCES_KEY_RESTORE_OLD_STATE, false) ? "yes" : "no - + Save & Restore playing state (default no) - - html += configuration.getBool(PREFERENCES_KEY_RESTORE_PLAYING, false) ? "yes" : "no - + WiFi SSID - " + configuration.getString(PREFERENCES_KEY_WIFI_SSID, "") + " + @@ -181,20 +169,15 @@ Playing - - html += audioPlaying ? "yes" : "no - + Volume - " + String(currentVolume) + "/" + String(maxVolume) + "% - + Muted - - html += muted ? "yes" : "no - + @@ -324,7 +307,7 @@ Balance (range -16 | +16) - " + String(balanceLevel) + " + @@ -337,7 +320,7 @@
- +

- +

- +

- +