mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 07:19:05 +02:00
fix for stats styling
This commit is contained in:
parent
ff788a340b
commit
49fd413722
2 changed files with 7 additions and 2 deletions
|
@ -40,6 +40,10 @@ span.port {
|
||||||
color: #666666;
|
color: #666666;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.stats-key {
|
||||||
|
width: 400px;
|
||||||
|
}
|
||||||
|
|
||||||
.stale {
|
.stale {
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
|
@ -21,8 +21,9 @@ $(document).ready(function(){
|
||||||
|
|
||||||
$.each(json, function(key, value) {
|
$.each(json, function(key, value) {
|
||||||
statsTableBody += "<tr>";
|
statsTableBody += "<tr>";
|
||||||
statsTableBody += "<td>" + key + "</td>";
|
statsTableBody += "<td class='stats-key'>" + key + "</td>";
|
||||||
statsTableBody += "<td>" + value + "</td>";
|
var formattedValue = (typeof value == 'number' ? value.toLocaleString() : value);
|
||||||
|
statsTableBody += "<td>" + formattedValue + "</td>";
|
||||||
statsTableBody += "</tr>";
|
statsTableBody += "</tr>";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue