// Fetches app version and updates all footer texts fetch('/api/version') .then(res => res.json()) .then(({ version }) => { document.querySelectorAll('.app-footer-text').forEach(el => { el.textContent = `Ticket System by Honey v${version} © 2026`; }); }) .catch(() => {});