]>
git.proxmox.com Git - mirror_novnc.git/blob - vnc.html
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 <!-- Apple iOS Safari settings -->
27 <meta name=
"viewport" content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
28 <meta name=
"apple-mobile-web-app-capable" content=
"yes" />
29 <meta name=
"apple-mobile-web-app-status-bar-style" content=
"black-translucent" />
30 <!-- App Start Icon -->
31 <link rel=
"apple-touch-startup-image" href=
"app/images/screen_320x460.png" />
32 <!-- For iOS devices set the icon to use if user bookmarks app on their homescreen -->
33 <link rel=
"apple-touch-icon" href=
"app/images/screen_57x57.png" />
35 <link rel="apple-touch-icon-precomposed" href="app/images/screen_57x57.png" />
40 <link rel=
"stylesheet" href=
"app/styles/base.css" />
41 <link rel=
"alternate stylesheet" href=
"app/styles/black.css" TITLE=
"Black" />
42 <link rel=
"alternate stylesheet" href=
"app/styles/blue.css" TITLE=
"Blue" />
45 <script type='text/javascript'
46 src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>
52 <!-- noVNC Control Bar -->
53 <div id=
"noVNC_control_bar_anchor" class=
"noVNC_vcenter">
55 <div id=
"noVNC_control_bar">
56 <div id=
"noVNC_control_bar_handle" title=
"Hide/Show the control bar"><div></div></div>
58 <div class=
"noVNC_scroll">
60 <h1 class=
"noVNC_logo"><span>no
</span><br />VNC
</h1>
62 <!-- Drag/Pan the viewport -->
63 <input type=
"image" alt=
"viewport drag" src=
"app/images/drag.svg"
64 id=
"noVNC_view_drag_button" class=
"noVNC_button noVNC_hidden"
65 title=
"Move/Drag Viewport" />
67 <!--noVNC Touch Device only buttons-->
68 <div id=
"noVNC_mobile_buttons">
69 <input type=
"image" alt=
"No mousebutton" src=
"app/images/mouse_none.svg"
70 id=
"noVNC_mouse_button0" class=
"noVNC_button"
71 title=
"Active Mouse Button"/>
72 <input type=
"image" alt=
"Left mousebutton" src=
"app/images/mouse_left.svg"
73 id=
"noVNC_mouse_button1" class=
"noVNC_button"
74 title=
"Active Mouse Button"/>
75 <input type=
"image" alt=
"Middle mousebutton" src=
"app/images/mouse_middle.svg"
76 id=
"noVNC_mouse_button2" class=
"noVNC_button"
77 title=
"Active Mouse Button"/>
78 <input type=
"image" alt=
"Right mousebutton" src=
"app/images/mouse_right.svg"
79 id=
"noVNC_mouse_button4" class=
"noVNC_button"
80 title=
"Active Mouse Button"/>
81 <input type=
"image" alt=
"Keyboard" src=
"app/images/keyboard.svg"
82 id=
"noVNC_keyboard_button" class=
"noVNC_button"
83 value=
"Keyboard" title=
"Show Keyboard" />
86 <!-- Extra manual keys -->
87 <div id=
"noVNC_extra_keys">
88 <input type=
"image" alt=
"Extra keys" src=
"app/images/toggleextrakeys.svg"
89 id=
"noVNC_toggle_extra_keys_button" class=
"noVNC_button"
90 title=
"Show Extra Keys"/>
91 <div class=
"noVNC_vcenter">
92 <div id=
"noVNC_modifiers" class=
"noVNC_panel">
93 <input type=
"image" alt=
"Ctrl" src=
"app/images/ctrl.svg"
94 id=
"noVNC_toggle_ctrl_button" class=
"noVNC_button"
96 <input type=
"image" alt=
"Alt" src=
"app/images/alt.svg"
97 id=
"noVNC_toggle_alt_button" class=
"noVNC_button"
99 <input type=
"image" alt=
"Tab" src=
"app/images/tab.svg"
100 id=
"noVNC_send_tab_button" class=
"noVNC_button"
102 <input type=
"image" alt=
"Esc" src=
"app/images/esc.svg"
103 id=
"noVNC_send_esc_button" class=
"noVNC_button"
104 title=
"Send Escape"/>
105 <input type=
"image" alt=
"Ctrl+Alt+Del" src=
"app/images/ctrlaltdel.svg"
106 id=
"noVNC_send_ctrl_alt_del_button" class=
"noVNC_button"
107 title=
"Send Ctrl-Alt-Del" />
112 <!-- XVP Shutdown/Reboot -->
113 <input type=
"image" alt=
"Shutdown/Reboot" src=
"app/images/power.svg"
114 id=
"noVNC_xvp_button" class=
"noVNC_button"
115 title=
"Shutdown/Reboot..." />
116 <div class=
"noVNC_vcenter">
117 <div id=
"noVNC_xvp" class=
"noVNC_panel">
118 <input type=
"button" id=
"noVNC_xvp_shutdown_button" value=
"Shutdown" />
119 <input type=
"button" id=
"noVNC_xvp_reboot_button" value=
"Reboot" />
120 <input type=
"button" id=
"noVNC_xvp_reset_button" value=
"Reset" />
125 <input type=
"image" alt=
"Clipboard" src=
"app/images/clipboard.svg"
126 id=
"noVNC_clipboard_button" class=
"noVNC_button"
128 <div class=
"noVNC_vcenter">
129 <div id=
"noVNC_clipboard" class=
"noVNC_panel">
130 <textarea id=
"noVNC_clipboard_text" rows=
5>
133 <input id=
"noVNC_clipboard_clear_button" type=
"button"
134 value=
"Clear" class=
"noVNC_submit" />
138 <!-- Toggle fullscreen -->
139 <input type=
"image" alt=
"Fullscreen" src=
"app/images/fullscreen.svg"
140 id=
"noVNC_fullscreen_button" class=
"noVNC_button noVNC_hidden"
141 title=
"Fullscreen" />
144 <input type=
"image" alt=
"Settings" src=
"app/images/settings.svg"
145 id=
"noVNC_settings_button" class=
"noVNC_button"
147 <div class=
"noVNC_vcenter">
148 <div id=
"noVNC_settings" class=
"noVNC_panel">
151 <label><input id=
"noVNC_setting_encrypt" type=
"checkbox" /> Encrypt
</label>
154 <label><input id=
"noVNC_setting_true_color" type=
"checkbox" checked
/> True Color
</label>
157 <label><input id=
"noVNC_setting_cursor" type=
"checkbox" /> Local Cursor
</label>
160 <label><input id=
"noVNC_setting_clip" type=
"checkbox" /> Clip to Window
</label>
163 <label><input id=
"noVNC_setting_shared" type=
"checkbox" /> Shared Mode
</label>
166 <label><input id=
"noVNC_setting_view_only" type=
"checkbox" /> View Only
</label>
170 <label for=
"noVNC_setting_path">Path:
</label>
171 <input id=
"noVNC_setting_path" type=
"input" value=
"websockify" />
174 <label for=
"noVNC_setting_resize">Scaling Mode:
</label>
175 <select id=
"noVNC_setting_resize" name=
"vncResize">
176 <option value=
"off">None
</option>
177 <option value=
"scale">Local Scaling
</option>
178 <option value=
"downscale">Local Downscaling
</option>
179 <option value=
"remote">Remote Resizing
</option>
183 <label for=
"noVNC_setting_repeaterID">Repeater ID:
</label>
184 <input id=
"noVNC_setting_repeaterID" type=
"input" value=
"" />
187 <!-- Stylesheet selection dropdown -->
190 <select id=
"noVNC_setting_stylesheet" name=
"vncStyle">
191 <option value=
"default">default
</option>
195 <!-- Logging selection dropdown -->
198 <select id=
"noVNC_setting_logging" name=
"vncLogging">
204 <input type=
"button" id=
"noVNC_settings_apply" value=
"Apply" class=
"noVNC_submit" />
210 <!-- Connection Controls -->
211 <input type=
"image" alt=
"Connect" src=
"app/images/connect.svg"
212 id=
"noVNC_connect_controls_button" class=
"noVNC_button"
214 <input type=
"image" alt=
"Disconnect" src=
"app/images/disconnect.svg"
215 id=
"noVNC_disconnect_button" class=
"noVNC_button"
216 title=
"Disconnect" />
217 <div class=
"noVNC_vcenter">
218 <div id=
"noVNC_connect_controls" class=
"noVNC_panel">
221 <label for=
"noVNC_setting_host">Host:
</label>
222 <input id=
"noVNC_setting_host" />
225 <label for=
"noVNC_setting_port">Port:
</label>
226 <input id=
"noVNC_setting_port" />
229 <label for=
"noVNC_setting_password">Password:
</label>
230 <input id=
"noVNC_setting_password" type=
"password" />
233 <label for=
"noVNC_setting_token">Token:
</label>
234 <input id=
"noVNC_setting_token" />
238 <input id=
"noVNC_connect_button" type=
"button" value=
"Connect" class=
"noVNC_submit" />
247 </div> <!-- End of noVNC_control_bar -->
249 <!-- Status Dialog -->
250 <div id=
"noVNC_status"></div>
252 <!-- Password Dialog -->
253 <div class=
"noVNC_center">
254 <div id=
"noVNC_password_dlg" class=
"noVNC_panel">
257 <label>Password:
</label>
258 <input id=
"noVNC_password_input" type=
"password" />
261 <input id=
"noVNC_password_button" type=
"button" value=
"Send Password" class=
"noVNC_submit" />
267 <div id=
"noVNC_container">
268 <h1 id=
"noVNC_logo" class=
"noVNC_logo"><span>no
</span><br />VNC
</h1>
270 <!-- HTML5 Canvas -->
271 <div id=
"noVNC_screen">
272 <!-- Note that Google Chrome on Android doesn't respect any of these,
273 html attributes which attempt to disable text suggestions on the
274 on-screen keyboard. Let's hope Chrome implements the ime-mode
275 style for example -->
276 <textarea id=
"noVNC_keyboardinput" autocapitalize=
"off"
277 autocorrect=
"off" autocomplete=
"off" spellcheck=
"false"
278 mozactionhint=
"Enter"></textarea>
280 <canvas id=
"noVNC_canvas" width=
"0" height=
"0">
281 Canvas not supported.
286 <!-- begin scripts -->
287 <script src=
"core/util.js"></script>
288 <script src=
"app/webutil.js"></script>
289 <script src=
"app/ui.js"></script>