summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--public/control.html27
-rw-r--r--public/control.js8
2 files changed, 35 insertions, 0 deletions
diff --git a/public/control.html b/public/control.html
new file mode 100644
index 0000000..d35e4d5
--- /dev/null
+++ b/public/control.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8"></meta>
+ <script src="control.js"></script>
+ <style type="text/css">
+ .cam { width: 95%; }
+ </style>
+ </head>
+ <body>
+ <table>
+ <tr>
+ <td><img class="cam" src="/cam/0/stream.mjpeg"></img></td>
+ <td><img class="cam" src="/cam/1/stream.mjpeg"></img></td>
+ <td><img class="cam" src="/cam/2/stream.mjpeg"></img></td>
+ <td><img class="cam" src="/cam/3/stream.mjpeg"></img></td>
+ </tr>
+ <tr>
+ <td><img class="cam" src="/cam/4/stream.mjpeg"></img></td>
+ <td><img class="cam" src="/cam/5/stream.mjpeg"></img></td>
+ <td><img class="cam" src="/cam/6/stream.mjpeg"></img></td>
+ <td><img class="cam" src="/cam/7/stream.mjpeg"></img></td>
+ </tr>
+ </table>
+ <input type="submit" value="Ameisenkrieg" id="blackout"></input>
+ </body>
+</html>
diff --git a/public/control.js b/public/control.js
new file mode 100644
index 0000000..38e4954
--- /dev/null
+++ b/public/control.js
@@ -0,0 +1,8 @@
+window.setTimeout(function() {
+ document.getElementById('blackout').onclick = function() {
+ var request = new XMLHttpRequest();
+ request.open("get", "/blackout", false);
+ request.send();
+ return false();
+ };
+}, 1000);