]>
git.proxmox.com Git - mirror_novnc.git/blob - vnc.html
4f6aa876272eeedef604506de1a159305f50d65c
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"><div class=
"noVNC_scroll">
56 <!-- Drag/Pan the viewport -->
57 <input type=
"image" alt=
"viewport drag" src=
"app/images/drag.svg"
58 id=
"noVNC_view_drag_button" class=
"noVNC_button noVNC_hidden"
59 title=
"Move/Drag Viewport" />
61 <!--noVNC Touch Device only buttons-->
62 <div id=
"noVNC_mobile_buttons">
63 <input type=
"image" alt=
"No mousebutton" src=
"app/images/mouse_none.svg"
64 id=
"noVNC_mouse_button0" class=
"noVNC_button" />
65 <input type=
"image" alt=
"Left mousebutton" src=
"app/images/mouse_left.svg"
66 id=
"noVNC_mouse_button1" class=
"noVNC_button" />
67 <input type=
"image" alt=
"Middle mousebutton" src=
"app/images/mouse_middle.svg"
68 id=
"noVNC_mouse_button2" class=
"noVNC_button" />
69 <input type=
"image" alt=
"Right mousebutton" src=
"app/images/mouse_right.svg"
70 id=
"noVNC_mouse_button4" class=
"noVNC_button" />
71 <input type=
"image" alt=
"Keyboard" src=
"app/images/keyboard.svg"
72 id=
"noVNC_keyboard_button" class=
"noVNC_button"
73 value=
"Keyboard" title=
"Show Keyboard" />
76 <!-- Extra manual keys -->
77 <div id=
"noVNC_extra_keys">
78 <input type=
"image" alt=
"Extra keys" src=
"app/images/toggleextrakeys.svg"
79 id=
"noVNC_toggle_extra_keys_button" class=
"noVNC_button" />
80 <div class=
"noVNC_vcenter">
81 <div id=
"noVNC_modifiers" class=
"noVNC_panel">
82 <input type=
"image" alt=
"Ctrl" src=
"app/images/ctrl.svg"
83 id=
"noVNC_toggle_ctrl_button" class=
"noVNC_button" />
84 <input type=
"image" alt=
"Alt" src=
"app/images/alt.svg"
85 id=
"noVNC_toggle_alt_button" class=
"noVNC_button" />
86 <input type=
"image" alt=
"Tab" src=
"app/images/tab.svg"
87 id=
"noVNC_send_tab_button" class=
"noVNC_button" />
88 <input type=
"image" alt=
"Esc" src=
"app/images/esc.svg"
89 id=
"noVNC_send_esc_button" class=
"noVNC_button" />
94 <!-- Send Ctrl+Alt+Delete -->
95 <input type=
"image" alt=
"Ctrl+Alt+Del" src=
"app/images/ctrlaltdel.svg"
96 id=
"noVNC_send_ctrl_alt_del_button" class=
"noVNC_button"
97 title=
"Send Ctrl-Alt-Del" />
99 <!-- XVP Shutdown/Reboot -->
100 <input type=
"image" alt=
"Shutdown/Reboot" src=
"app/images/power.svg"
101 id=
"noVNC_xvp_button" class=
"noVNC_button"
102 title=
"Shutdown/Reboot..." />
103 <div class=
"noVNC_vcenter">
104 <div id=
"noVNC_xvp" class=
"noVNC_panel">
105 <input type=
"button" id=
"noVNC_xvp_shutdown_button" value=
"Shutdown" />
106 <input type=
"button" id=
"noVNC_xvp_reboot_button" value=
"Reboot" />
107 <input type=
"button" id=
"noVNC_xvp_reset_button" value=
"Reset" />
112 <input type=
"image" alt=
"Clipboard" src=
"app/images/clipboard.svg"
113 id=
"noVNC_clipboard_button" class=
"noVNC_button"
115 <div class=
"noVNC_vcenter">
116 <div id=
"noVNC_clipboard" class=
"noVNC_panel">
117 <textarea id=
"noVNC_clipboard_text" rows=
5>
120 <input id=
"noVNC_clipboard_clear_button" type=
"button"
121 value=
"Clear" class=
"noVNC_submit" />
125 <!-- Toggle fullscreen -->
126 <input type=
"image" alt=
"Fullscreen" src=
"app/images/fullscreen.svg"
127 id=
"noVNC_fullscreen_button" class=
"noVNC_button noVNC_hidden"
128 title=
"Fullscreen" />
131 <input type=
"image" alt=
"Settings" src=
"app/images/settings.svg"
132 id=
"noVNC_settings_button" class=
"noVNC_button"
134 <div class=
"noVNC_vcenter">
135 <div id=
"noVNC_settings" class=
"noVNC_panel">
137 <li><input id=
"noVNC_setting_encrypt" type=
"checkbox" /> Encrypt
</li>
138 <li><input id=
"noVNC_setting_true_color" type=
"checkbox" checked
/> True Color
</li>
139 <li><input id=
"noVNC_setting_cursor" type=
"checkbox" /> Local Cursor
</li>
140 <li><input id=
"noVNC_setting_clip" type=
"checkbox" /> Clip to Window
</li>
141 <li><input id=
"noVNC_setting_shared" type=
"checkbox" /> Shared Mode
</li>
142 <li><input id=
"noVNC_setting_view_only" type=
"checkbox" /> View Only
</li>
144 <li><input id=
"noVNC_setting_path" type=
"input" value=
"websockify" /> Path
</li>
146 <select id=
"noVNC_setting_resize" name=
"vncResize">
147 <option value=
"off">None
</option>
148 <option value=
"scale">Local Scaling
</option>
149 <option value=
"downscale">Local Downscaling
</option>
150 <option value=
"remote">Remote Resizing
</option>
151 </select> Scaling Mode
</label>
153 <li><input id=
"noVNC_setting_repeaterID" type=
"input" value=
"" /> Repeater ID
</li>
155 <!-- Stylesheet selection dropdown -->
156 <li><label><strong>Style:
</strong>
157 <select id=
"noVNC_setting_stylesheet" name=
"vncStyle">
158 <option value=
"default">default
</option>
161 <!-- Logging selection dropdown -->
162 <li><label><strong>Logging:
</strong>
163 <select id=
"noVNC_setting_logging" name=
"vncLogging">
167 <li><input type=
"button" id=
"noVNC_settings_apply" value=
"Apply" class=
"noVNC_submit" /></li>
172 <!-- Connection Controls -->
173 <input type=
"image" alt=
"Connect" src=
"app/images/connect.svg"
174 id=
"noVNC_connect_controls_button" class=
"noVNC_button"
176 <input type=
"image" alt=
"Disconnect" src=
"app/images/disconnect.svg"
177 id=
"noVNC_disconnect_button" class=
"noVNC_button"
178 title=
"Disconnect" />
179 <div class=
"noVNC_vcenter">
180 <div id=
"noVNC_connect_controls" class=
"noVNC_panel">
182 <li><label><strong>Host:
</strong><input id=
"noVNC_setting_host" /></label></li>
183 <li><label><strong>Port:
</strong><input id=
"noVNC_setting_port" /></label></li>
184 <li><label><strong>Password:
</strong><input id=
"noVNC_setting_password" type=
"password" /></label></li>
185 <li><label><strong>Token:
</strong><input id=
"noVNC_setting_token" /></label></li>
186 <li><input id=
"noVNC_connect_button" type=
"button" value=
"Connect" class=
"noVNC_submit" /></li>
192 </div> <!-- End of noVNC_control_bar -->
194 <!-- Status Dialog -->
195 <div id=
"noVNC_status"></div>
197 <!-- Password Dialog -->
198 <div class=
"noVNC_center">
199 <div id=
"noVNC_password_dlg" class=
"noVNC_panel">
201 <li><label><strong>Password:
</strong><input id=
"noVNC_password_input" type=
"password" /></label></li>
202 <li><input id=
"noVNC_password_button" type=
"button" value=
"Send Password" class=
"noVNC_submit" /></li>
207 <div id=
"noVNC_container">
208 <h1 id=
"noVNC_logo"><span>no
</span><br />VNC
</h1>
210 <!-- HTML5 Canvas -->
211 <div id=
"noVNC_screen">
212 <!-- Note that Google Chrome on Android doesn't respect any of these,
213 html attributes which attempt to disable text suggestions on the
214 on-screen keyboard. Let's hope Chrome implements the ime-mode
215 style for example -->
216 <textarea id=
"noVNC_keyboardinput" autocapitalize=
"off"
217 autocorrect=
"off" autocomplete=
"off" spellcheck=
"false"
218 mozactionhint=
"Enter"></textarea>
220 <canvas id=
"noVNC_canvas" width=
"0" height=
"0">
221 Canvas not supported.
226 <!-- begin scripts -->
227 <script src=
"core/util.js"></script>
228 <script src=
"app/webutil.js"></script>
229 <script src=
"app/ui.js"></script>