| |
| |
| |
| |
| (function() { |
| 'use strict'; |
|
|
| |
| if (document.readyState === 'loading') { |
| document.addEventListener('DOMContentLoaded', initializeCatOS); |
| } else { |
| initializeCatOS(); |
| } |
|
|
| function initializeCatOS() { |
| console.log('π± Initializing CatOS...'); |
| |
| |
| const catOS = new CatOSCore(); |
| console.log('β
Core system created'); |
|
|
| |
| console.log('π§ Creating modules...'); |
| const windowManager = new CatOSWindowManager(catOS); |
| console.log('β
WindowManager created'); |
| const appManager = new CatOSAppManager(catOS); |
| console.log('β
AppManager created'); |
| const eventHandler = new CatOSEventHandler(catOS); |
| console.log('β
EventHandler created'); |
|
|
| |
| catOS.registerModule('windowManager', windowManager); |
| catOS.registerModule('appManager', appManager); |
| catOS.registerModule('eventHandler', eventHandler); |
|
|
| |
| window.CatOS = catOS; |
|
|
| |
| catOS.setupEventListeners(); |
| catOS.registerApps(); |
|
|
| |
| catOS.init(); |
|
|
| console.log('π±βπ» CatOS v9.0 (Whiskers Edition) loaded successfully!'); |
| console.log('Try opening the terminal and typing "help" for cat commands!'); |
| } |
| })(); |