Spaces:
Sleeping
Sleeping
Update application/static/js/script.js
Browse files- application/static/js/script.js +14 -16
application/static/js/script.js
CHANGED
|
@@ -1,18 +1,16 @@
|
|
| 1 |
// application/static/js/script.js
|
| 2 |
-
|
| 3 |
-
alert("script.js loaded and running!"); // Add an alert
|
| 4 |
-
|
| 5 |
-
//import UIManager from "./components/uiManager.js";
|
| 6 |
import Navbar from "./components/navbar.js";
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
//
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
| 1 |
// application/static/js/script.js
|
| 2 |
+
import UIManager from "./components/uiManager.js";
|
|
|
|
|
|
|
|
|
|
| 3 |
import Navbar from "./components/navbar.js";
|
| 4 |
+
|
| 5 |
+
class App {
|
| 6 |
+
constructor() {
|
| 7 |
+
this.uiManager = new UIManager(); // Instantiate UIManager
|
| 8 |
+
this.navbar = new Navbar(this.uiManager); // Instantiate Navbar, pass UIManager
|
| 9 |
+
}
|
| 10 |
+
run() {
|
| 11 |
+
this.uiManager.run();
|
| 12 |
+
this.navbar.run();
|
| 13 |
+
}
|
| 14 |
+
}
|
| 15 |
+
const app = new App()
|
| 16 |
+
app.run();
|