diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/index.vnc | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/classes/index.vnc b/classes/index.vnc index 1a05d01..34ad25d 100644 --- a/classes/index.vnc +++ b/classes/index.vnc @@ -5,9 +5,11 @@ signs ($$) to get a dollar sign in the generated html. --> <HTML> +<head> <TITLE> $USER's $DESKTOP desktop ($DISPLAY) </TITLE> +</head> <APPLET CODE=VncViewer.class ARCHIVE=VncViewer.jar WIDTH=$APPLETWIDTH HEIGHT=$APPLETHEIGHT> <param name=PORT value=$PORT> @@ -15,8 +17,19 @@ $USER's $DESKTOP desktop ($DISPLAY) </APPLET> <br/> <br/> + If the above Java applet does not work, you can also try the new JavaScript-only <a href="http://kanaka.github.com/noVNC/">noVNC</a> viewer. You will need a HTML5-capable browser though. -<a href="novnc/vnc_auto.html?host=$HOST&port=$PORT&true_color=1">Click here to connect using noVNC.</a> +<script language="JavaScript"> + <!-- + function start_novnc(){ + open("novnc/vnc_auto.html?host=" + document.location.hostname + "&port=$PORT&true_color=1"); + } + --> +</script> +<form name="novnc_button_form"> + <input type="button" name="novnc_button" value="Click here to connect using noVNC" onClick='start_novnc()'> +</form> + <br/> <br/> <br/> |