Improved some usability aspects

This commit is contained in:
Rsl1122 2019-08-21 15:41:13 +03:00
parent db674a7ec5
commit 4706953387
4 changed files with 8 additions and 8 deletions

View File

@ -264,8 +264,8 @@ function createNetworkServerBox(i, server) {
'</div>' + // /column '</div>' + // /column
'</div>' + // /header '</div>' + // /header
'<div class="d-flex align-items-center justify-content-between">' + '<div class="d-flex align-items-center justify-content-between">' +
'<a class="btn bg-light-green ml-2" href="server/' + server.name + '"><i class="fa fa-fw fa-chart-line"></i> Server Analysis</a>' + '<a class="btn col-light-green ml-2" href="server/' + server.name + '"><i class="fa fa-fw fa-chart-line"></i> Server Analysis</a>' +
'<button class="btn col-blue my-2 mr-2" id="server_quick_view_' + i + '">Quick view <i class="fa fa-fw fa-caret-square-right"></i></button>' + '<button class="btn bg-blue my-2 mr-2" id="server_quick_view_' + i + '">Quick view <i class="fa fa-fw fa-caret-square-right"></i></button>' +
'</div>' + // /buttons '</div>' + // /buttons
'</div>' // /card '</div>' // /card
} }

View File

@ -77,8 +77,8 @@ function createAccordionBody(i, session) {
'<td colspan="4">' + '<td colspan="4">' +
'<div class="collapse row" data-parent="#tableAccordion" id="session_t_' + i + '">' + '<div class="collapse row" data-parent="#tableAccordion" id="session_t_' + i + '">' +
'<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">' + '<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">' +
'<p><i class="col-teal far fa-fw fa-clock"></i> Session Ended<span class="float-right"><b>' + session.end + '</b></span></p>' + '<p><i class="col-teal far fa-fw fa-clock"></i> Ended<span class="float-right"><b>' + session.end + '</b></span></p>' +
'<p><i class="col-green far fa-fw fa-clock"></i> Session Length<span class="float-right"><b>' + session.length + '</b></span></p>' + '<p><i class="col-green far fa-fw fa-clock"></i> Length<span class="float-right"><b>' + session.length + '</b></span></p>' +
'<p><i class="col-grey far fa-fw fa-clock"></i> Time AFK<span class="float-right"><b>' + session.afk_time + '</b></span></p>' + '<p><i class="col-grey far fa-fw fa-clock"></i> Time AFK<span class="float-right"><b>' + session.afk_time + '</b></span></p>' +
'<p><i class="col-green fa fa-fw fa-server"></i> Server<span class="float-right"><b>' + session.server_name + '</b></span></p><br>' + '<p><i class="col-green fa fa-fw fa-server"></i> Server<span class="float-right"><b>' + session.server_name + '</b></span></p><br>' +
'<p><i class="col-red fa fa-fw fa-crosshairs"></i> Player Kills<span class="float-right"><b>' + session.player_kills.length + '</b></span></p>' + '<p><i class="col-red fa fa-fw fa-crosshairs"></i> Player Kills<span class="float-right"><b>' + session.player_kills.length + '</b></span></p>' +
@ -97,7 +97,7 @@ function createKillsTable(player_kills) {
var table = '<table class="table mb-0"><tbody>'; var table = '<table class="table mb-0"><tbody>';
if (player_kills.length === 0) { if (player_kills.length === 0) {
table += '<tr><td>No Kills</td><td>-</td><td>-</td></tr>' table += '<tr><td>None</td><td>-</td><td>-</td></tr>'
} }
for (var i = 0; i < player_kills.length; i++) { for (var i = 0; i < player_kills.length; i++) {

View File

@ -351,7 +351,7 @@
class="float-right"><b id="data_unique"></b></span></p> class="float-right"><b id="data_unique"></b></span></p>
<p><i class="col-light-green fa fa-fw fa-users"></i> New Players<span <p><i class="col-light-green fa fa-fw fa-users"></i> New Players<span
class="float-right"><b id="data_new"></b></span></p> class="float-right"><b id="data_new"></b></span></p>
<hr> <p></p>
<p><i class="col-orange fa fa-fw fa-tachometer-alt"></i> Average TPS<span <p><i class="col-orange fa fa-fw fa-tachometer-alt"></i> Average TPS<span
class="float-right"><b id="data_avg_tps"></b></span></p> class="float-right"><b id="data_avg_tps"></b></span></p>
<p><i class="col-red fa fa-fw fa-exclamation-circle"></i> Low TPS Spikes<span <p><i class="col-red fa fa-fw fa-exclamation-circle"></i> Low TPS Spikes<span
@ -420,7 +420,7 @@
class="float-right"><b id="data_most_active_time"></b></span></p> class="float-right"><b id="data_most_active_time"></b></span></p>
<p><i class="far fa-fw fa-clock col-teal"></i> Least Active Time<span <p><i class="far fa-fw fa-clock col-teal"></i> Least Active Time<span
class="float-right"><b id="data_least_active_time"></b></span></p> class="float-right"><b id="data_least_active_time"></b></span></p>
<p><i class="far fa-fw fa-clock col-teal"></i> Total Playtime<span <p><i class="far fa-fw fa-clock col-green"></i> Playtime<span
class="float-right" id="data_total_playtime"></span></p> class="float-right" id="data_total_playtime"></span></p>
<p><i class="far fa-fw fa-clock col-grey"></i> AFK Time<span <p><i class="far fa-fw fa-clock col-grey"></i> AFK Time<span
class="float-right"><span id="data_afk_time"></span> (<span class="float-right"><span id="data_afk_time"></span> (<span

View File

@ -575,7 +575,7 @@
<p><i class="fa fa-fw fa-users col-teal"></i> Server occupied<span <p><i class="fa fa-fw fa-users col-teal"></i> Server occupied<span
class="float-right"><span id="data_server_occupied"></span> (<span class="float-right"><span id="data_server_occupied"></span> (<span
id="data_server_occupied_perc"></span>)</span></p> id="data_server_occupied_perc"></span>)</span></p>
<p><i class="far fa-fw fa-clock col-teal"></i> Total Playtime<span <p><i class="far fa-fw fa-clock col-green"></i> Playtime<span
class="float-right" id="data_total_playtime"></span></p> class="float-right" id="data_total_playtime"></span></p>
<p><i class="far fa-fw fa-clock col-grey"></i> AFK Time<span <p><i class="far fa-fw fa-clock col-grey"></i> AFK Time<span
class="float-right"><span id="data_afk_time"></span> (<span class="float-right"><span id="data_afk_time"></span> (<span