Spaces:
Sleeping
Sleeping
// 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(); |