summaryrefslogtreecommitdiff
path: root/data/js
diff options
context:
space:
mode:
Diffstat (limited to 'data/js')
-rw-r--r--data/js/birdscan.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/data/js/birdscan.js b/data/js/birdscan.js
index d3a46c3..87ec3e7 100644
--- a/data/js/birdscan.js
+++ b/data/js/birdscan.js
@@ -8,6 +8,18 @@ function singlePicture() {
xhttp.send();
}
+function poweroff() {
+ const xhttp = new XMLHttpRequest();
+ xhttp.open("POST", "./api/poweroff", true);
+ xhttp.send();
+}
+
+function reboot() {
+ const xhttp = new XMLHttpRequest();
+ xhttp.open("POST", "./api/reboot", true);
+ xhttp.send();
+}
+
function updateState() {
if (!updateStatePending) {
updateStatePending = true;