Public Service Server Banner

IMAGE INDEX

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 = '
No files found.
'; } else { container.innerHTML = '
' + list.map(function(obj) { var thumb = obj.thumbnail || ''; return '
' + '' + 'Thumbnail for ' + obj.name + '' + '' + '
' + '' + obj.name + '' + '
' + '
' + formatDate(obj.created) + '
' + '
' + formatSize(obj.size) + '
' + '
'; }).join('') + '
'; } }) .catch(function() { document.getElementById('jsonMediaList').innerHTML = '
Error loading media list.
'; });

Back to All Media

Back to Home