diff options
author | Florian <stayawake@lavabit.com> | 2014-01-24 12:41:00 +0100 |
---|---|---|
committer | Florian <stayawake@lavabit.com> | 2014-01-24 12:41:00 +0100 |
commit | bc50f913be4924dae5f88ea40bda783a558dc35f (patch) | |
tree | fc2b156992cea81064780c4774f61f02483123c0 /js/main.js.bak | |
parent | 4d3ea3e3dd4a62ea5031e7733ed137329c2d3d58 (diff) |
cleaned js-directory
Diffstat (limited to 'js/main.js.bak')
-rw-r--r-- | js/main.js.bak | 55 |
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; - - } - -} |