# HG changeset patch # User Florian Zeitz # Date 1293140458 -3600 # Node ID 5a619d6045a8b92af625d6422c562a80cc84cd6a # Parent d76f47a608ab2c96f12fc500235dc664ca8114c5 mod_admin_web: Prepare for adding more features diff -r d76f47a608ab -r 5a619d6045a8 mod_admin_web/admin_web/www_files/index.html --- a/mod_admin_web/admin_web/www_files/index.html Thu Dec 23 20:48:24 2010 +0000 +++ b/mod_admin_web/admin_web/www_files/index.html Thu Dec 23 22:40:58 2010 +0100 @@ -11,26 +11,37 @@ -
-
-
- -
-
- -
- -
+
+
+
+
+ +
+
+ +
+ +
+
+
-
- Incomming S2S connections: -
    -
    -
    - Outgoing S2S connections: -
      +
      More later
      +
      +
      + Incomming S2S connections: +
        +
        +
        + Outgoing S2S connections: +
          +
          diff -r d76f47a608ab -r 5a619d6045a8 mod_admin_web/admin_web/www_files/js/main.js --- a/mod_admin_web/admin_web/www_files/js/main.js Thu Dec 23 20:48:24 2010 +0000 +++ b/mod_admin_web/admin_web/www_files/js/main.js Thu Dec 23 22:40:58 2010 +0100 @@ -78,7 +78,9 @@ button.value = 'connect'; pass.show(); jid.show(); - $('.container').hide(); + $('#menu').hide(); + $('#adhoc').hide(); + $('#s2sList').hide(); $('#cred label').show(); $('#cred br').show(); $('ul').empty(); @@ -92,7 +94,8 @@ button.value = 'disconnect'; pass.hide(); jid.hide(); - $('.container').show(); + $('#menu').show(); + $('#adhoc').show(); $('#cred label').hide(); $('#cred br').hide(); } @@ -107,7 +110,7 @@ $("#log_toggle").click(function () { $("#log").toggle(); - }); + }); $('#cred').bind('submit', function (event) { var button = $('#connect').get(0); @@ -126,6 +129,17 @@ event.preventDefault(); }); + $('#adhocMenu').click(function () { + $('#s2sList').slideUp(); + $('#adhoc').slideDown(); + event.preventDefault(); + }); + + $('#serverMenu').click(function () { + $('#adhoc').slideUp(); + $('#s2sList').slideDown(); + event.preventDefault(); + }); }); window.onunload = window.onbeforeunload = function() { diff -r d76f47a608ab -r 5a619d6045a8 mod_admin_web/admin_web/www_files/style.css --- a/mod_admin_web/admin_web/www_files/style.css Thu Dec 23 20:48:24 2010 +0000 +++ b/mod_admin_web/admin_web/www_files/style.css Thu Dec 23 22:40:58 2010 +0100 @@ -26,11 +26,10 @@ margin: 2em; padding: 0.5em; border: solid; - float: left; - display: none + float: left } -#login{ +#left { float: left; margin-right: 2em; padding: 1em; @@ -38,10 +37,31 @@ color: #000000 } +#adhoc { + display: none +} + +#s2sList { + display: none +} + #cred input[type="submit"] { margin-left: 0em } +#menu { + display: none +} + +#menu ul { + list-style-type: none; + padding: 0px; +} + +#menu li { + font-size: 20pt +} + #main { float: left }