server-test
This commit is contained in:
@@ -80,17 +80,6 @@
|
||||
function toggleMachine() {
|
||||
document.getElementById("machine-status").innerText = "PENDING";
|
||||
document.getElementById("machine-status-butt").classList.add("blink-orange");
|
||||
// fetch('/unsecure/esp/toggle-machine', { method: 'POST' })
|
||||
// .then(res => res.json())
|
||||
// .then(data => {
|
||||
// //console.log(data);
|
||||
// const inner = JSON.parse(data.status);
|
||||
// if (inner.command === 'machineToggle') {
|
||||
|
||||
// } else {
|
||||
// document.getElementById("machine-status").innerText = "SOME_ERR";
|
||||
// }
|
||||
// });
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user