Spaces:
Running
Running
Create main.js
Browse files
main.js
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// main.js - Application Entry Point
|
2 |
+
|
3 |
+
import { loadState } from './state.js';
|
4 |
+
import { refreshUI } from './ui.js';
|
5 |
+
|
6 |
+
// Initializes the application when the page content is loaded.
|
7 |
+
function init() {
|
8 |
+
loadState();
|
9 |
+
refreshUI();
|
10 |
+
}
|
11 |
+
|
12 |
+
document.addEventListener('DOMContentLoaded', init);
|