]> git.proxmox.com Git - mirror_novnc.git/blob - vnc.html
Implement XVP UI in HTML
[mirror_novnc.git] / vnc.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4
5 <!--
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).
11
12 Connect parameters are provided in query string:
13 http://example.com/?host=HOST&port=PORT&encrypt=1&true_color=1
14 -->
15 <title>noVNC</title>
16
17 <meta charset="utf-8">
18
19 <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
20 Remove this if you use the .htaccess -->
21 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
22
23 <!-- Apple iOS Safari settings -->
24 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
25 <meta name="apple-mobile-web-app-capable" content="yes" />
26 <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
27 <!-- App Start Icon -->
28 <link rel="apple-touch-startup-image" href="images/screen_320x460.png" />
29 <!-- For iOS devices set the icon to use if user bookmarks app on their homescreen -->
30 <link rel="apple-touch-icon" href="images/screen_57x57.png">
31 <!--
32 <link rel="apple-touch-icon-precomposed" href="images/screen_57x57.png" />
33 -->
34
35
36 <!-- Stylesheets -->
37 <link rel="stylesheet" href="include/base.css" />
38 <link rel="alternate stylesheet" href="include/black.css" TITLE="Black" />
39 <link rel="alternate stylesheet" href="include/blue.css" TITLE="Blue" />
40
41 <!--
42 <script type='text/javascript'
43 src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>
44 -->
45
46 </head>
47
48 <body>
49 <div id="noVNC-control-bar">
50 <div id="noVNC-menu-bar" style="display:none;">
51 </div>
52 <!--noVNC Mobile Device only Buttons-->
53 <div class="noVNC-buttons-left">
54 <input type="image" 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" src="images/mouse_none.png"
59 id="noVNC_mouse_button0" class="noVNC_status_button">
60 <input type="image" src="images/mouse_left.png"
61 id="noVNC_mouse_button1" class="noVNC_status_button">
62 <input type="image" src="images/mouse_middle.png"
63 id="noVNC_mouse_button2" class="noVNC_status_button">
64 <input type="image" src="images/mouse_right.png"
65 id="noVNC_mouse_button4" class="noVNC_status_button">
66 <input type="image" src="images/keyboard.png"
67 id="showKeyboard" class="noVNC_status_button"
68 value="Keyboard" title="Show Keyboard"/>
69 <input type="text" autocapitalize="off" autocorrect="off"
70 id="keyboardinput" class=""/>
71 <div id="noVNC_extra_keys">
72 <input type="image" src="images/showextrakeys.png"
73 id="showExtraKeysButton"
74 class="noVNC_status_button">
75 <input type="image" src="images/ctrl.png"
76 id="toggleCtrlButton"
77 class="noVNC_status_button">
78 <input type="image" src="images/alt.png"
79 id="toggleAltButton"
80 class="noVNC_status_button">
81 <input type="image" src="images/tab.png"
82 id="sendTabButton"
83 class="noVNC_status_button">
84 <input type="image" src="images/esc.png"
85 id="sendEscButton"
86 class="noVNC_status_button">
87 </div>
88 </div>
89 </div>
90
91 <div id="noVNC_status">Loading</div>
92
93 <!--noVNC Buttons-->
94 <div class="noVNC-buttons-right">
95 <input type="image" src="images/ctrlaltdel.png"
96 id="sendCtrlAltDelButton" class="noVNC_status_button"
97 title="Send Ctrl-Alt-Del" />
98 <input type="image" src="images/power.png"
99 id="xvpButton" class="noVNC_status_button"
100 title="Shutdown/Reboot..." />
101 <input type="image" src="images/clipboard.png"
102 id="clipboardButton" class="noVNC_status_button"
103 title="Clipboard" />
104 <input type="image" src="images/settings.png"
105 id="settingsButton" class="noVNC_status_button"
106 title="Settings" />
107 <input type="image" src="images/connect.png"
108 id="connectButton" class="noVNC_status_button"
109 title="Connect" />
110 <input type="image" src="images/disconnect.png"
111 id="disconnectButton" class="noVNC_status_button"
112 title="Disconnect" />
113 </div>
114
115 <!-- Description Panel -->
116 <!-- Shown by default when hosted at for kanaka.github.com -->
117 <div id="noVNC_description" style="display:none;" class="">
118 noVNC is a browser based VNC client implemented using HTML5 Canvas
119 and WebSockets. You will either need a VNC server with WebSockets
120 support (such as <a href="http://libvncserver.sourceforge.net/">libvncserver</a>)
121 or you will need to use
122 <a href="https://github.com/kanaka/websockify">websockify</a>
123 to bridge between your browser and VNC server. See the noVNC
124 <a href="https://github.com/kanaka/noVNC">README</a>
125 and <a href="http://kanaka.github.com/noVNC">website</a>
126 for more information.
127 <br />
128 <input id="descriptionButton" type="button" value="Close">
129 </div>
130
131 <!-- Popup Status Panel -->
132 <div id="noVNC_popup_status_panel" class="">
133 </div>
134
135 <!-- Clipboard Panel -->
136 <div id="noVNC_clipboard" class="triangle-right top">
137 <textarea id="noVNC_clipboard_text" rows=5>
138 </textarea>
139 <br />
140 <input id="noVNC_clipboard_clear_button" type="button"
141 value="Clear">
142 </div>
143
144 <!-- XVP Shutdown/Reboot Panel -->
145 <div id="noVNC_xvp" class="triangle-right top">
146 <span id="noVNC_xvp_menu">
147 <input type="button" id="xvpShutdownButton" value="Shutdown" />
148 <input type="button" id="xvpRebootButton" value="Reboot" />
149 <input type="button" id="xvpResetButton" value="Reset" />
150 </span>
151 </div>
152
153 <!-- Settings Panel -->
154 <div id="noVNC_settings" class="triangle-right top">
155 <span id="noVNC_settings_menu">
156 <ul>
157 <li><input id="noVNC_encrypt" type="checkbox"> Encrypt</li>
158 <li><input id="noVNC_true_color" type="checkbox" checked> True Color</li>
159 <li><input id="noVNC_cursor" type="checkbox"> Local Cursor</li>
160 <li><input id="noVNC_clip" type="checkbox"> Clip to Window</li>
161 <li><input id="noVNC_shared" type="checkbox"> Shared Mode</li>
162 <li><input id="noVNC_view_only" type="checkbox"> View Only</li>
163 <li><input id="noVNC_path" type="input" value="websockify"> Path</li>
164 <li><input id="noVNC_repeaterID" type="input" value=""> Repeater ID</li>
165 <hr>
166 <!-- Stylesheet selection dropdown -->
167 <li><label><strong>Style: </strong>
168 <select id="noVNC_stylesheet" name="vncStyle">
169 <option value="default">default</option>
170 </select></label>
171 </li>
172
173 <!-- Logging selection dropdown -->
174 <li><label><strong>Logging: </strong>
175 <select id="noVNC_logging" name="vncLogging">
176 </select></label>
177 </li>
178 <hr>
179 <li><input type="button" id="noVNC_apply" value="Apply"></li>
180 </ul>
181 </span>
182 </div>
183
184 <!-- Connection Panel -->
185 <div id="noVNC_controls" class="triangle-right top">
186 <ul>
187 <li><label><strong>Host: </strong><input id="noVNC_host" /></label></li>
188 <li><label><strong>Port: </strong><input id="noVNC_port" /></label></li>
189 <li><label><strong>Password: </strong><input id="noVNC_password" type="password" /></label></li>
190 <li><input id="noVNC_connect_button" type="button" value="Connect"></li>
191 </ul>
192 </div>
193
194 </div> <!-- End of noVNC-control-bar -->
195
196
197 <div id="noVNC_screen">
198 <div id="noVNC_screen_pad"></div>
199
200 <h1 id="noVNC_logo"><span>no</span><br />VNC</h1>
201
202 <!-- HTML5 Canvas -->
203 <div id="noVNC_container">
204 <canvas id="noVNC_canvas" width="640px" height="20px">
205 Canvas not supported.
206 </canvas>
207 </div>
208
209 </div>
210 <script src="include/util.js"></script>
211 <script src="include/ui.js"></script>
212
213 </body>
214 </html>