2 <html class=
"noVNC_loading">
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).
13 Connect parameters are provided in query string:
14 http://example.com/?host=HOST&port=PORT&encrypt=1&true_color=1
16 http://example.com/#host=HOST&port=PORT&encrypt=1&true_color=1
20 <meta charset=
"utf-8" />
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" />
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=
"any" type=
"image/svg+xml" href=
"app/images/icons/novnc-icon.svg">
41 <!-- Repeated last so that legacy handling will pick this -->
42 <link rel=
"icon" sizes=
"16x16" type=
"image/png" href=
"app/images/icons/novnc-16x16.png">
44 <!-- Apple iOS Safari settings -->
45 <meta name=
"viewport" content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
46 <meta name=
"apple-mobile-web-app-capable" content=
"yes" />
47 <meta name=
"apple-mobile-web-app-status-bar-style" content=
"black-translucent" />
48 <!-- Home Screen Icons (favourites and bookmarks use the normal icons) -->
49 <link rel=
"apple-touch-icon" sizes=
"60x60" type=
"image/png" href=
"app/images/icons/novnc-60x60.png">
50 <link rel=
"apple-touch-icon" sizes=
"76x76" type=
"image/png" href=
"app/images/icons/novnc-76x76.png">
51 <link rel=
"apple-touch-icon" sizes=
"120x120" type=
"image/png" href=
"app/images/icons/novnc-120x120.png">
52 <link rel=
"apple-touch-icon" sizes=
"152x152" type=
"image/png" href=
"app/images/icons/novnc-152x152.png">
55 <link rel=
"stylesheet" href=
"app/styles/base.css" />
58 <script type='text/javascript'
59 src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>
62 <!-- this is included as a normal file in order to catch script-loading errors as well -->
63 <script type=
"text/javascript" src=
"app/error-handler.js"></script>
65 <!-- begin scripts -->
66 <!-- promise polyfills promises for IE11 -->
67 <script src=
"vendor/promise.js"></script>
68 <script src=
"vendor/browser-es-module-loader/dist/browser-es-module-loader.js"></script>
69 <script type=
"module" src=
"app/ui.js"></script>
75 <div id=
"noVNC_fallback_error">
76 <div>noVNC encountered an error:
</div>
78 <div id=
"noVNC_fallback_errormsg"></div>
81 <!-- noVNC Control Bar -->
82 <div id=
"noVNC_control_bar_anchor" class=
"noVNC_vcenter">
84 <div id=
"noVNC_control_bar">
85 <div id=
"noVNC_control_bar_handle" title=
"Hide/Show the control bar"><div></div></div>
87 <div class=
"noVNC_scroll">
89 <h1 class=
"noVNC_logo" translate=
"no"><span>no
</span><br />VNC
</h1>
91 <!-- Drag/Pan the viewport -->
92 <input type=
"image" alt=
"viewport drag" src=
"app/images/drag.svg"
93 id=
"noVNC_view_drag_button" class=
"noVNC_button noVNC_hidden"
94 title=
"Move/Drag Viewport" />
96 <!--noVNC Touch Device only buttons-->
97 <div id=
"noVNC_mobile_buttons">
98 <input type=
"image" alt=
"No mousebutton" src=
"app/images/mouse_none.svg"
99 id=
"noVNC_mouse_button0" class=
"noVNC_button"
100 title=
"Active Mouse Button"/>
101 <input type=
"image" alt=
"Left mousebutton" src=
"app/images/mouse_left.svg"
102 id=
"noVNC_mouse_button1" class=
"noVNC_button"
103 title=
"Active Mouse Button"/>
104 <input type=
"image" alt=
"Middle mousebutton" src=
"app/images/mouse_middle.svg"
105 id=
"noVNC_mouse_button2" class=
"noVNC_button"
106 title=
"Active Mouse Button"/>
107 <input type=
"image" alt=
"Right mousebutton" src=
"app/images/mouse_right.svg"
108 id=
"noVNC_mouse_button4" class=
"noVNC_button"
109 title=
"Active Mouse Button"/>
110 <input type=
"image" alt=
"Keyboard" src=
"app/images/keyboard.svg"
111 id=
"noVNC_keyboard_button" class=
"noVNC_button"
112 value=
"Keyboard" title=
"Show Keyboard" />
115 <!-- Extra manual keys -->
116 <div id=
"noVNC_extra_keys">
117 <input type=
"image" alt=
"Extra keys" src=
"app/images/toggleextrakeys.svg"
118 id=
"noVNC_toggle_extra_keys_button" class=
"noVNC_button"
119 title=
"Show Extra Keys"/>
120 <div class=
"noVNC_vcenter">
121 <div id=
"noVNC_modifiers" class=
"noVNC_panel">
122 <input type=
"image" alt=
"Ctrl" src=
"app/images/ctrl.svg"
123 id=
"noVNC_toggle_ctrl_button" class=
"noVNC_button"
124 title=
"Toggle Ctrl"/>
125 <input type=
"image" alt=
"Alt" src=
"app/images/alt.svg"
126 id=
"noVNC_toggle_alt_button" class=
"noVNC_button"
128 <input type=
"image" alt=
"Tab" src=
"app/images/tab.svg"
129 id=
"noVNC_send_tab_button" class=
"noVNC_button"
131 <input type=
"image" alt=
"Esc" src=
"app/images/esc.svg"
132 id=
"noVNC_send_esc_button" class=
"noVNC_button"
133 title=
"Send Escape"/>
134 <input type=
"image" alt=
"Ctrl+Alt+Del" src=
"app/images/ctrlaltdel.svg"
135 id=
"noVNC_send_ctrl_alt_del_button" class=
"noVNC_button"
136 title=
"Send Ctrl-Alt-Del" />
141 <!-- XVP Shutdown/Reboot -->
142 <input type=
"image" alt=
"Shutdown/Reboot" src=
"app/images/power.svg"
143 id=
"noVNC_xvp_button" class=
"noVNC_button"
144 title=
"Shutdown/Reboot..." />
145 <div class=
"noVNC_vcenter">
146 <div id=
"noVNC_xvp" class=
"noVNC_panel">
147 <div class=
"noVNC_heading">
148 <img src=
"app/images/power.svg"> Power
150 <input type=
"button" id=
"noVNC_xvp_shutdown_button" value=
"Shutdown" />
151 <input type=
"button" id=
"noVNC_xvp_reboot_button" value=
"Reboot" />
152 <input type=
"button" id=
"noVNC_xvp_reset_button" value=
"Reset" />
157 <input type=
"image" alt=
"Clipboard" src=
"app/images/clipboard.svg"
158 id=
"noVNC_clipboard_button" class=
"noVNC_button"
160 <div class=
"noVNC_vcenter">
161 <div id=
"noVNC_clipboard" class=
"noVNC_panel">
162 <div class=
"noVNC_heading">
163 <img src=
"app/images/clipboard.svg"> Clipboard
165 <textarea id=
"noVNC_clipboard_text" rows=
5></textarea>
167 <input id=
"noVNC_clipboard_clear_button" type=
"button"
168 value=
"Clear" class=
"noVNC_submit" />
172 <!-- Toggle fullscreen -->
173 <input type=
"image" alt=
"Fullscreen" src=
"app/images/fullscreen.svg"
174 id=
"noVNC_fullscreen_button" class=
"noVNC_button noVNC_hidden"
175 title=
"Fullscreen" />
178 <input type=
"image" alt=
"Settings" src=
"app/images/settings.svg"
179 id=
"noVNC_settings_button" class=
"noVNC_button"
181 <div class=
"noVNC_vcenter">
182 <div id=
"noVNC_settings" class=
"noVNC_panel">
184 <li class=
"noVNC_heading">
185 <img src=
"app/images/settings.svg"> Settings
188 <label><input id=
"noVNC_setting_shared" type=
"checkbox" /> Shared Mode
</label>
191 <label><input id=
"noVNC_setting_view_only" type=
"checkbox" /> View Only
</label>
195 <label><input id=
"noVNC_setting_clip" type=
"checkbox" /> Clip to Window
</label>
198 <label for=
"noVNC_setting_resize">Scaling Mode:
</label>
199 <select id=
"noVNC_setting_resize" name=
"vncResize">
200 <option value=
"off">None
</option>
201 <option value=
"scale">Local Scaling
</option>
202 <option value=
"downscale">Local Downscaling
</option>
203 <option value=
"remote">Remote Resizing
</option>
208 <div class=
"noVNC_expander">Advanced
</div>
211 <label><input id=
"noVNC_setting_true_color" type=
"checkbox" checked
/> True Color
</label>
214 <label><input id=
"noVNC_setting_cursor" type=
"checkbox" /> Local Cursor
</label>
218 <label for=
"noVNC_setting_repeaterID">Repeater ID:
</label>
219 <input id=
"noVNC_setting_repeaterID" type=
"input" value=
"" />
222 <div class=
"noVNC_expander">WebSocket
</div>
225 <label><input id=
"noVNC_setting_encrypt" type=
"checkbox" /> Encrypt
</label>
228 <label for=
"noVNC_setting_host">Host:
</label>
229 <input id=
"noVNC_setting_host" />
232 <label for=
"noVNC_setting_port">Port:
</label>
233 <input id=
"noVNC_setting_port" type=
"number" />
236 <label for=
"noVNC_setting_path">Path:
</label>
237 <input id=
"noVNC_setting_path" type=
"input" value=
"websockify" />
243 <label><input id=
"noVNC_setting_reconnect" type=
"checkbox" /> Automatic Reconnect
</label>
246 <label for=
"noVNC_setting_reconnect_delay">Reconnect Delay (ms):
</label>
247 <input id=
"noVNC_setting_reconnect_delay" type=
"number" />
250 <!-- Logging selection dropdown -->
253 <select id=
"noVNC_setting_logging" name=
"vncLogging">
263 <!-- Connection Controls -->
264 <input type=
"image" alt=
"Disconnect" src=
"app/images/disconnect.svg"
265 id=
"noVNC_disconnect_button" class=
"noVNC_button"
266 title=
"Disconnect" />
271 </div> <!-- End of noVNC_control_bar -->
273 <!-- Status Dialog -->
274 <div id=
"noVNC_status"></div>
276 <!-- Connect button -->
277 <div class=
"noVNC_center">
278 <div id=
"noVNC_connect_dlg">
279 <div class=
"noVNC_logo" translate=
"no"><span>no
</span>VNC
</div>
280 <div id=
"noVNC_connect_button"><div>
281 <img src=
"app/images/connect.svg"> Connect
286 <!-- Password Dialog -->
287 <div class=
"noVNC_center noVNC_connect_layer">
288 <div id=
"noVNC_password_dlg" class=
"noVNC_panel"><form>
291 <label>Password:
</label>
292 <input id=
"noVNC_password_input" type=
"password" />
295 <input id=
"noVNC_password_button" type=
"submit" value=
"Send Password" class=
"noVNC_submit" />
301 <!-- Transition Screens -->
302 <div id=
"noVNC_transition">
303 <div id=
"noVNC_transition_text"></div>
305 <input type=
"button" id=
"noVNC_cancel_reconnect_button" value=
"Cancel" class=
"noVNC_submit" />
307 <div class=
"noVNC_spinner"></div>
310 <div id=
"noVNC_container">
311 <!-- HTML5 Canvas -->
312 <div id=
"noVNC_screen">
313 <!-- Note that Google Chrome on Android doesn't respect any of these,
314 html attributes which attempt to disable text suggestions on the
315 on-screen keyboard. Let's hope Chrome implements the ime-mode
316 style for example -->
317 <textarea id=
"noVNC_keyboardinput" autocapitalize=
"off"
318 autocorrect=
"off" autocomplete=
"off" spellcheck=
"false"
319 mozactionhint=
"Enter"></textarea>
321 <canvas id=
"noVNC_canvas" width=
"0" height=
"0">
322 Canvas not supported.
328 <audio id=
"noVNC_bell">
329 <source src=
"app/sounds/bell.oga" type=
"audio/ogg">
330 <source src=
"app/sounds/bell.mp3" type=
"audio/mpeg">