From 4f3adbf261c5e48e625a667378b131d9a48d60ba Mon Sep 17 00:00:00 2001 From: raven Date: Thu, 22 Dec 2022 02:37:07 -0500 Subject: [PATCH] Adding alerts for when auto scroll triggerrs --- htdocs/index.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/htdocs/index.html b/htdocs/index.html index 5021642..95bd2ca 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -45,7 +45,13 @@ return response.json(); }) .then(function (data) { - if (data == 1) return console.log("Command: DOWN - SENT!") + if (data == 1) { + showSuccessAlert("Next Short Requested Successfully!") + return console.log("Command: Next Short - SENT!") + } else { + showSuccessAlert("Next Short Request FAILED!") + return console.log("Command: Next Short FAILED!") + } }) }, 60000); } @@ -62,7 +68,7 @@ console.log("60 seconds are up, going to next short"); document.getElementById("view2").innerHTML = ""; - }, 10000); + }, 15000); } function showFailAlert(message) {