Working multiple-config login stub.

This commit is contained in:
Michael Jumper
2011-08-12 21:40:07 -07:00
parent 9ef50a1ce7
commit e2e110b12f
8 changed files with 240 additions and 46 deletions

View File

@@ -91,16 +91,6 @@
new Guacamole.HTTPTunnel("tunnel")
);
try {
// Connect client
guac.connect(data);
}
catch (e) {
// TODO: Handle exception ...
}
var menu = document.getElementById("menu");
var logo = document.getElementById("status-logo");
@@ -325,6 +315,23 @@
guac.sendKeyEvent(0, KEYSYM_CTRL);
}
try {
// Get ID
var url = window.location.href;
var query = url.indexOf("?");
var id = url.substring(query+1);
// Connect client
guac.connect("id=" + encodeURIComponent(id));
}
catch (e) {
// TODO: Handle exception ...
}
/* ]]> */ </script>
</body>