diff --git a/index.html b/index.html index 9d2ef2d..2fb8986 100644 --- a/index.html +++ b/index.html @@ -233,6 +233,20 @@

+ +
+
+
πŸ’Ύ
+

Backup Downloads

+
+ +
+
@@ -726,6 +740,31 @@ } loadBackupStatus(); + // ── Backup Downloads card β€” added 2026-07-07 ─────────────────────────── + async function loadBackupDownloads() { + const el = document.getElementById('backup-downloads-list'); + try { + const r = await fetch('/downloads/backup-files-status.json', { cache: 'no-store' }); + const data = await r.json(); + const fmt = (iso) => { + if (!iso) return 'No backup found'; + const d = new Date(iso); + return d.toLocaleString('en-US', {month:'short', day:'numeric', hour:'2-digit', minute:'2-digit'}); + }; + const row = (label, entry) => ` + + + ${label} + ${entry.source} β€” ${fmt(entry.timestamp)}${entry.size ? ' Β· ' + entry.size : ''} + ↓ + `; + el.innerHTML = row('JARVIS Backup', data.jarvis) + row('DO Server Backup', data.do_server); + } catch (e) { + el.innerHTML = ''; + } + } + loadBackupDownloads(); + // ── Notes β€” server-backed so they sync across all devices ───────────── const API = '/notes.php';