6 noVNC example: simple example using default UI
7 Copyright (C) 2012 Joel Martin
8 Copyright (C) 2013 Samuel Mannehed for Cendio AB
9 noVNC is licensed under the MPL 2.0 (see LICENSE.txt)
10 This file is licensed under the 2-Clause BSD license (see LICENSE.txt).
12 Connect parameters are provided in query string:
13 http://example.com/?host=HOST&port=PORT&encrypt=1&true_color=1
15 http://example.com/#host=HOST&port=PORT&encrypt=1&true_color=1
19 <meta charset=
"utf-8">
21 <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
22 Remove this if you use the .htaccess -->
23 <meta http-equiv=
"X-UA-Compatible" content=
"IE=edge,chrome=1">
25 <!-- Apple iOS Safari settings -->
26 <meta name=
"viewport" content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
27 <meta name=
"apple-mobile-web-app-capable" content=
"yes" />
28 <meta name=
"apple-mobile-web-app-status-bar-style" content=
"black-translucent" />
29 <!-- App Start Icon -->
30 <link rel=
"apple-touch-startup-image" href=
"images/screen_320x460.png" />
31 <!-- For iOS devices set the icon to use if user bookmarks app on their homescreen -->
32 <link rel=
"apple-touch-icon" href=
"images/screen_57x57.png">
34 <link rel="apple-touch-icon-precomposed" href="images/screen_57x57.png" />
39 <link rel=
"stylesheet" href=
"include/base.css" />
40 <link rel=
"alternate stylesheet" href=
"include/black.css" TITLE=
"Black" />
41 <link rel=
"alternate stylesheet" href=
"include/blue.css" TITLE=
"Blue" />
44 <script type='text/javascript'
45 src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>
51 <div id=
"noVNC-control-bar" class=
"noVNC_status_normal">
52 <!--noVNC Mobile Device only Buttons-->
53 <div class=
"noVNC-buttons-left">
54 <input type=
"image" alt=
"viewport drag" src=
"images/drag.png"
55 id=
"noVNC_view_drag_button" class=
"noVNC_status_button"
56 title=
"Move/Drag Viewport">
57 <div id=
"noVNC_mobile_buttons">
58 <input type=
"image" alt=
"No mousebutton" src=
"images/mouse_none.png"
59 id=
"noVNC_mouse_button0" class=
"noVNC_status_button">
60 <input type=
"image" alt=
"Left mousebutton" src=
"images/mouse_left.png"
61 id=
"noVNC_mouse_button1" class=
"noVNC_status_button">
62 <input type=
"image" alt=
"Middle mousebutton" src=
"images/mouse_middle.png"
63 id=
"noVNC_mouse_button2" class=
"noVNC_status_button">
64 <input type=
"image" alt=
"Right mousebutton" src=
"images/mouse_right.png"
65 id=
"noVNC_mouse_button4" class=
"noVNC_status_button">
66 <input type=
"image" alt=
"Keyboard" src=
"images/keyboard.png"
67 id=
"showKeyboard" class=
"noVNC_status_button"
68 value=
"Keyboard" title=
"Show Keyboard"/>
69 <!-- Note that Google Chrome on Android doesn't respect any of these,
70 html attributes which attempt to disable text suggestions on the
71 on-screen keyboard. Let's hope Chrome implements the ime-mode
73 <textarea id=
"keyboardinput" autocapitalize=
"off"
74 autocorrect=
"off" autocomplete=
"off" spellcheck=
"false"
75 mozactionhint=
"Enter"></textarea>
76 <div id=
"noVNC_extra_keys">
77 <input type=
"image" alt=
"Extra keys" src=
"images/showextrakeys.png"
78 id=
"showExtraKeysButton" class=
"noVNC_status_button">
79 <input type=
"image" alt=
"Ctrl" src=
"images/ctrl.png"
80 id=
"toggleCtrlButton" class=
"noVNC_status_button">
81 <input type=
"image" alt=
"Alt" src=
"images/alt.png"
82 id=
"toggleAltButton" class=
"noVNC_status_button">
83 <input type=
"image" alt=
"Tab" src=
"images/tab.png"
84 id=
"sendTabButton" class=
"noVNC_status_button">
85 <input type=
"image" alt=
"Esc" src=
"images/esc.png"
86 id=
"sendEscButton" class=
"noVNC_status_button">
91 <div id=
"noVNC_status"></div>
94 <div class=
"noVNC-buttons-right">
95 <input type=
"image" alt=
"Ctrl+Alt+Del" src=
"images/ctrlaltdel.png"
96 id=
"sendCtrlAltDelButton" class=
"noVNC_status_button"
97 title=
"Send Ctrl-Alt-Del" />
98 <input type=
"image" alt=
"Shutdown/Reboot" src=
"images/power.png"
99 id=
"xvpButton" class=
"noVNC_status_button"
100 title=
"Shutdown/Reboot..." />
101 <input type=
"image" alt=
"Clipboard" src=
"images/clipboard.png"
102 id=
"clipboardButton" class=
"noVNC_status_button"
104 <input type=
"image" alt=
"Fullscreen" src=
"images/fullscreen.png"
105 id=
"fullscreenButton" class=
"noVNC_status_button"
106 title=
"Fullscreen" />
107 <input type=
"image" alt=
"Settings" src=
"images/settings.png"
108 id=
"settingsButton" class=
"noVNC_status_button"
110 <input type=
"image" alt=
"Connect" src=
"images/connect.png"
111 id=
"connectButton" class=
"noVNC_status_button"
113 <input type=
"image" alt=
"Disconnect" src=
"images/disconnect.png"
114 id=
"disconnectButton" class=
"noVNC_status_button"
115 title=
"Disconnect" />
118 <!-- Description Panel -->
119 <!-- Shown by default when hosted at for kanaka.github.com -->
120 <div id=
"noVNC_description" class=
"">
121 noVNC is a browser based VNC client implemented using HTML5 Canvas
122 and WebSockets. You will either need a VNC server with WebSockets
123 support (such as
<a href=
"http://libvncserver.sourceforge.net/">libvncserver
</a>)
124 or you will need to use
125 <a href=
"https://github.com/kanaka/websockify">websockify
</a>
126 to bridge between your browser and VNC server. See the noVNC
127 <a href=
"https://github.com/kanaka/noVNC">README
</a>
128 and
<a href=
"http://kanaka.github.com/noVNC">website
</a>
129 for more information.
131 <input id=
"descriptionButton" type=
"button" value=
"Close">
134 <!-- Popup Status -->
135 <div id=
"noVNC_popup_status" class=
"">
138 <!-- Clipboard Panel -->
139 <div id=
"noVNC_clipboard" class=
"triangle-right top">
140 <textarea id=
"noVNC_clipboard_text" rows=
5>
143 <input id=
"noVNC_clipboard_clear_button" type=
"button"
147 <!-- XVP Shutdown/Reboot Panel -->
148 <div id=
"noVNC_xvp" class=
"triangle-right top">
149 <span id=
"noVNC_xvp_menu">
150 <input type=
"button" id=
"xvpShutdownButton" value=
"Shutdown" />
151 <input type=
"button" id=
"xvpRebootButton" value=
"Reboot" />
152 <input type=
"button" id=
"xvpResetButton" value=
"Reset" />
156 <!-- Settings Panel -->
157 <div id=
"noVNC_settings" class=
"triangle-right top">
158 <span id=
"noVNC_settings_menu">
160 <li><input id=
"noVNC_encrypt" type=
"checkbox"> Encrypt
</li>
161 <li><input id=
"noVNC_true_color" type=
"checkbox" checked
> True Color
</li>
162 <li><input id=
"noVNC_cursor" type=
"checkbox"> Local Cursor
</li>
163 <li><input id=
"noVNC_clip" type=
"checkbox"> Clip to Window
</li>
164 <li><input id=
"noVNC_shared" type=
"checkbox"> Shared Mode
</li>
165 <li><input id=
"noVNC_view_only" type=
"checkbox"> View Only
</li>
167 <li><input id=
"noVNC_path" type=
"input" value=
"websockify"> Path
</li>
169 <select id=
"noVNC_resize" name=
"vncResize">
170 <option value=
"off">None
</option>
171 <option value=
"scale">Local Scaling
</option>
172 <option value=
"downscale">Local Downscaling
</option>
173 <option value=
"remote">Remote Resizing
</option>
174 </select> Scaling Mode
</label>
176 <li><input id=
"noVNC_repeaterID" type=
"input" value=
""> Repeater ID
</li>
178 <!-- Stylesheet selection dropdown -->
179 <li><label><strong>Style:
</strong>
180 <select id=
"noVNC_stylesheet" name=
"vncStyle">
181 <option value=
"default">default
</option>
185 <!-- Logging selection dropdown -->
186 <li><label><strong>Logging:
</strong>
187 <select id=
"noVNC_logging" name=
"vncLogging">
191 <li><input type=
"button" id=
"noVNC_apply" value=
"Apply"></li>
196 <!-- Connection Panel -->
197 <div id=
"noVNC_controls" class=
"triangle-right top">
199 <li><label><strong>Host:
</strong><input id=
"noVNC_host" /></label></li>
200 <li><label><strong>Port:
</strong><input id=
"noVNC_port" /></label></li>
201 <li><label><strong>Password:
</strong><input id=
"noVNC_password" type=
"password" /></label></li>
202 <li><label><strong>Token:
</strong><input id=
"noVNC_token"/></label></li>
203 <li><input id=
"noVNC_connect_button" type=
"button" value=
"Connect"></li>
207 </div> <!-- End of noVNC-control-bar -->
210 <div id=
"noVNC_screen">
211 <h1 id=
"noVNC_logo"><span>no
</span><br />VNC
</h1>
213 <!-- HTML5 Canvas -->
214 <div id=
"noVNC_container">
215 <canvas id=
"noVNC_canvas" width=
"0" height=
"0">
216 Canvas not supported.
221 <script src=
"include/util.js"></script>
222 <script src=
"include/ui.js"></script>