Loading...
function formatDate(iso) { const d = new Date(iso); return d.toLocaleDateString(undefined, { year: 'numeric', month: 'long', day: 'numeric' }); } function formatSize(bytes) { if (bytes >= 1073741824) { return (bytes / 1073741824).toFixed(2) + ' GB'; } else { return (bytes / 1048576).toFixed(2) + ' MB'; } } fetch('image-index.json') .then(r => r.json()) .then(list => { const container = document.getElementById('jsonMediaList'); if (!Array.isArray(list) || list.length === 0) { container.innerHTML = '