<head>
<link rel="icon" type="image/png" href="images/guacamole-logo-64.png"/>
+ <link rel="apple-touch-icon" type="image/png" href="images/guacamole-logo-64.png"/>
<link rel="stylesheet" type="text/css" href="styles/login.css"/>
<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"/>
<title>Guacamole ${project.version}</title>
// with the given id.
function getClientURL(id) {
- // Get parameters from query string
- var parameters = window.location.search.substring(1);
-
- // Construct URL for client, including any additional
- // parameters from the query string
- var client_url = "client.xhtml?id=" + encodeURIComponent(id);
- if (parameters) client_url += "&" + parameters;
-
- return client_url;
+ // Construct URL for client with given id
+ return "client.xhtml?id=" + encodeURIComponent(id);
}
// authenticated.
function resetUI() {
+ // Get parameters from query string
+ var parameters = window.location.search.substring(1);
+
var configs;
try {
- configs = getConfigList();
+ configs = getConfigList(parameters);
}
catch (e) {
var loginUI = document.getElementById("login-ui");
var connectionListUI = document.getElementById("connection-list-ui");
var logout = document.getElementById("logout");
+ var username = document.getElementById("username");
+ var password = document.getElementById("password");
logout.onclick = function() {
window.location.href = "logout";
loginForm.onsubmit = function() {
- var username = document.getElementById("username");
- var password = document.getElementById("password");
+ // Get parameters from query string
+ var parameters = window.location.search.substring(1);
+ // Get username and password from form
var data =
"username=" + encodeURIComponent(username.value)
+ "&password=" + encodeURIComponent(password.value)
+ // Include query parameters in submission data
+ if (parameters) data += "&" + parameters;
+
try {
// Log in
}
+ // Turn off autocorrect and autocapitalization on usename
+ username.setAttribute("autocorrect", "off");
+ username.setAttribute("autocapitalize", "off");
+
resetUI();
/* ]]> */ </script>