Spaces:
Running
Running
File size: 528 Bytes
b2baa40 13c7b45 b2baa40 13c7b45 5ec8a84 b2baa40 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
// main.js - Application Entry Point
import { loadState } from './state.js';
import { refreshUI } from './ui.js';
import { attachOneTimeListeners } from './events.js';
// Initializes the application when the page content is loaded.
function init() {
loadState();
refreshUI();
attachOneTimeListeners(); // Attach persistent listeners once
// Trigger fade-in animation for main content
document.querySelector('main').classList.remove('opacity-0');
}
document.addEventListener('DOMContentLoaded', init); |