Adding alerts for when auto scroll triggerrs
This commit is contained in:
parent
627b41b6bb
commit
4f3adbf261
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user