2 <html lang=
"en" class=
"noVNC_loading">
6 noVNC example: simple example using default UI
7 Copyright (C) 2019 The noVNC Authors
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).
11 Connect parameters are provided in query string:
12 http://example.com/?host=HOST&port=PORT&encrypt=1
14 http://example.com/#host=HOST&port=PORT&encrypt=1
18 <meta charset=
"utf-8">
20 <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
21 Remove this if you use the .htaccess -->
22 <meta http-equiv=
"X-UA-Compatible" content=
"IE=edge" />
24 <!-- Icons (see app/images/icons/Makefile for what the sizes are for) -->
25 <link rel=
"icon" sizes=
"16x16" type=
"image/png" href=
"app/images/icons/novnc-16x16.png">
26 <link rel=
"icon" sizes=
"24x24" type=
"image/png" href=
"app/images/icons/novnc-24x24.png">
27 <link rel=
"icon" sizes=
"32x32" type=
"image/png" href=
"app/images/icons/novnc-32x32.png">
28 <link rel=
"icon" sizes=
"48x48" type=
"image/png" href=
"app/images/icons/novnc-48x48.png">
29 <link rel=
"icon" sizes=
"60x60" type=
"image/png" href=
"app/images/icons/novnc-60x60.png">
30 <link rel=
"icon" sizes=
"64x64" type=
"image/png" href=
"app/images/icons/novnc-64x64.png">
31 <link rel=
"icon" sizes=
"72x72" type=
"image/png" href=
"app/images/icons/novnc-72x72.png">
32 <link rel=
"icon" sizes=
"76x76" type=
"image/png" href=
"app/images/icons/novnc-76x76.png">
33 <link rel=
"icon" sizes=
"96x96" type=
"image/png" href=
"app/images/icons/novnc-96x96.png">
34 <link rel=
"icon" sizes=
"120x120" type=
"image/png" href=
"app/images/icons/novnc-120x120.png">
35 <link rel=
"icon" sizes=
"144x144" type=
"image/png" href=
"app/images/icons/novnc-144x144.png">
36 <link rel=
"icon" sizes=
"152x152" type=
"image/png" href=
"app/images/icons/novnc-152x152.png">
37 <link rel=
"icon" sizes=
"192x192" type=
"image/png" href=
"app/images/icons/novnc-192x192.png">
38 <!-- Firefox currently mishandles SVG, see #1419039
39 <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">
57 <!-- this is included as a normal file in order to catch script-loading errors as well -->
58 <script src=
"app/error-handler.js"></script>
60 <!-- begin scripts -->
61 <!-- promise polyfills promises for IE11 -->
62 <script src=
"vendor/promise.js"></script>
63 <!-- ES2015/ES6 modules polyfill -->
64 <script nomodule
src=
"vendor/browser-es-module-loader/dist/browser-es-module-loader.js"></script>
65 <!-- actual script modules -->
66 <script type=
"module" crossorigin=
"anonymous" src=
"app/ui.js"></script>
72 <div id=
"noVNC_fallback_error" class=
"noVNC_center">
74 <div>noVNC encountered an error:
</div>
76 <div id=
"noVNC_fallback_errormsg"></div>
80 <!-- noVNC Control Bar -->
81 <div id=
"noVNC_control_bar_anchor" class=
"noVNC_vcenter">
83 <div id=
"noVNC_control_bar">
84 <div id=
"noVNC_control_bar_handle" title=
"Hide/Show the control bar"><div></div></div>
86 <div class=
"noVNC_scroll">
88 <h1 class=
"noVNC_logo" translate=
"no"><span>no
</span><br>VNC
</h1>
90 <!-- Drag/Pan the viewport -->
91 <input type=
"image" alt=
"Drag" src=
"app/images/drag.svg"
92 id=
"noVNC_view_drag_button" class=
"noVNC_button noVNC_hidden"
93 title=
"Move/Drag Viewport">
95 <!--noVNC Touch Device only buttons-->
96 <div id=
"noVNC_mobile_buttons">
97 <input type=
"image" alt=
"Keyboard" src=
"app/images/keyboard.svg"
98 id=
"noVNC_keyboard_button" class=
"noVNC_button" title=
"Show Keyboard">
101 <!-- Extra manual keys -->
102 <input type=
"image" alt=
"Extra keys" src=
"app/images/toggleextrakeys.svg"
103 id=
"noVNC_toggle_extra_keys_button" class=
"noVNC_button"
104 title=
"Show Extra Keys">
105 <div class=
"noVNC_vcenter">
106 <div id=
"noVNC_modifiers" class=
"noVNC_panel">
107 <input type=
"image" alt=
"Ctrl" src=
"app/images/ctrl.svg"
108 id=
"noVNC_toggle_ctrl_button" class=
"noVNC_button"
110 <input type=
"image" alt=
"Alt" src=
"app/images/alt.svg"
111 id=
"noVNC_toggle_alt_button" class=
"noVNC_button"
113 <input type=
"image" alt=
"Windows" src=
"app/images/windows.svg"
114 id=
"noVNC_toggle_windows_button" class=
"noVNC_button"
115 title=
"Toggle Windows">
116 <input type=
"image" alt=
"Tab" src=
"app/images/tab.svg"
117 id=
"noVNC_send_tab_button" class=
"noVNC_button"
119 <input type=
"image" alt=
"Esc" src=
"app/images/esc.svg"
120 id=
"noVNC_send_esc_button" class=
"noVNC_button"
122 <input type=
"image" alt=
"Ctrl+Alt+Del" src=
"app/images/ctrlaltdel.svg"
123 id=
"noVNC_send_ctrl_alt_del_button" class=
"noVNC_button"
124 title=
"Send Ctrl-Alt-Del">
128 <!-- Shutdown/Reboot -->
129 <input type=
"image" alt=
"Shutdown/Reboot" src=
"app/images/power.svg"
130 id=
"noVNC_power_button" class=
"noVNC_button"
131 title=
"Shutdown/Reboot...">
132 <div class=
"noVNC_vcenter">
133 <div id=
"noVNC_power" class=
"noVNC_panel">
134 <div class=
"noVNC_heading">
135 <img alt=
"" src=
"app/images/power.svg"> Power
137 <input type=
"button" id=
"noVNC_shutdown_button" value=
"Shutdown">
138 <input type=
"button" id=
"noVNC_reboot_button" value=
"Reboot">
139 <input type=
"button" id=
"noVNC_reset_button" value=
"Reset">
144 <input type=
"image" alt=
"Clipboard" src=
"app/images/clipboard.svg"
145 id=
"noVNC_clipboard_button" class=
"noVNC_button"
147 <div class=
"noVNC_vcenter">
148 <div id=
"noVNC_clipboard" class=
"noVNC_panel">
149 <div class=
"noVNC_heading">
150 <img alt=
"" src=
"app/images/clipboard.svg"> Clipboard
152 <textarea id=
"noVNC_clipboard_text" rows=
5></textarea>
154 <input id=
"noVNC_clipboard_clear_button" type=
"button"
155 value=
"Clear" class=
"noVNC_submit">
159 <!-- Toggle fullscreen -->
160 <input type=
"image" alt=
"Fullscreen" src=
"app/images/fullscreen.svg"
161 id=
"noVNC_fullscreen_button" class=
"noVNC_button noVNC_hidden"
165 <input type=
"image" alt=
"Settings" src=
"app/images/settings.svg"
166 id=
"noVNC_settings_button" class=
"noVNC_button"
168 <div class=
"noVNC_vcenter">
169 <div id=
"noVNC_settings" class=
"noVNC_panel">
171 <li class=
"noVNC_heading">
172 <img alt=
"" src=
"app/images/settings.svg"> Settings
175 <label><input id=
"noVNC_setting_shared" type=
"checkbox"> Shared Mode
</label>
178 <label><input id=
"noVNC_setting_view_only" type=
"checkbox"> View Only
</label>
182 <label><input id=
"noVNC_setting_view_clip" type=
"checkbox"> Clip to Window
</label>
185 <label for=
"noVNC_setting_resize">Scaling Mode:
</label>
186 <select id=
"noVNC_setting_resize" name=
"vncResize">
187 <option value=
"off">None
</option>
188 <option value=
"scale">Local Scaling
</option>
189 <option value=
"remote">Remote Resizing
</option>
194 <div class=
"noVNC_expander">Advanced
</div>
197 <label for=
"noVNC_setting_quality">Quality:
</label>
198 <input id=
"noVNC_setting_quality" type=
"range" min=
"0" max=
"9" value=
"6">
201 <label for=
"noVNC_setting_compression">Compression level:
</label>
202 <input id=
"noVNC_setting_compression" type=
"range" min=
"0" max=
"9" value=
"2">
206 <label for=
"noVNC_setting_repeaterID">Repeater ID:
</label>
207 <input id=
"noVNC_setting_repeaterID" type=
"text" value=
"">
210 <div class=
"noVNC_expander">WebSocket
</div>
213 <label><input id=
"noVNC_setting_encrypt" type=
"checkbox"> Encrypt
</label>
216 <label for=
"noVNC_setting_host">Host:
</label>
217 <input id=
"noVNC_setting_host">
220 <label for=
"noVNC_setting_port">Port:
</label>
221 <input id=
"noVNC_setting_port" type=
"number">
224 <label for=
"noVNC_setting_path">Path:
</label>
225 <input id=
"noVNC_setting_path" type=
"text" value=
"websockify">
231 <label><input id=
"noVNC_setting_reconnect" type=
"checkbox"> Automatic Reconnect
</label>
234 <label for=
"noVNC_setting_reconnect_delay">Reconnect Delay (ms):
</label>
235 <input id=
"noVNC_setting_reconnect_delay" type=
"number">
239 <label><input id=
"noVNC_setting_show_dot" type=
"checkbox"> Show Dot when No Cursor
</label>
242 <!-- Logging selection dropdown -->
245 <select id=
"noVNC_setting_logging" name=
"vncLogging">
251 <li class=
"noVNC_version_separator"><hr></li>
252 <li class=
"noVNC_version_wrapper">
253 <span>Version:
</span>
254 <span class=
"noVNC_version"></span>
260 <!-- Connection Controls -->
261 <input type=
"image" alt=
"Disconnect" src=
"app/images/disconnect.svg"
262 id=
"noVNC_disconnect_button" class=
"noVNC_button"
268 <div id=
"noVNC_control_bar_hint"></div>
270 </div> <!-- End of noVNC_control_bar -->
272 <!-- Status Dialog -->
273 <div id=
"noVNC_status"></div>
275 <!-- Connect button -->
276 <div class=
"noVNC_center">
277 <div id=
"noVNC_connect_dlg">
278 <div class=
"noVNC_logo" translate=
"no"><span>no
</span>VNC
</div>
279 <div id=
"noVNC_connect_button"><div>
280 <img alt=
"" src=
"app/images/connect.svg"> Connect
285 <!-- Password Dialog -->
286 <div class=
"noVNC_center noVNC_connect_layer">
287 <div id=
"noVNC_credentials_dlg" class=
"noVNC_panel"><form>
289 <li id=
"noVNC_username_block">
290 <label>Username:
</label>
291 <input id=
"noVNC_username_input">
293 <li id=
"noVNC_password_block">
294 <label>Password:
</label>
295 <input id=
"noVNC_password_input" type=
"password">
298 <input id=
"noVNC_credentials_button" type=
"submit" value=
"Send Credentials" class=
"noVNC_submit">
304 <!-- Transition Screens -->
305 <div id=
"noVNC_transition">
306 <div id=
"noVNC_transition_text"></div>
308 <input type=
"button" id=
"noVNC_cancel_reconnect_button" value=
"Cancel" class=
"noVNC_submit">
310 <div class=
"noVNC_spinner"></div>
313 <!-- This is where the RFB elements will attach -->
314 <div id=
"noVNC_container">
315 <!-- Note that Google Chrome on Android doesn't respect any of these,
316 html attributes which attempt to disable text suggestions on the
317 on-screen keyboard. Let's hope Chrome implements the ime-mode
318 style for example -->
319 <textarea id=
"noVNC_keyboardinput" autocapitalize=
"off"
320 autocomplete=
"off" spellcheck=
"false" tabindex=
"-1"></textarea>
323 <audio id=
"noVNC_bell">
324 <source src=
"app/sounds/bell.oga" type=
"audio/ogg">
325 <source src=
"app/sounds/bell.mp3" type=
"audio/mpeg">