1 <?xml version="1.0" encoding="UTF-8"?>
5 Guacamole - Clientless Remote Desktop
6 Copyright (C) 2010 Michael Jumper
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU Affero General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU Affero General Public License for more details.
18 You should have received a copy of the GNU Affero General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 <html xmlns="http://www.w3.org/1999/xhtml">
25 <link rel="icon" type="image/png" href="images/guacamole-logo-64.png"/>
26 <link rel="stylesheet" type="text/css" href="styles/client.css"/>
27 <link rel="stylesheet" type="text/css" href="styles/keyboard.css"/>
28 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi"/>
29 <meta name="apple-mobile-web-app-capable" content="yes"/>
30 <title>Guacamole ${project.version}</title>
39 <button id="showClipboard">Show Clipboard</button>
40 <div id="clipboardDiv">
43 Text copied/cut within Guacamole will appear here. Changes to the text will affect the remote clipboard, and will be pastable within the remote desktop. Use the textbox below as an interface between the client and server clipboards.
45 <textarea rows="10" cols="40" id="clipboard"></textarea>
48 <button id="showKeyboard">Show Keyboard</button>
49 <button id="ctrlAltDelete">Ctrl-Alt-Delete</button>
50 <button id="logout">Logout</button>
52 <!-- Logo and status -->
53 <img id="status-logo" class="logo" src="images/guacamole-logo-24.png" alt="Guacamole" title="Guacamole ${project.version}"/>
57 <!-- Keyboard event target for platforms with native OSKs -->
58 <textarea id="eventTarget"></textarea>
61 <div id="menuControl"></div>
63 <!-- Scrollable viewport -->
67 <div id="display"></div>
71 <!-- On-screen keyboard -->
72 <div id="keyboardContainer"></div>
75 <div class="dialogOuter">
76 <div class="dialogMiddle">
78 <!-- Status Dialog -->
79 <div id="statusDialog" class="dialog">
80 <p id="statusText"></p>
81 <div class="buttons"><button id="reconnect">Reconnect</button></div>
87 <!-- guacamole-common-js scripts -->
88 <script type="text/javascript" src="guacamole-common-js/keyboard.js"></script>
89 <script type="text/javascript" src="guacamole-common-js/mouse.js"></script>
90 <script type="text/javascript" src="guacamole-common-js/layer.js"></script>
91 <script type="text/javascript" src="guacamole-common-js/tunnel.js"></script>
92 <script type="text/javascript" src="guacamole-common-js/guacamole.js"></script>
93 <script type="text/javascript" src="guacamole-common-js/oskeyboard.js"></script>
95 <!-- guacamole-default-webapp scripts -->
96 <script type="text/javascript" src="scripts/interface.js"></script>
99 <script type="text/javascript"> /* <![CDATA[ */
101 // Start connect after control returns from onload (allow browser
102 // to consider the page loaded).
103 window.onload = function() {
104 window.setTimeout(function() {
108 // If WebSocket available, try to use it.
109 if (window.WebSocket)
110 tunnel = new Guacamole.ChainedTunnel(
111 new Guacamole.WebSocketTunnel("websocket-tunnel"),
112 new Guacamole.HTTPTunnel("tunnel")
115 // If no WebSocket, then use HTTP.
117 tunnel = new Guacamole.HTTPTunnel("tunnel")
119 // Instantiate client
120 var guac = new Guacamole.Client(tunnel);
123 guac.getDisplay().className = "software-cursor";
124 GuacamoleUI.display.appendChild(guac.getDisplay());
127 GuacamoleUI.attach(guac);
131 // Get entire query string, and pass to connect().
132 // Normally, only the "id" parameter is required, but
133 // all parameters should be preserved and passed on for
134 // the sake of authentication.
136 var connect_string = window.location.search.substring(1);
137 guac.connect(connect_string);
141 GuacamoleUI.showError(e.message);