From 0b9f23bbb6c3e2b5178e9f5c12612e968ebec1e1 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Wed, 2 Mar 2011 16:01:37 -0800 Subject: [PATCH] Keyboard/mouse handling --- guacamole/src/main/webapp/index.html | 99 ++++++++++++++++++++++++---- 1 file changed, 88 insertions(+), 11 deletions(-) diff --git a/guacamole/src/main/webapp/index.html b/guacamole/src/main/webapp/index.html index 8ae28e34a..4bc8d5948 100644 --- a/guacamole/src/main/webapp/index.html +++ b/guacamole/src/main/webapp/index.html @@ -115,6 +115,7 @@ + @@ -178,7 +179,10 @@ window.onresize(); // Instantiate client - var guac = new GuacamoleClient(display, "tunnel"); + var guac = new GuacamoleClient( + display, + new GuacamoleHTTPTunnel("tunnel") + ); var state = document.getElementById("state"); guac.setOnStateChangeHandler(function(clientState) { @@ -219,6 +223,8 @@ guac.setErrorHandler(function(error) { + guac.disconnect(); + menu.className = "error"; display.className += " guac-error"; @@ -226,8 +232,79 @@ errorDialogText.textContent = error; errorDialog.style.visibility = "visible"; + // Show error by desaturating display + var layers = guac.getLayers(); + for (var i=0; i