Skip to content

Commit

Permalink
New jquery theme, accordian reads plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
greghaynes committed May 28, 2010
1 parent 29495a6 commit ed9b6b0
Show file tree
Hide file tree
Showing 32 changed files with 1,287 additions and 419 deletions.
5 changes: 4 additions & 1 deletion tools/http/admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ <h1>XSBS Admin Panel</h1>
<li>Clients: <span id="status_clients"></span> (<span id="status_players"></span> players, <span id="status_spectators"></span> spectatrs)</li>
</ul>
</div>
<div id="configuration-tab"><h3>Plugins:</h3><div id="config-plugins-list"></div></div>
<div id="configuration-tab"><h3>Plugins:</h3>
<div id="config-plugins-accordion">
</div>
</div>
</div>
</div>
<div id="alerts"></div>
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tools/http/css/images/ui-icons_222222_256x240.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tools/http/css/images/ui-icons_228ef1_256x240.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tools/http/css/images/ui-icons_ef8c08_256x240.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tools/http/css/images/ui-icons_ffd27a_256x240.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
88 changes: 47 additions & 41 deletions tools/http/css/jquery-ui.css

Large diffs are not rendered by default.

28 changes: 2 additions & 26 deletions tools/http/css/main.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
body
{
margin: 0;
margin-left: 20px;
margin-right: 20px;
padding: 0;
}

Expand All @@ -9,12 +10,6 @@ h1
margin: 10px;
}

h3
{
padding: 10px;
margin: 0;
}

.alert_box
{
background: #FFF;
Expand All @@ -35,7 +30,6 @@ h3
padding-top: 20px;
padding-bottom: 0;
margin-bottom: 0;
height: 40px;
width: 750px;
margin-left: auto;
margin-right: auto;
Expand All @@ -55,26 +49,8 @@ h3
margin: 0;
}

#main_content
{
width: 750px;
margin-left: auto;
margin-right: auto;
margin-top: 0;
padding: 0;
padding-left: 10px;
height: 50px;
border: 3px solid black;
min-height: 500px;
}

#login_status
{
color: red;
}

#tabs
{
margin: 50px;
}

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
486 changes: 486 additions & 0 deletions tools/http/css/ui-lightness/jquery-ui-1.8.1.custom.css

Large diffs are not rendered by default.

1,082 changes: 732 additions & 350 deletions tools/http/js/jquery-ui.js

Large diffs are not rendered by default.

17 changes: 16 additions & 1 deletion tools/http/js/xsbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,23 @@ function enableTopNav(hostname, username, password)
$('#topnav_logout').click(function() { window.location.reload(); });
}

function configPageAddPlugin(hostname, username, password, plugin_name) {
$("<h3><a href=\"#\">" + plugin_name + "</a></h3>").appendTo("#config-plugins-accordion");
$("<div>Content about " + plugin_name + "</div>").appendTo("#config-plugins-accordion");
}

function configPage(hostname, username, password) {
$('#config-plugins-list').html('Got a valid login');
$.getJSON('http://' + hostname + '/json/admin/config?username=' + username + '&password=' + password, function(data) {
if(data.hasOwnProperty('plugins'))
{
$.each(data.plugins, function(i, plugin_name) {
configPageAddPlugin(hostname, username, password, plugin_name);
});
$("#config-plugins-accordion").accordion();
}
else
alert("Error");
});
}

function configPageInvalidLogin() {
Expand Down

0 comments on commit ed9b6b0

Please sign in to comment.