diff --git a/static/script.js b/static/script.js index d215af2..9e29051 100644 --- a/static/script.js +++ b/static/script.js @@ -96,6 +96,9 @@ function toggleMachine() { }); } function makeCoffee(){ + if (gebId("machine-status-butt").classList.contains("deniePress")){ + return; + } console.log("makeCoffee") fetch('/unsecure/esp/make_coffee', {method: 'POST'}) .then(res => res.json()) diff --git a/templates/index.html b/templates/index.html index 9c56e41..bbf63d1 100644 --- a/templates/index.html +++ b/templates/index.html @@ -44,7 +44,7 @@