From bc50f913be4924dae5f88ea40bda783a558dc35f Mon Sep 17 00:00:00 2001 From: Florian Date: Fri, 24 Jan 2014 12:41:00 +0100 Subject: cleaned js-directory --- js/main.js.bak | 55 ------------------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 js/main.js.bak (limited to 'js/main.js.bak') 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 = '' - } - - if (event.keyCode == 50) { - var display = document.getElementById('screen'); - cam = 1; - display.innerHTML = '' - } - - if (event.keyCode == 51) { - var display = document.getElementById('screen'); - cam = 2; - display.innerHTML = '' - } - - if (event.keyCode == 52) { - var display = document.getElementById('screen'); - display.innerHTML = '' - } - - 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; - - } - -} -- cgit v1.2.1