Spaces:
Running
Running
Update scripts/app.js
Browse files- scripts/app.js +4 -0
scripts/app.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
|
|
|
|
|
| 1 |
import { initUI } from './ui.js';
|
| 2 |
import { initChat } from './chat.js';
|
| 3 |
import { initVideo } from './video.js';
|
| 4 |
|
|
|
|
| 5 |
document.addEventListener('DOMContentLoaded', () => {
|
|
|
|
| 6 |
initUI();
|
| 7 |
initChat();
|
| 8 |
initVideo();
|
|
|
|
| 1 |
+
// scripts/app.js -- FINAL VERSION
|
| 2 |
+
|
| 3 |
import { initUI } from './ui.js';
|
| 4 |
import { initChat } from './chat.js';
|
| 5 |
import { initVideo } from './video.js';
|
| 6 |
|
| 7 |
+
// This event listener ensures that all HTML is loaded before we try to run our code.
|
| 8 |
document.addEventListener('DOMContentLoaded', () => {
|
| 9 |
+
// Initialize all the separate parts of our application.
|
| 10 |
initUI();
|
| 11 |
initChat();
|
| 12 |
initVideo();
|