From 269ffeaa642f0588e7da90552777842e1e24e737 Mon Sep 17 00:00:00 2001 From: David Panusch Date: Fri, 17 Jan 2025 09:48:17 +0100 Subject: [PATCH] Adressed Bug with background color picker. --- include/Transitiontypes/Transition.hpp | 2 +- include/clockWork.hpp | 1 + webpage/icons/color_bg.svg | 13 ++++ webpage/icons/color_fr.svg | 29 +++++++++ webpage/index.html | 30 ++++++++- webpage/script.js | 85 +++++++++++--------------- webpage/style.css | 7 +++ 7 files changed, 112 insertions(+), 55 deletions(-) create mode 100644 webpage/icons/color_bg.svg create mode 100644 webpage/icons/color_fr.svg diff --git a/include/Transitiontypes/Transition.hpp b/include/Transitiontypes/Transition.hpp index ce241b6..b9e7753 100644 --- a/include/Transitiontypes/Transition.hpp +++ b/include/Transitiontypes/Transition.hpp @@ -1137,7 +1137,7 @@ void Transition::loop(struct tm &tm) { setMinute(); if (G.secondVariant != SecondVariant::Off) { led.setbySecondArray(); - // Workaround: setbySecoundArray not in 'work' + // Workaround: setbySecondArray not in 'work' } } led.show(); diff --git a/include/clockWork.hpp b/include/clockWork.hpp index 5572068..3319a8a 100644 --- a/include/clockWork.hpp +++ b/include/clockWork.hpp @@ -1207,6 +1207,7 @@ void ClockWork::loop(struct tm &tm) { config["effectSpeed"] = G.effectSpeed; config["colortype"] = G.Colortype; config["hasHappyBirthday"] = usedUhrType->hasHappyBirthday(); + config["hasSecondsFrame"] = usedUhrType->hasSecondsFrame(); config["prog"] = G.prog; serializeJson(config, str); webSocket.sendTXT(G.client_nr, str, strlen(str)); diff --git a/webpage/icons/color_bg.svg b/webpage/icons/color_bg.svg new file mode 100644 index 0000000..a5b4c63 --- /dev/null +++ b/webpage/icons/color_bg.svg @@ -0,0 +1,13 @@ + + + + + + + diff --git a/webpage/icons/color_fr.svg b/webpage/icons/color_fr.svg new file mode 100644 index 0000000..401f320 --- /dev/null +++ b/webpage/icons/color_fr.svg @@ -0,0 +1,29 @@ + + + + + + + + diff --git a/webpage/index.html b/webpage/index.html index 08347fb..25152cd 100644 --- a/webpage/index.html +++ b/webpage/index.html @@ -68,6 +68,14 @@ + + + + + + + +