From 59dc9e69b4091df376153e1577714f3ac958982a Mon Sep 17 00:00:00 2001 From: Justin Date: Wed, 23 Aug 2023 22:14:41 +0800 Subject: [PATCH] added screensaver settings to scheduler --- static/app.js | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/static/app.js b/static/app.js index a256c26..addc4bd 100755 --- a/static/app.js +++ b/static/app.js @@ -2946,6 +2946,27 @@ function saveSchedulerSettings() { let brightness4_enabled = document.getElementById("brightness4-enabled").checked; let brightness4_bright = document.getElementById("brightness4-bright-select").value; + let screensaver1_hour = document.getElementById("screensaver1-hour-select").value; + let screensaver1_minute = document.getElementById("screensaver1-minute-select").value; + let screensaver1_endhour = document.getElementById("screensaver1-endhour-select").value; + let screensaver1_endminute = document.getElementById("screensaver1-endminute-select").value; + let screensaver1_enabled = document.getElementById("screensaver1-enabled").checked; + let screensaver1_type = document.getElementById("screensaver1-type").value; + + let screensaver2_hour = document.getElementById("screensaver2-hour-select").value; + let screensaver2_minute = document.getElementById("screensaver2-minute-select").value; + let screensaver2_endhour = document.getElementById("screensaver2-endhour-select").value; + let screensaver2_endminute = document.getElementById("screensaver2-endminute-select").value; + let screensaver2_enabled = document.getElementById("screensaver2-enabled").checked; + let screensaver2_type = document.getElementById("screensaver2-type").value; + + let screensaver3_hour = document.getElementById("screensaver3-hour-select").value; + let screensaver3_minute = document.getElementById("screensaver3-minute-select").value; + let screensaver3_endhour = document.getElementById("screensaver3-endhour-select").value; + let screensaver3_endminute = document.getElementById("screensaver3-endminute-select").value; + let screensaver3_enabled = document.getElementById("screensaver3-enabled").checked; + let screensaver3_type = document.getElementById("screensaver3-type").value; + let timezone = document.getElementById("timezone-select").value; let settings = { @@ -2972,6 +2993,24 @@ function saveSchedulerSettings() { brightness4_minute: brightness4_minute, brightness4_bright: brightness4_bright, brightness4_enabled: brightness4_enabled, + screensaver1_hour: screensaver1_hour, + screensaver1_minute: screensaver1_minute, + screensaver1_endhour: screensaver1_endhour, + screensaver1_endminute: screensaver1_endminute, + screensaver1_enabled: screensaver1_enabled, + screensaver1_type: screensaver1_type, + screensaver2_hour: screensaver2_hour, + screensaver2_minute: screensaver2_minute, + screensaver2_endhour: screensaver2_endhour, + screensaver2_endminute: screensaver2_endminute, + screensaver2_enabled: screensaver2_enabled, + screensaver2_type: screensaver2_type, + screensaver3_hour: screensaver3_hour, + screensaver3_minute: screensaver3_minute, + screensaver3_endhour: screensaver3_endhour, + screensaver3_endminute: screensaver3_endminute, + screensaver3_enabled: screensaver3_enabled, + screensaver3_type: screensaver3_type, }; console.log(settings);