added screensaver settings to scheduler

This commit is contained in:
Justin 2023-08-23 22:14:41 +08:00 committed by GitHub
parent 3cb5a6a05b
commit 59dc9e69b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);