Logout button instead of link, removed logo.
authorMichael Jumper <zhangmaike@users.sourceforge.net>
Wed, 17 Aug 2011 02:07:25 +0000 (19:07 -0700)
committerMichael Jumper <zhangmaike@users.sourceforge.net>
Wed, 17 Aug 2011 02:07:25 +0000 (19:07 -0700)
src/main/webapp/client.xhtml
src/main/webapp/styles/client.css

index 370803b..25738d8 100644 (file)
 
             <button id="showKeyboard">Show Keyboard</button>
             <button id="ctrlAltDelete">Ctrl-Alt-Delete</button>
+            <button id="logout">Logout</button>
 
             <!-- Logo and status -->
             <img id="status-logo" class="logo" src="images/guacamole-logo-24.png" alt="Guacamole" title="Guacamole ${project.version}"/>
             <span id="state"></span>
 
-            <a href="logout">Logout</a>
         </div>
 
 
                 guac.sendKeyEvent(0, KEYSYM_DELETE);
                 guac.sendKeyEvent(0, KEYSYM_ALT);
                 guac.sendKeyEvent(0, KEYSYM_CTRL);
-            }
+            };
 
+            // Logout
+            var logout = document.getElementById("logout");
+
+            logout.onclick = function() {
+                window.location.href = "logout";
+            };
 
             try {
 
index 28a6290..99a09ae 100644 (file)
@@ -106,11 +106,6 @@ img {
     border: none;
 }
 
-img#license {
-    float: right;
-    margin: 2px;
-}
-
 div#display {
     position: relative;
     width: 640px;