summaryrefslogtreecommitdiffstats
path: root/webclients/index.vnc
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2011-11-17 17:03:45 +0100
committerChristian Beier <dontmind@freeshell.org>2011-11-17 17:03:45 +0100
commit49e59435e32401dcaa7885bab1d2e49b5b2efaf9 (patch)
treedf0b4dbc4cc52942df7e629483efb8c2c327f00b /webclients/index.vnc
parentefdb2f06d4803c76871e4b5b5958584c0be9cc3a (diff)
parentbdd7e25d2dd47c3a5d8c95366bc111dc0a176128 (diff)
downloadlibtdevnc-49e59435e32401dcaa7885bab1d2e49b5b2efaf9.tar.gz
libtdevnc-49e59435e32401dcaa7885bab1d2e49b5b2efaf9.zip
Merge branch 'included-novnc'
Diffstat (limited to 'webclients/index.vnc')
-rw-r--r--webclients/index.vnc37
1 files changed, 37 insertions, 0 deletions
diff --git a/webclients/index.vnc b/webclients/index.vnc
new file mode 100644
index 0000000..8254a70
--- /dev/null
+++ b/webclients/index.vnc
@@ -0,0 +1,37 @@
+<!-- index.vnc - default html page for Java VNC viewer applet. On any file
+ ending in .vnc, the HTTP server embedded in Xvnc will substitute the
+ following variables when preceded by a dollar: USER, DESKTOP, DISPLAY,
+ APPLETWIDTH, APPLETHEIGHT, WIDTH, HEIGHT, PORT, PARAMS. Use two dollar
+ 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=java-applet/VncViewer.jar
+ WIDTH=$APPLETWIDTH HEIGHT=$APPLETHEIGHT>
+<param name=PORT value=$PORT>
+<param name="Open New Window" value=yes>
+</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.
+<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/>
+<A href="http://libvncserver.sf.net/">LibVNCServer/LibVNCClient Homepage</A>
+</HTML>