1 <!DOCTYPE html PUBLIC
"-//WAPFORUM//DTD XHTML Mobile 1.1//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile11.dtd">
6 noVNC example: simple example using default UI
7 Copyright (C) 2012 Joel Martin
8 noVNC is licensed under the MPL 2.0 (see LICENSE.txt)
9 This file is licensed under the 2-Clause BSD license (see LICENSE.txt).
13 <meta charset=
"utf-8">
15 <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
16 Remove this if you use the .htaccess -->
17 <meta http-equiv=
"X-UA-Compatible" content=
"IE=edge,chrome=1">
19 <!-- Apple iOS Safari settings -->
20 <meta name=
"viewport" content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
21 <meta name=
"apple-mobile-web-app-capable" content=
"yes" />
22 <meta names=
"apple-mobile-web-app-status-bar-style" content=
"black-translucent" />
23 <!-- App Start Icon -->
24 <link rel=
"apple-touch-startup-image" href=
"images/screen_320x460.png" />
25 <!-- For iOS devices set the icon to use if user bookmarks app on their homescreen -->
26 <link rel=
"apple-touch-icon" href=
"images/screen_57x57.png">
28 <link rel="apple-touch-icon-precomposed" href="images/screen_57x57.png" />
33 <link rel=
"stylesheet" href=
"include/base.css" />
34 <link rel=
"alternate stylesheet" href=
"include/black.css" TITLE=
"Black" />
35 <link rel=
"alternate stylesheet" href=
"include/blue.css" TITLE=
"Blue" />
38 <script type='text/javascript'
39 src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>
45 <div id=
"noVNC-control-bar">
46 <div id=
"noVNC-menu-bar" style=
"display:none;">
48 <!--noVNC Mobile Device only Buttons-->
49 <div class=
"noVNC-buttons-left">
50 <input type=
"image" src=
"images/drag.png"
51 id=
"noVNC_view_drag_button" class=
"noVNC_status_button"
52 title=
"Move/Drag Viewport">
53 <div id=
"noVNC_mobile_buttons">
54 <input type=
"image" src=
"images/mouse_none.png"
55 id=
"noVNC_mouse_button0" class=
"noVNC_status_button">
56 <input type=
"image" src=
"images/mouse_left.png"
57 id=
"noVNC_mouse_button1" class=
"noVNC_status_button">
58 <input type=
"image" src=
"images/mouse_middle.png"
59 id=
"noVNC_mouse_button2" class=
"noVNC_status_button">
60 <input type=
"image" src=
"images/mouse_right.png"
61 id=
"noVNC_mouse_button4" class=
"noVNC_status_button">
62 <input type=
"image" src=
"images/keyboard.png"
63 id=
"showKeyboard" class=
"noVNC_status_button"
64 value=
"Keyboard" title=
"Show Keyboard"/>
66 autocapitalize=
"off" autocorrect=
"off"
67 id=
"keyboardinput" class=
"noVNC_status_button"/>
72 <div class=
"noVNC-buttons-right">
73 <input type=
"image" src=
"images/ctrlaltdel.png"
74 id=
"sendCtrlAltDelButton" class=
"noVNC_status_button"
75 title=
"Send Ctrl-Alt-Del" />
76 <input type=
"image" src=
"images/clipboard.png"
77 id=
"clipboardButton" class=
"noVNC_status_button"
79 <input type=
"image" src=
"images/settings.png"
80 id=
"settingsButton" class=
"noVNC_status_button"
82 <input type=
"image" src=
"images/connect.png"
83 id=
"connectButton" class=
"noVNC_status_button"
85 <input type=
"image" src=
"images/disconnect.png"
86 id=
"disconnectButton" class=
"noVNC_status_button"
90 <!-- Description Panel -->
91 <!-- Shown by default when hosted at for kanaka.github.com -->
92 <div id=
"noVNC_description" style=
"display:none;" class=
"">
93 noVNC is a browser based VNC client implemented using HTML5 Canvas
94 and WebSockets. You will either need a VNC server with WebSockets
95 support (such as
<a href=
"http://libvncserver.sourceforge.net/">libvncserver
</a>)
96 or you will need to use
97 <a href=
"https://github.com/kanaka/websockify">websockify
</a>
98 to bridge between your browser and VNC server. See the noVNC
99 <a href=
"https://github.com/kanaka/noVNC">README
</a>
100 and
<a href=
"http://kanaka.github.com/noVNC">website
</a>
101 for more information.
103 <input id=
"descriptionButton" type=
"button" value=
"Close">
106 <!-- Clipboard Panel -->
107 <div id=
"noVNC_clipboard" class=
"triangle-right top">
108 <textarea id=
"noVNC_clipboard_text" rows=
5>
111 <input id=
"noVNC_clipboard_clear_button" type=
"button"
115 <!-- Settings Panel -->
116 <div id=
"noVNC_settings" class=
"triangle-right top">
117 <span id=
"noVNC_settings_menu">
119 <li><input id=
"noVNC_encrypt" type=
"checkbox"> Encrypt
</li>
120 <li><input id=
"noVNC_true_color" type=
"checkbox" checked
> True Color
</li>
121 <li><input id=
"noVNC_cursor" type=
"checkbox"> Local Cursor
</li>
122 <li><input id=
"noVNC_clip" type=
"checkbox"> Clip to Window
</li>
123 <li><input id=
"noVNC_shared" type=
"checkbox"> Shared Mode
</li>
124 <li><input id=
"noVNC_view_only" type=
"checkbox"> View Only
</li>
125 <li><input id=
"noVNC_connectTimeout" type=
"input"> Connect Timeout (s)
</li>
126 <li><input id=
"noVNC_path" type=
"input" value=
"websockify"> Path
</li>
127 <li><input id=
"noVNC_repeaterID" type=
"input" value=
""> Repeater ID
</li>
129 <!-- Stylesheet selection dropdown -->
130 <li><label><strong>Style:
</strong>
131 <select id=
"noVNC_stylesheet" name=
"vncStyle">
132 <option value=
"default">default
</option>
136 <!-- Logging selection dropdown -->
137 <li><label><strong>Logging:
</strong>
138 <select id=
"noVNC_logging" name=
"vncLogging">
142 <li><input type=
"button" id=
"noVNC_apply" value=
"Apply"></li>
147 <!-- Connection Panel -->
148 <div id=
"noVNC_controls" class=
"triangle-right top">
150 <li><label><strong>Host:
</strong><input id=
"noVNC_host" /></label></li>
151 <li><label><strong>Port:
</strong><input id=
"noVNC_port" /></label></li>
152 <li><label><strong>Password:
</strong><input id=
"noVNC_password" type=
"password" /></label></li>
153 <li><input id=
"noVNC_connect_button" type=
"button" value=
"Connect"></li>
157 </div> <!-- End of noVNC-control-bar -->
160 <div id=
"noVNC_screen">
161 <div id=
"noVNC_screen_pad"></div>
163 <div id=
"noVNC_status_bar" class=
"noVNC_status_bar">
164 <div id=
"noVNC_status">Loading
</div>
167 <h1 id=
"noVNC_logo"><span>no
</span><br />VNC
</h1>
169 <!-- HTML5 Canvas -->
170 <div id=
"noVNC_container">
171 <canvas id=
"noVNC_canvas" width=
"640px" height=
"20px">
172 Canvas not supported.
177 <script src=
"include/util.js"></script>
178 <script src=
"include/ui.js"></script>