This commit is contained in:
Neythen
2021-11-18 17:50:50 +00:00
parent 2cc6afc5cf
commit b4c7c505f0
11 changed files with 89 additions and 31 deletions

View File

@@ -826,6 +826,19 @@ stopButton.addEventListener("click", () => {
});
});
var stopButton = document.getElementById("screensaver-btn");
stopButton.addEventListener("click", () => {
let anim = localStorage.getItem("inputAnimation");
fetch("/screensaver", {
method: "POST",
body: anim,
});
});
var dispFormatButton = document.getElementById("dispformat-btn");
var displayFormats = document.getElementById("inputDisplayFormat");
@@ -1269,12 +1282,7 @@ let inputAnimationBtn = document.getElementById("input-animation-btn");
inputAnimationBtn.addEventListener("click", () => {
localStorage.setItem("inputAnimation", inputAnimation.value);
fetch("/screensaver", {
method: "POST",
body: inputAnimation.value,
});
});
// scroll speed row two