Reality123b commited on
Commit
7acbc61
·
verified ·
1 Parent(s): a37d239

Update application/static/js/script.js

Browse files
Files changed (1) hide show
  1. application/static/js/script.js +14 -16
application/static/js/script.js CHANGED
@@ -1,18 +1,16 @@
1
  // application/static/js/script.js
2
- console.log("script.js loaded and running!");
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
- // class App{
8
- // constructor(){
9
- // this.uiManager = new UIManager()
10
- // this.navbar = new Navbar(this.uiManager);
11
- // }
12
- // run(){
13
- // this.uiManager.run();
14
- // this.navbar.run();
15
- // }
16
- // }
17
- // const app = new App()
18
- // app.run();
 
 
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();