mirror of
https://github.com/Kizuren/statusPage.git
synced 2026-01-01 20:14:17 +01:00
UI Improvements.
This commit is contained in:
parent
35031898d5
commit
2c860bbfc2
1 changed files with 4 additions and 4 deletions
|
|
@ -88,9 +88,9 @@ class StatusBar extends HTMLElement {
|
|||
$entry.setAttribute('tabindex', 0);
|
||||
if(point) {
|
||||
$entry.innerHTML = `<div>
|
||||
<strong>${formatDate(point.t)}</strong>
|
||||
<em></em>
|
||||
</div>`;
|
||||
<strong>${formatDate(point.t)}</strong>
|
||||
<em></em>
|
||||
</div>`;
|
||||
if(point.err) {
|
||||
$entry.setAttribute('data-status', 'outage');
|
||||
$entry.querySelector('em').innerText = point.err;
|
||||
|
|
@ -103,7 +103,7 @@ class StatusBar extends HTMLElement {
|
|||
$entry.setAttribute('data-status', 'healthy');
|
||||
}
|
||||
}
|
||||
$entry.querySelector('em').innerText = point.ttfb.toFixed(2)+'ms';
|
||||
$entry.querySelector('em').innerText = `Latency: ${point.ttfb.toFixed(2)}ms`;
|
||||
} else {
|
||||
$entry.setAttribute('data-status', 'none');
|
||||
$entry.innerHTML = `<div><strong>No Data</strong></div>`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue