home: add marquee, finished statusline

This commit is contained in:
Agahnim 2026-03-23 11:24:30 +01:00
parent 12b390d068
commit 68fd5d70c5
3 changed files with 68 additions and 5 deletions

View file

@ -20,5 +20,21 @@
<pink-statusbar>
<status-dot></status-dot>
<username>Online</username>
<current-date></current-date>
</pink-statusbar>
</navbar>
</navbar>
<script>
const dateEl = document.querySelector('current-date');
if (dateEl) {
const update = () => {
const now = new Date();
const h = String(now.getHours()).padStart(2, '0');
const m = String(now.getMinutes()).padStart(2, '0');
const s = String(now.getSeconds()).padStart(2, '0');
dateEl.textContent = `${h}:${m}:${s}`;
};
update();
setInterval(update, 1000);
}
</script>