]> git.proxmox.com Git - mirror_novnc.git/blob - vnc.html
Further fixes for fallback error handler
[mirror_novnc.git] / vnc.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4
5 <!--
6 noVNC example: simple example using default UI
7 Copyright (C) 2012 Joel Martin
8 Copyright (C) 2016 Samuel Mannehed for Cendio AB
9 Copyright (C) 2016 Pierre Ossman for Cendio AB
10 noVNC is licensed under the MPL 2.0 (see LICENSE.txt)
11 This file is licensed under the 2-Clause BSD license (see LICENSE.txt).
12
13 Connect parameters are provided in query string:
14 http://example.com/?host=HOST&port=PORT&encrypt=1&true_color=1
15 or the fragment:
16 http://example.com/#host=HOST&port=PORT&encrypt=1&true_color=1
17 -->
18 <title>noVNC</title>
19
20 <meta charset="utf-8" />
21
22 <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
23 Remove this if you use the .htaccess -->
24 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
25
26 <!-- Icons (see Makefile for what the sizes are for) -->
27 <link rel="icon" sizes="16x16" type="image/png" href="app/images/icons/novnc-16x16.png">
28 <link rel="icon" sizes="24x24" type="image/png" href="app/images/icons/novnc-24x24.png">
29 <link rel="icon" sizes="32x32" type="image/png" href="app/images/icons/novnc-32x32.png">
30 <link rel="icon" sizes="48x48" type="image/png" href="app/images/icons/novnc-48x48.png">
31 <link rel="icon" sizes="60x60" type="image/png" href="app/images/icons/novnc-60x60.png">
32 <link rel="icon" sizes="64x64" type="image/png" href="app/images/icons/novnc-64x64.png">
33 <link rel="icon" sizes="72x72" type="image/png" href="app/images/icons/novnc-72x72.png">
34 <link rel="icon" sizes="76x76" type="image/png" href="app/images/icons/novnc-76x76.png">
35 <link rel="icon" sizes="96x96" type="image/png" href="app/images/icons/novnc-96x96.png">
36 <link rel="icon" sizes="120x120" type="image/png" href="app/images/icons/novnc-120x120.png">
37 <link rel="icon" sizes="144x144" type="image/png" href="app/images/icons/novnc-144x144.png">
38 <link rel="icon" sizes="152x152" type="image/png" href="app/images/icons/novnc-152x152.png">
39 <link rel="icon" sizes="192x192" type="image/png" href="app/images/icons/novnc-192x192.png">
40 <link rel="icon" sizes="512x512" type="image/png" href="app/images/icons/novnc-512x512.png">
41 <link rel="icon" sizes="any" type="image/svg+xml" href="app/images/icons/novnc-icon.svg">
42 <!-- Repeated last so that legacy handling will pick this -->
43 <link rel="icon" sizes="16x16" type="image/png" href="app/images/icons/novnc-16x16.png">
44
45 <!-- Apple iOS Safari settings -->
46 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
47 <meta name="apple-mobile-web-app-capable" content="yes" />
48 <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
49 <!-- Home Screen Icons (favourites and bookmarks use the normal icons) -->
50 <link rel="apple-touch-icon" sizes="60x60" type="image/png" href="app/images/icons/novnc-60x60.png">
51 <link rel="apple-touch-icon" sizes="76x76" type="image/png" href="app/images/icons/novnc-76x76.png">
52 <link rel="apple-touch-icon" sizes="120x120" type="image/png" href="app/images/icons/novnc-120x120.png">
53 <link rel="apple-touch-icon" sizes="152x152" type="image/png" href="app/images/icons/novnc-152x152.png">
54
55 <!-- Stylesheets -->
56 <link rel="stylesheet" href="app/styles/base.css" />
57 <link rel="alternate stylesheet" href="app/styles/black.css" TITLE="Black" />
58 <link rel="alternate stylesheet" href="app/styles/blue.css" TITLE="Blue" />
59
60 <!--
61 <script type='text/javascript'
62 src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>
63 -->
64
65 </head>
66
67 <body>
68
69 <div id="noVNC_fallback_error">
70 <div>noVNC encountered an error:</div>
71 <br>
72 <div id="noVNC_fallback_errormsg"></div>
73 </div>
74
75 <!-- noVNC Control Bar -->
76 <div id="noVNC_control_bar_anchor" class="noVNC_vcenter">
77
78 <div id="noVNC_control_bar">
79 <div id="noVNC_control_bar_handle" title="Hide/Show the control bar"><div></div></div>
80
81 <div class="noVNC_scroll">
82
83 <h1 class="noVNC_logo" translate="no"><span>no</span><br />VNC</h1>
84
85 <!-- Drag/Pan the viewport -->
86 <input type="image" alt="viewport drag" src="app/images/drag.svg"
87 id="noVNC_view_drag_button" class="noVNC_button noVNC_hidden"
88 title="Move/Drag Viewport" />
89
90 <!--noVNC Touch Device only buttons-->
91 <div id="noVNC_mobile_buttons">
92 <input type="image" alt="No mousebutton" src="app/images/mouse_none.svg"
93 id="noVNC_mouse_button0" class="noVNC_button"
94 title="Active Mouse Button"/>
95 <input type="image" alt="Left mousebutton" src="app/images/mouse_left.svg"
96 id="noVNC_mouse_button1" class="noVNC_button"
97 title="Active Mouse Button"/>
98 <input type="image" alt="Middle mousebutton" src="app/images/mouse_middle.svg"
99 id="noVNC_mouse_button2" class="noVNC_button"
100 title="Active Mouse Button"/>
101 <input type="image" alt="Right mousebutton" src="app/images/mouse_right.svg"
102 id="noVNC_mouse_button4" class="noVNC_button"
103 title="Active Mouse Button"/>
104 <input type="image" alt="Keyboard" src="app/images/keyboard.svg"
105 id="noVNC_keyboard_button" class="noVNC_button"
106 value="Keyboard" title="Show Keyboard" />
107 </div>
108
109 <!-- Extra manual keys -->
110 <div id="noVNC_extra_keys">
111 <input type="image" alt="Extra keys" src="app/images/toggleextrakeys.svg"
112 id="noVNC_toggle_extra_keys_button" class="noVNC_button"
113 title="Show Extra Keys"/>
114 <div class="noVNC_vcenter">
115 <div id="noVNC_modifiers" class="noVNC_panel">
116 <input type="image" alt="Ctrl" src="app/images/ctrl.svg"
117 id="noVNC_toggle_ctrl_button" class="noVNC_button"
118 title="Toggle Ctrl"/>
119 <input type="image" alt="Alt" src="app/images/alt.svg"
120 id="noVNC_toggle_alt_button" class="noVNC_button"
121 title="Toggle Alt"/>
122 <input type="image" alt="Tab" src="app/images/tab.svg"
123 id="noVNC_send_tab_button" class="noVNC_button"
124 title="Send Tab"/>
125 <input type="image" alt="Esc" src="app/images/esc.svg"
126 id="noVNC_send_esc_button" class="noVNC_button"
127 title="Send Escape"/>
128 <input type="image" alt="Ctrl+Alt+Del" src="app/images/ctrlaltdel.svg"
129 id="noVNC_send_ctrl_alt_del_button" class="noVNC_button"
130 title="Send Ctrl-Alt-Del" />
131 </div>
132 </div>
133 </div>
134
135 <!-- XVP Shutdown/Reboot -->
136 <input type="image" alt="Shutdown/Reboot" src="app/images/power.svg"
137 id="noVNC_xvp_button" class="noVNC_button"
138 title="Shutdown/Reboot..." />
139 <div class="noVNC_vcenter">
140 <div id="noVNC_xvp" class="noVNC_panel">
141 <div class="noVNC_heading">
142 <img src="app/images/power.svg"> Power
143 </div>
144 <input type="button" id="noVNC_xvp_shutdown_button" value="Shutdown" />
145 <input type="button" id="noVNC_xvp_reboot_button" value="Reboot" />
146 <input type="button" id="noVNC_xvp_reset_button" value="Reset" />
147 </div>
148 </div>
149
150 <!-- Clipboard -->
151 <input type="image" alt="Clipboard" src="app/images/clipboard.svg"
152 id="noVNC_clipboard_button" class="noVNC_button"
153 title="Clipboard" />
154 <div class="noVNC_vcenter">
155 <div id="noVNC_clipboard" class="noVNC_panel">
156 <div class="noVNC_heading">
157 <img src="app/images/clipboard.svg"> Clipboard
158 </div>
159 <textarea id="noVNC_clipboard_text" rows=5></textarea>
160 <br />
161 <input id="noVNC_clipboard_clear_button" type="button"
162 value="Clear" class="noVNC_submit" />
163 </div>
164 </div>
165
166 <!-- Toggle fullscreen -->
167 <input type="image" alt="Fullscreen" src="app/images/fullscreen.svg"
168 id="noVNC_fullscreen_button" class="noVNC_button noVNC_hidden"
169 title="Fullscreen" />
170
171 <!-- Settings -->
172 <input type="image" alt="Settings" src="app/images/settings.svg"
173 id="noVNC_settings_button" class="noVNC_button"
174 title="Settings" />
175 <div class="noVNC_vcenter">
176 <div id="noVNC_settings" class="noVNC_panel">
177 <ul>
178 <li class="noVNC_heading">
179 <img src="app/images/settings.svg"> Settings
180 </li>
181 <li>
182 <label><input id="noVNC_setting_encrypt" type="checkbox" /> Encrypt</label>
183 </li>
184 <li>
185 <label><input id="noVNC_setting_true_color" type="checkbox" checked /> True Color</label>
186 </li>
187 <li>
188 <label><input id="noVNC_setting_cursor" type="checkbox" /> Local Cursor</label>
189 </li>
190 <li>
191 <label><input id="noVNC_setting_clip" type="checkbox" /> Clip to Window</label>
192 </li>
193 <li>
194 <label><input id="noVNC_setting_shared" type="checkbox" /> Shared Mode</label>
195 </li>
196 <li>
197 <label><input id="noVNC_setting_view_only" type="checkbox" /> View Only</label>
198 </li>
199 <li><hr></li>
200 <li>
201 <label for="noVNC_setting_path">Path:</label>
202 <input id="noVNC_setting_path" type="input" value="websockify" />
203 </li>
204 <li>
205 <label for="noVNC_setting_resize">Scaling Mode:</label>
206 <select id="noVNC_setting_resize" name="vncResize">
207 <option value="off">None</option>
208 <option value="scale">Local Scaling</option>
209 <option value="downscale">Local Downscaling</option>
210 <option value="remote">Remote Resizing</option>
211 </select>
212 </li>
213 <li>
214 <label for="noVNC_setting_repeaterID">Repeater ID:</label>
215 <input id="noVNC_setting_repeaterID" type="input" value="" />
216 </li>
217 <li><hr></li>
218 <!-- Stylesheet selection dropdown -->
219 <li>
220 <label>Style:
221 <select id="noVNC_setting_stylesheet" name="vncStyle">
222 <option value="default">default</option>
223 </select>
224 </label>
225 </li>
226 <!-- Logging selection dropdown -->
227 <li>
228 <label>Logging:
229 <select id="noVNC_setting_logging" name="vncLogging">
230 </select>
231 </label>
232 </li>
233 <li><hr></li>
234 <li>
235 <input type="button" id="noVNC_settings_apply" value="Apply" class="noVNC_submit" />
236 </li>
237 </ul>
238 </div>
239 </div>
240
241 <!-- Connection Controls -->
242 <input type="image" alt="Connect" src="app/images/connect.svg"
243 id="noVNC_connect_controls_button" class="noVNC_button"
244 title="Connect" />
245 <input type="image" alt="Disconnect" src="app/images/disconnect.svg"
246 id="noVNC_disconnect_button" class="noVNC_button"
247 title="Disconnect" />
248 <div class="noVNC_vcenter">
249 <div id="noVNC_connect_controls" class="noVNC_panel">
250 <ul>
251 <li class="noVNC_heading">
252 <img src="app/images/connect.svg"> Connection
253 </li>
254 <li>
255 <label for="noVNC_setting_host">Host:</label>
256 <input id="noVNC_setting_host" />
257 </li>
258 <li>
259 <label for="noVNC_setting_port">Port:</label>
260 <input id="noVNC_setting_port" />
261 </li>
262 <li>
263 <label for="noVNC_setting_password">Password:</label>
264 <input id="noVNC_setting_password" type="password" />
265 </li>
266 <li>
267 <label for="noVNC_setting_token">Token:</label>
268 <input id="noVNC_setting_token" />
269 </li>
270 <li><hr></li>
271 <li>
272 <input id="noVNC_connect_button" type="button" value="Connect" class="noVNC_submit" />
273 </li>
274 </ul>
275 </div>
276 </div>
277
278 </div>
279 </div>
280
281 </div> <!-- End of noVNC_control_bar -->
282
283 <!-- Status Dialog -->
284 <div id="noVNC_status"></div>
285
286 <!-- Password Dialog -->
287 <div class="noVNC_center">
288 <div id="noVNC_password_dlg" class="noVNC_panel">
289 <ul>
290 <li>
291 <label>Password:</label>
292 <input id="noVNC_password_input" type="password" />
293 </li>
294 <li>
295 <input id="noVNC_password_button" type="button" value="Send Password" class="noVNC_submit" />
296 </li>
297 </ul>
298 </div>
299 </div>
300
301 <!-- Transition Screens -->
302 <div id="noVNC_transition">
303 <div id="noVNC_transition_text"></div>
304 <div class="noVNC_spinner"></div>
305 </div>
306
307 <div id="noVNC_container">
308 <h1 id="noVNC_logo" class="noVNC_logo" translate="no"><span>no</span><br />VNC</h1>
309
310 <!-- HTML5 Canvas -->
311 <div id="noVNC_screen">
312 <!-- Note that Google Chrome on Android doesn't respect any of these,
313 html attributes which attempt to disable text suggestions on the
314 on-screen keyboard. Let's hope Chrome implements the ime-mode
315 style for example -->
316 <textarea id="noVNC_keyboardinput" autocapitalize="off"
317 autocorrect="off" autocomplete="off" spellcheck="false"
318 mozactionhint="Enter"></textarea>
319
320 <canvas id="noVNC_canvas" width="0" height="0">
321 Canvas not supported.
322 </canvas>
323 </div>
324
325 </div>
326
327 <audio id="noVNC_bell">
328 <source src="app/sounds/bell.oga" type="audio/ogg">
329 <source src="app/sounds/bell.mp3" type="audio/mpeg">
330 </audio>
331
332 <!-- begin scripts -->
333 <script src="core/util.js"></script>
334 <script src="app/webutil.js"></script>
335 <script src="app/ui.js"></script>
336 <!-- end scripts -->
337
338 </body>
339 </html>