]> git.proxmox.com Git - mirror_novnc.git/blob - vnc.html
Update interface on view only toggle
[mirror_novnc.git] / vnc.html
1 <!DOCTYPE html>
2 <html class="noVNC_loading">
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
15 or the fragment:
16 http://example.com/#host=HOST&port=PORT&encrypt=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="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">
43
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">
53
54 <!-- Stylesheets -->
55 <link rel="stylesheet" href="app/styles/base.css" />
56
57 <!--
58 <script type='text/javascript'
59 src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>
60 -->
61
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>
64
65 <!-- begin scripts -->
66 <!-- promise polyfills promises for IE11 -->
67 <script src="vendor/promise.js"></script>
68 <!-- ES2015/ES6 modules polyfill -->
69 <script type="module">
70 window._noVNC_has_module_support = true;
71 </script>
72 <script>
73 window.addEventListener("load", function() {
74 if (window._noVNC_has_module_support) return;
75 var loader = document.createElement("script");
76 loader.src = "vendor/browser-es-module-loader/dist/browser-es-module-loader.js";
77 document.head.appendChild(loader);
78 });
79 </script>
80 <!-- actual script modules -->
81 <script type="module" crossorigin="anonymous" src="app/ui.js"></script>
82 <!-- end scripts -->
83 </head>
84
85 <body>
86
87 <div id="noVNC_fallback_error" class="noVNC_center">
88 <div>
89 <div>noVNC encountered an error:</div>
90 <br>
91 <div id="noVNC_fallback_errormsg"></div>
92 </div>
93 </div>
94
95 <!-- noVNC Control Bar -->
96 <div id="noVNC_control_bar_anchor" class="noVNC_vcenter">
97
98 <div id="noVNC_control_bar">
99 <div id="noVNC_control_bar_handle" title="Hide/Show the control bar"><div></div></div>
100
101 <div class="noVNC_scroll">
102
103 <h1 class="noVNC_logo" translate="no"><span>no</span><br />VNC</h1>
104
105 <!-- Drag/Pan the viewport -->
106 <input type="image" alt="viewport drag" src="app/images/drag.svg"
107 id="noVNC_view_drag_button" class="noVNC_button noVNC_hidden"
108 title="Move/Drag Viewport" />
109
110 <!--noVNC Touch Device only buttons-->
111 <div id="noVNC_mobile_buttons">
112 <input type="image" alt="No mousebutton" src="app/images/mouse_none.svg"
113 id="noVNC_mouse_button0" class="noVNC_button"
114 title="Active Mouse Button"/>
115 <input type="image" alt="Left mousebutton" src="app/images/mouse_left.svg"
116 id="noVNC_mouse_button1" class="noVNC_button"
117 title="Active Mouse Button"/>
118 <input type="image" alt="Middle mousebutton" src="app/images/mouse_middle.svg"
119 id="noVNC_mouse_button2" class="noVNC_button"
120 title="Active Mouse Button"/>
121 <input type="image" alt="Right mousebutton" src="app/images/mouse_right.svg"
122 id="noVNC_mouse_button4" class="noVNC_button"
123 title="Active Mouse Button"/>
124 <input type="image" alt="Keyboard" src="app/images/keyboard.svg"
125 id="noVNC_keyboard_button" class="noVNC_button"
126 value="Keyboard" title="Show Keyboard" />
127 </div>
128
129 <!-- Extra manual keys -->
130 <div id="noVNC_extra_keys">
131 <input type="image" alt="Extra keys" src="app/images/toggleextrakeys.svg"
132 id="noVNC_toggle_extra_keys_button" class="noVNC_button"
133 title="Show Extra Keys"/>
134 <div class="noVNC_vcenter">
135 <div id="noVNC_modifiers" class="noVNC_panel">
136 <input type="image" alt="Ctrl" src="app/images/ctrl.svg"
137 id="noVNC_toggle_ctrl_button" class="noVNC_button"
138 title="Toggle Ctrl"/>
139 <input type="image" alt="Alt" src="app/images/alt.svg"
140 id="noVNC_toggle_alt_button" class="noVNC_button"
141 title="Toggle Alt"/>
142 <input type="image" alt="Tab" src="app/images/tab.svg"
143 id="noVNC_send_tab_button" class="noVNC_button"
144 title="Send Tab"/>
145 <input type="image" alt="Esc" src="app/images/esc.svg"
146 id="noVNC_send_esc_button" class="noVNC_button"
147 title="Send Escape"/>
148 <input type="image" alt="Ctrl+Alt+Del" src="app/images/ctrlaltdel.svg"
149 id="noVNC_send_ctrl_alt_del_button" class="noVNC_button"
150 title="Send Ctrl-Alt-Del" />
151 </div>
152 </div>
153 </div>
154
155 <!-- Shutdown/Reboot -->
156 <input type="image" alt="Shutdown/Reboot" src="app/images/power.svg"
157 id="noVNC_power_button" class="noVNC_button"
158 title="Shutdown/Reboot..." />
159 <div class="noVNC_vcenter">
160 <div id="noVNC_power" class="noVNC_panel">
161 <div class="noVNC_heading">
162 <img src="app/images/power.svg"> Power
163 </div>
164 <input type="button" id="noVNC_shutdown_button" value="Shutdown" />
165 <input type="button" id="noVNC_reboot_button" value="Reboot" />
166 <input type="button" id="noVNC_reset_button" value="Reset" />
167 </div>
168 </div>
169
170 <!-- Clipboard -->
171 <input type="image" alt="Clipboard" src="app/images/clipboard.svg"
172 id="noVNC_clipboard_button" class="noVNC_button"
173 title="Clipboard" />
174 <div class="noVNC_vcenter">
175 <div id="noVNC_clipboard" class="noVNC_panel">
176 <div class="noVNC_heading">
177 <img src="app/images/clipboard.svg"> Clipboard
178 </div>
179 <textarea id="noVNC_clipboard_text" rows=5></textarea>
180 <br />
181 <input id="noVNC_clipboard_clear_button" type="button"
182 value="Clear" class="noVNC_submit" />
183 </div>
184 </div>
185
186 <!-- Toggle fullscreen -->
187 <input type="image" alt="Fullscreen" src="app/images/fullscreen.svg"
188 id="noVNC_fullscreen_button" class="noVNC_button noVNC_hidden"
189 title="Fullscreen" />
190
191 <!-- Settings -->
192 <input type="image" alt="Settings" src="app/images/settings.svg"
193 id="noVNC_settings_button" class="noVNC_button"
194 title="Settings" />
195 <div class="noVNC_vcenter">
196 <div id="noVNC_settings" class="noVNC_panel">
197 <ul>
198 <li class="noVNC_heading">
199 <img src="app/images/settings.svg"> Settings
200 </li>
201 <li>
202 <label><input id="noVNC_setting_shared" type="checkbox" /> Shared Mode</label>
203 </li>
204 <li>
205 <label><input id="noVNC_setting_view_only" type="checkbox" /> View Only</label>
206 </li>
207 <li><hr></li>
208 <li>
209 <label><input id="noVNC_setting_view_clip" type="checkbox" /> Clip to Window</label>
210 </li>
211 <li>
212 <label for="noVNC_setting_resize">Scaling Mode:</label>
213 <select id="noVNC_setting_resize" name="vncResize">
214 <option value="off">None</option>
215 <option value="scale">Local Scaling</option>
216 <option value="remote">Remote Resizing</option>
217 </select>
218 </li>
219 <li><hr></li>
220 <li>
221 <div class="noVNC_expander">Advanced</div>
222 <div><ul>
223 <li>
224 <label for="noVNC_setting_repeaterID">Repeater ID:</label>
225 <input id="noVNC_setting_repeaterID" type="input" value="" />
226 </li>
227 <li>
228 <div class="noVNC_expander">WebSocket</div>
229 <div><ul>
230 <li>
231 <label><input id="noVNC_setting_encrypt" type="checkbox" /> Encrypt</label>
232 </li>
233 <li>
234 <label for="noVNC_setting_host">Host:</label>
235 <input id="noVNC_setting_host" />
236 </li>
237 <li>
238 <label for="noVNC_setting_port">Port:</label>
239 <input id="noVNC_setting_port" type="number" />
240 </li>
241 <li>
242 <label for="noVNC_setting_path">Path:</label>
243 <input id="noVNC_setting_path" type="input" value="websockify" />
244 </li>
245 </ul></div>
246 </li>
247 <li><hr></li>
248 <li>
249 <label><input id="noVNC_setting_reconnect" type="checkbox" /> Automatic Reconnect</label>
250 </li>
251 <li>
252 <label for="noVNC_setting_reconnect_delay">Reconnect Delay (ms):</label>
253 <input id="noVNC_setting_reconnect_delay" type="number" />
254 </li>
255 <li><hr></li>
256 <!-- Logging selection dropdown -->
257 <li>
258 <label>Logging:
259 <select id="noVNC_setting_logging" name="vncLogging">
260 </select>
261 </label>
262 </li>
263 </ul></div>
264 </li>
265 </ul>
266 </div>
267 </div>
268
269 <!-- Connection Controls -->
270 <input type="image" alt="Disconnect" src="app/images/disconnect.svg"
271 id="noVNC_disconnect_button" class="noVNC_button"
272 title="Disconnect" />
273
274 </div>
275 </div>
276
277 <div id="noVNC_control_bar_hint"></div>
278
279 </div> <!-- End of noVNC_control_bar -->
280
281 <!-- Status Dialog -->
282 <div id="noVNC_status"></div>
283
284 <!-- Connect button -->
285 <div class="noVNC_center">
286 <div id="noVNC_connect_dlg">
287 <div class="noVNC_logo" translate="no"><span>no</span>VNC</div>
288 <div id="noVNC_connect_button"><div>
289 <img src="app/images/connect.svg"> Connect
290 </div></div>
291 </div>
292 </div>
293
294 <!-- Password Dialog -->
295 <div class="noVNC_center noVNC_connect_layer">
296 <div id="noVNC_password_dlg" class="noVNC_panel"><form>
297 <ul>
298 <li>
299 <label>Password:</label>
300 <input id="noVNC_password_input" type="password" />
301 </li>
302 <li>
303 <input id="noVNC_password_button" type="submit" value="Send Password" class="noVNC_submit" />
304 </li>
305 </ul>
306 </form></div>
307 </div>
308
309 <!-- Transition Screens -->
310 <div id="noVNC_transition">
311 <div id="noVNC_transition_text"></div>
312 <div>
313 <input type="button" id="noVNC_cancel_reconnect_button" value="Cancel" class="noVNC_submit" />
314 </div>
315 <div class="noVNC_spinner"></div>
316 </div>
317
318 <!-- This is where the RFB elements will attach -->
319 <div id="noVNC_container">
320 <!-- Note that Google Chrome on Android doesn't respect any of these,
321 html attributes which attempt to disable text suggestions on the
322 on-screen keyboard. Let's hope Chrome implements the ime-mode
323 style for example -->
324 <textarea id="noVNC_keyboardinput" autocapitalize="off"
325 autocorrect="off" autocomplete="off" spellcheck="false"
326 mozactionhint="Enter" tabindex="-1"></textarea>
327 </div>
328
329 <audio id="noVNC_bell">
330 <source src="app/sounds/bell.oga" type="audio/ogg">
331 <source src="app/sounds/bell.mp3" type="audio/mpeg">
332 </audio>
333 </body>
334 </html>