Spaces:
Running
Running
Create app.js
Browse files- scripts/app.js +18 -0
scripts/app.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// scripts/app.js --- TEST 1
|
| 2 |
+
|
| 3 |
+
// We are only importing ui.js to see if it loads correctly.
|
| 4 |
+
import { initUI } from './ui.js';
|
| 5 |
+
// import { initChat } from './chat.js';
|
| 6 |
+
// import { initVideo } from './video.js';
|
| 7 |
+
|
| 8 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 9 |
+
// We are only running the UI initialization for this test.
|
| 10 |
+
try {
|
| 11 |
+
initUI();
|
| 12 |
+
window.logToScreen("SUCCESS: ui.js was imported and initialized.");
|
| 13 |
+
} catch(e) {
|
| 14 |
+
window.logToScreen(`ERROR initializing ui.js: ${e.message}`);
|
| 15 |
+
}
|
| 16 |
+
});
|
| 17 |
+
|
| 18 |
+
// NOTE: The on-screen logger is now in your index.html, so we don't need it here for this test.
|