fixed start btn not working

This commit is contained in:
Justin 2022-06-14 17:37:57 +08:00 committed by GitHub
parent d001f5a28c
commit 0d4961cb80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -865,6 +865,14 @@ allFeaturesTextAddBtn.map((value, index) => {
}
});
var startButton = document.getElementById("start-btn");
// start the display
startButton.addEventListener("click", () => {
fetch("/start", {
method: "PUT",
});
});
var brightnessButton = document.getElementById("brightness-btn");
// start the display
brightnessButton.addEventListener("click", () => {