From f009bb45d3a590d9f63753766f7249af92476f08 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Tue, 18 Mar 2014 02:29:47 +0100 Subject: Add control frontend --- public/control.html | 27 +++++++++++++++++++++++++++ public/control.js | 8 ++++++++ 2 files changed, 35 insertions(+) create mode 100644 public/control.html create mode 100644 public/control.js 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 @@ + + + + + + + + + + + + + + + + + + + + + +
+ + + 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); -- cgit v1.2.1