]>
Commit | Line | Data |
---|---|---|
53fc7392 | 1 | <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.1//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile11.dtd"> |
5299db1a | 2 | <html> |
53fc7392 CG |
3 | <head> |
4 | ||
d58f8b51 | 5 | <!-- |
f7ec5b2c | 6 | noVNC example: simple example using default UI |
d58f8b51 JM |
7 | Copyright (C) 2012 Joel Martin |
8 | noVNC is licensed under the LGPL-3 (see LICENSE.txt) | |
9 | This file is licensed under the 2-Clause BSD license (see LICENSE.txt). | |
d595e656 | 10 | --> |
01a9eee9 | 11 | <title>noVNC</title> |
53fc7392 | 12 | |
01a9eee9 JM |
13 | <meta charset="utf-8"> |
14 | ||
15 | <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame | |
16 | Remove this if you use the .htaccess --> | |
17 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
18 | ||
a5df24b4 JM |
19 | <!-- Apple iOS Safari settings --> |
20 | <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | |
01a9eee9 | 21 | <meta name="apple-mobile-web-app-capable" content="yes" /> |
a5df24b4 JM |
22 | <meta names="apple-mobile-web-app-status-bar-style" content="black-translucent" /> |
23 | <!-- App Start Icon --> | |
5299db1a | 24 | <link rel="apple-touch-startup-image" href="images/screen_320x460.png" /> |
a5df24b4 JM |
25 | <!-- For iOS devices set the icon to use if user bookmarks app on their homescreen --> |
26 | <link rel="apple-touch-icon" href="images/screen_57x57.png"> | |
01a9eee9 | 27 | <!-- |
5299db1a | 28 | <link rel="apple-touch-icon-precomposed" href="images/screen_57x57.png" /> |
01a9eee9 | 29 | --> |
a5df24b4 | 30 | |
5299db1a | 31 | |
01a9eee9 JM |
32 | <!-- Stylesheets --> |
33 | <link rel="stylesheet" href="include/base.css" /> | |
53fc7392 | 34 | <link rel="alternate stylesheet" href="include/black.css" TITLE="Black" /> |
01a9eee9 JM |
35 | <link rel="alternate stylesheet" href="include/blue.css" TITLE="Blue" /> |
36 | ||
01a9eee9 | 37 | <!-- |
5299db1a | 38 | <script type='text/javascript' |
01a9eee9 JM |
39 | src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script> |
40 | --> | |
41 | ||
42 | <script src="include/vnc.js"></script> | |
43 | <script src="include/ui.js"></script> | |
44 | ||
5299db1a | 45 | </head> |
65e27ddd | 46 | |
53fc7392 | 47 | <body> |
01a9eee9 JM |
48 | <div id="noVNC-control-bar"> |
49 | <!--noVNC Mobile Device only Buttons--> | |
a5df24b4 | 50 | <div class="noVNC-buttons-left"> |
5299db1a | 51 | <input type="image" src="images/drag.png" |
a5df24b4 | 52 | id="noVNC_view_drag_button" class="noVNC_status_button" |
938daad1 | 53 | title="Move/Drag Viewport" |
a5df24b4 JM |
54 | onclick="UI.setViewDrag();"> |
55 | <div id="noVNC_mobile_buttons"> | |
5299db1a JM |
56 | <input type="image" src="images/mouse_none.png" |
57 | id="noVNC_mouse_button0" class="noVNC_status_button" | |
a5df24b4 | 58 | onclick="UI.setMouseButton(1);"> |
5299db1a JM |
59 | <input type="image" src="images/mouse_left.png" |
60 | id="noVNC_mouse_button1" class="noVNC_status_button" | |
a5df24b4 | 61 | onclick="UI.setMouseButton(2);"> |
5299db1a JM |
62 | <input type="image" src="images/mouse_middle.png" |
63 | id="noVNC_mouse_button2" class="noVNC_status_button" | |
a5df24b4 | 64 | onclick="UI.setMouseButton(4);"> |
5299db1a JM |
65 | <input type="image" src="images/mouse_right.png" |
66 | id="noVNC_mouse_button4" class="noVNC_status_button" | |
a5df24b4 | 67 | onclick="UI.setMouseButton(0);"> |
5299db1a JM |
68 | <input type="image" src="images/keyboard.png" |
69 | id="showKeyboard" class="noVNC_status_button" | |
a5df24b4 JM |
70 | value="Keyboard" title="Show Keyboard" |
71 | onclick="UI.showKeyboard()"/> | |
5299db1a | 72 | <input type="email" |
a7db5059 | 73 | autocapitalize="off" autocorrect="off" |
a5df24b4 | 74 | id="keyboardinput" class="noVNC_status_button" |
938daad1 | 75 | onKeyDown="onKeyDown(event);" onblur="UI.keyInputBlur();"/> |
a5df24b4 | 76 | </div> |
01a9eee9 JM |
77 | </div> |
78 | ||
79 | <!--noVNC Buttons--> | |
608e0f52 | 80 | <div class="noVNC-buttons-right"> |
5299db1a JM |
81 | <input type="image" src="images/ctrlaltdel.png" |
82 | id="sendCtrlAltDelButton" class="noVNC_status_button" | |
83 | title="Send Ctrl-Alt-Del" | |
a5df24b4 | 84 | onclick="UI.sendCtrlAltDel();" /> |
5299db1a | 85 | <input type="image" src="images/clipboard.png" |
a5df24b4 | 86 | id="clipboardButton" class="noVNC_status_button" |
5299db1a | 87 | title="Clipboard" |
c506a481 | 88 | onclick="UI.toggleClipboardPanel();" /> |
5299db1a | 89 | <input type="image" src="images/settings.png" |
c506a481 | 90 | id="settingsButton" class="noVNC_status_button" |
5299db1a | 91 | title="Settings" |
c506a481 | 92 | onclick="UI.toggleSettingsPanel();" /> |
5299db1a | 93 | <input type="image" src="images/connect.png" |
0ce93900 | 94 | id="connectButton" class="noVNC_status_button" |
5299db1a | 95 | title="Connect" |
c506a481 | 96 | onclick="UI.toggleConnectPanel()" /> |
5299db1a | 97 | <input type="image" src="images/disconnect.png" |
a5df24b4 | 98 | id="disconnectButton" class="noVNC_status_button" |
5299db1a | 99 | title="Disconnect" |
a5df24b4 | 100 | onclick="UI.disconnect()" /> |
01a9eee9 JM |
101 | </div> |
102 | ||
0ce93900 JM |
103 | <!-- Description Panel --> |
104 | <!-- Shown by default when hosted at for kanaka.github.com --> | |
105 | <div id="noVNC_description" style="display:none;" class=""> | |
106 | noVNC is a browser based VNC client implemented using HTML5 Canvas | |
107 | and WebSockets. You will either need a VNC server with WebSockets | |
108 | support (such as <a href="http://libvncserver.sourceforge.net/">libvncserver</a>) | |
109 | or you will need to use | |
110 | <a href="https://github.com/kanaka/websockify">websockify</a> | |
111 | to bridge between your browser and VNC server. See the noVNC | |
112 | <a href="https://github.com/kanaka/noVNC">README</a> | |
113 | and <a href="http://kanaka.github.com/noVNC">website</a> | |
114 | for more information. | |
115 | <br /> | |
116 | <input type="button" value="Close" | |
117 | onclick="UI.toggleConnectPanel();"> | |
118 | </div> | |
119 | ||
01a9eee9 JM |
120 | <!-- Clipboard Panel --> |
121 | <div id="noVNC_clipboard" class="triangle-right top"> | |
a5df24b4 | 122 | <textarea id="noVNC_clipboard_text" rows=5 |
01a9eee9 JM |
123 | onfocus="UI.displayBlur();" onblur="UI.displayFocus();" |
124 | onchange="UI.clipSend();"> | |
125 | </textarea> | |
126 | <br /> | |
127 | <input id="noVNC_clipboard_clear_button" type="button" | |
128 | value="Clear" onclick="UI.clipClear();"> | |
129 | </div> | |
130 | ||
131 | <!-- Settings Panel --> | |
a5df24b4 | 132 | <div id="noVNC_settings" class="triangle-right top"> |
01a9eee9 JM |
133 | <span id="noVNC_settings_menu" onmouseover="UI.displayBlur();" |
134 | onmouseout="UI.displayFocus();"> | |
135 | <ul> | |
136 | <li><input id="noVNC_encrypt" type="checkbox"> Encrypt</li> | |
137 | <li><input id="noVNC_true_color" type="checkbox" checked> True Color</li> | |
138 | <li><input id="noVNC_cursor" type="checkbox"> Local Cursor</li> | |
06a9ef0c | 139 | <li><input id="noVNC_clip" type="checkbox"> Clip to Window</li> |
01a9eee9 | 140 | <li><input id="noVNC_shared" type="checkbox"> Shared Mode</li> |
06a9ef0c | 141 | <li><input id="noVNC_view_only" type="checkbox"> View Only</li> |
01a9eee9 | 142 | <li><input id="noVNC_connectTimeout" type="input"> Connect Timeout (s)</li> |
523cc4d6 | 143 | <li><input id="noVNC_path" type="input" value="websockify"> Path</li> |
a997c5fd | 144 | <li><input id="noVNC_repeaterID" type="input" value=""> Repeater ID</li> |
01a9eee9 JM |
145 | <hr> |
146 | <!-- Stylesheet selection dropdown --> | |
147 | <li><label><strong>Style: </strong> | |
148 | <select id="noVNC_stylesheet" name="vncStyle"> | |
149 | <option value="default">default</option> | |
150 | </select></label> | |
151 | </li> | |
152 | ||
153 | <!-- Logging selection dropdown --> | |
154 | <li><label><strong>Logging: </strong> | |
155 | <select id="noVNC_logging" name="vncLogging"> | |
156 | </select></label> | |
157 | </li> | |
158 | <hr> | |
159 | <li><input type="button" id="noVNC_apply" value="Apply" | |
160 | onclick="UI.settingsApply()"></li> | |
161 | </ul> | |
162 | </span> | |
163 | </div> | |
164 | ||
165 | <!-- Connection Panel --> | |
166 | <div id="noVNC_controls" class="triangle-right top"> | |
167 | <ul> | |
168 | <li><label><strong>Host: </strong><input id="noVNC_host" /></label></li> | |
169 | <li><label><strong>Port: </strong><input id="noVNC_port" /></label></li> | |
170 | <li><label><strong>Password: </strong><input id="noVNC_password" type="password" /></label></li> | |
171 | <li><input id="noVNC_connect_button" type="button" value="Connect" onclick="UI.connect();"></li> | |
172 | </ul> | |
173 | </div> | |
174 | ||
175 | </div> <!-- End of noVNC-control-bar --> | |
176 | ||
b70ce077 | 177 | |
01a9eee9 | 178 | <div id="noVNC_screen"> |
b70ce077 JM |
179 | <div id="noVNC_screen_pad"></div> |
180 | ||
181 | <div id="noVNC_status_bar" class="noVNC_status_bar"> | |
01a9eee9 JM |
182 | <div id="noVNC_status">Loading</div> |
183 | </div> | |
5299db1a | 184 | |
b70ce077 | 185 | <h1 id="noVNC_logo"><span>no</span><br />VNC</h1> |
a5df24b4 JM |
186 | |
187 | <!-- HTML5 Canvas --> | |
188 | <div id="noVNC_container"> | |
189 | <canvas id="noVNC_canvas" width="640px" height="20px"> | |
190 | Canvas not supported. | |
191 | </canvas> | |
192 | </div> | |
193 | ||
01a9eee9 | 194 | </div> |
5299db1a | 195 | |
01a9eee9 JM |
196 | <script> |
197 | window.onload = UI.load; | |
198 | </script> | |
53fc7392 | 199 | </body> |
65e27ddd | 200 | </html> |