summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2020-09-13 20:50:54 +0200
committerxengineering <mail2xengineering@protonmail.com>2020-09-13 20:50:54 +0200
commitfbc00d7932a717a227389040a96443e61b597d7c (patch)
treec732c68cd16e5eac3e302a64f62441128ca39749 /templates
parentde699b487df334226fe9863ffc7c92d081b38a76 (diff)
downloadpicontrol-fbc00d7932a717a227389040a96443e61b597d7c.tar
picontrol-fbc00d7932a717a227389040a96443e61b597d7c.tar.zst
picontrol-fbc00d7932a717a227389040a96443e61b597d7c.zip
Implement API
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/index.html b/templates/index.html
index 8ccd1b2..2715585 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -32,9 +32,15 @@
<div class="content">
<header><h1>picontrol</h1></header>
<p>
- Still in early alpha version ...
+ Reboot with this button:
</p>
+ <button onclick="reboot()">reboot</button>
+ <p>
+ Power off with this button:
+ </p>
+ <button onclick="poweroff()">power off</button>
</div>
</div>
+ <script src="static/js/api_client.js"></script>
</body>
</html>