Adding alerts for when auto scroll triggerrs

This commit is contained in:
raven 2022-12-22 02:37:07 -05:00
parent 627b41b6bb
commit 4f3adbf261
1 changed files with 8 additions and 2 deletions

View File

@ -45,7 +45,13 @@
return response.json(); return response.json();
}) })
.then(function (data) { .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); }, 60000);
} }
@ -62,7 +68,7 @@
console.log("60 seconds are up, going to next short"); console.log("60 seconds are up, going to next short");
document.getElementById("view2").innerHTML = ""; document.getElementById("view2").innerHTML = "";
}, 10000); }, 15000);
} }
function showFailAlert(message) { function showFailAlert(message) {