File size: 434 Bytes
3bc1a5f
7acbc61
74d03ae
7acbc61
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// application/static/js/script.js
import UIManager from "./components/uiManager.js";
import Navbar from "./components/navbar.js";

class App {
    constructor() {
        this.uiManager = new UIManager(); // Instantiate UIManager
        this.navbar = new Navbar(this.uiManager); // Instantiate Navbar, pass UIManager
    }
    run() {
        this.uiManager.run();
        this.navbar.run();
    }
}
const app = new App()
app.run();