Restore descriptive status bar text, keep live countdown
Browse files- index.html +2 -2
index.html
CHANGED
|
@@ -311,10 +311,10 @@ function formatCountdown(ms) {
|
|
| 311 |
|
| 312 |
function renderStatusBar() {
|
| 313 |
if (!lastUsage) return;
|
| 314 |
-
const { used, cap
|
| 315 |
const dot = used >= cap ? '馃敶' : '馃煝';
|
| 316 |
const countdown = formatCountdown(msUntilUtcMidnight());
|
| 317 |
-
statusBar.textContent = `${dot} ${used}/${cap}
|
| 318 |
}
|
| 319 |
|
| 320 |
function updateGlobalUsage(usage) {
|
|
|
|
| 311 |
|
| 312 |
function renderStatusBar() {
|
| 313 |
if (!lastUsage) return;
|
| 314 |
+
const { used, cap } = lastUsage;
|
| 315 |
const dot = used >= cap ? '馃敶' : '馃煝';
|
| 316 |
const countdown = formatCountdown(msUntilUtcMidnight());
|
| 317 |
+
statusBar.textContent = `${dot} Free public demo 路 ${used}/${cap} messages used today 路 resets in ${countdown}`;
|
| 318 |
}
|
| 319 |
|
| 320 |
function updateGlobalUsage(usage) {
|