summaryrefslogtreecommitdiff
path: root/js/main.js.bak
diff options
context:
space:
mode:
Diffstat (limited to 'js/main.js.bak')
-rw-r--r--js/main.js.bak55
1 files changed, 0 insertions, 55 deletions
diff --git a/js/main.js.bak b/js/main.js.bak
deleted file mode 100644
index 7a12dce..0000000
--- a/js/main.js.bak
+++ /dev/null
@@ -1,55 +0,0 @@
-var cam;
-
-function keyDown(event) {
- if (event.keyCode == 49) {
- var display = document.getElementById('screen');
- cam = 0;
- display.innerHTML = '<img src="http://172.22.80.56:8080/cam/0/stream.mjpeg" />'
- }
-
- if (event.keyCode == 50) {
- var display = document.getElementById('screen');
- cam = 1;
- display.innerHTML = '<img src="http://172.22.80.56:8080/cam/1/stream.mjpeg" />'
- }
-
- if (event.keyCode == 51) {
- var display = document.getElementById('screen');
- cam = 2;
- display.innerHTML = '<img src="http://172.22.80.56:8080/cam/2/stream.mjpeg" />'
- }
-
- if (event.keyCode == 52) {
- var display = document.getElementById('screen');
- display.innerHTML = '<img src="testbild-4.png" />'
- }
-
- if (event.keyCode == 37) {
- var request = new XMLHttpRequest();
- request.open("get", "http://172.22.80.56:8080/cam/" + cam + "/control/left", false);
- request.send();
- return false;
- }
-
- if (event.keyCode == 38) {
- var request = new XMLHttpRequest();
- request.open("get", "http://172.22.80.56:8080/cam/" + cam +"/control/up", false);
- request.send();
- return false;
-
- }
- if (event.keyCode == 39) {
- var request = new XMLHttpRequest();
- request.open("get", "http://172.22.80.56:8080/cam/" + cam +"/control/right", false);
- request.send();
- return false;
- }
- if (event.keyCode == 40) {
- var request = new XMLHttpRequest();
- request.open("get", "http://172.22.80.56:8080/cam/" + cam +"/control/down", false);
- request.send();
- return false;
-
- }
-
-}