From a9c2f5ab8d83a91d0e65e5e21960f0bd1ce2032b Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 3 Nov 2012 18:38:14 -0700 Subject: [PATCH] New, fancy connection UI. --- guacamole/src/main/webapp/index.xhtml | 99 ++++++++++++------- .../src/main/webapp/scripts/interface.js | 41 ++++++++ guacamole/src/main/webapp/styles/login.css | 98 +++++++++++++++--- 3 files changed, 190 insertions(+), 48 deletions(-) diff --git a/guacamole/src/main/webapp/index.xhtml b/guacamole/src/main/webapp/index.xhtml index 68926d9c8..87d14ce0a 100644 --- a/guacamole/src/main/webapp/index.xhtml +++ b/guacamole/src/main/webapp/index.xhtml @@ -71,22 +71,14 @@
- -

- - Available Connections -

- - - - - - - - - - -
Name
+ +

Recent Connections

+
+
+ +

Other Connections

+
+
@@ -139,40 +131,75 @@ } // Remove all rows from connections list - var tbody = document.getElementById("connections-tbody"); - tbody.innerHTML = ""; + var recent_connections = document.getElementById("recent-connections"); + var other_connections = document.getElementById("other-connections"); - // Add one row per connection + // Get thumbnail set from local storage + var thumbnails = {}; + try { + thumbnails = JSON.parse(localStorage.getItem("GUAC_THUMBNAILS")); + } + catch (e) { + } + for (var test in thumbnails) + console.log(test); + + // Add connection icons for (var i=0; i