This commit is contained in:
Aodhan
2025-06-20 22:27:24 +01:00
parent c09461f58f
commit 324a21800a
10 changed files with 1022 additions and 1866 deletions

14
js/utils.js Normal file
View File

@@ -0,0 +1,14 @@
export function showToast(message) {
const toastEl = document.getElementById('toast');
if (!toastEl) return;
toastEl.textContent = message;
toastEl.classList.add('show');
setTimeout(() => toastEl.classList.remove('show'), 3000);
}
export function updateImageInfo(data) {
const resolutionEl = document.getElementById('image-resolution');
if (resolutionEl) {
resolutionEl.textContent = `Resolution: ${data.resolution || 'N/A'}`;
}
}