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) {