How hansenyangg/website works
HansenOS is a browser-based, System 7–style desktop. Users activate desktop icons to open app windows, then interact with those windows or use the menu bar for actions such as printing the resume and emptying the trash. The main runtime is a single JavaScript file that manages windowing, desktop interactions, and small built-in features. The HTML is present in the tree but was not sampled, so its specific templates and layout are not described beyond the JavaScript’s references to them.
Main entry points: script.js Window manager · index.html Desktop UI
Components 13
Desktop interaction
- Desktop UI
index.html - Icon interaction
script.js - Menu actions
script.js
Window management
- Window manager
script.js - App templates
index.html - Image viewer
script.js - Window controls
script.js
Built-in features
- Trash state
script.js - Terminal
script.js - Desktop clock
script.js - Boot screen
script.js - Browser printing
Other components
- Desktop user
Connections 9
- Desktop user → Desktop UI: interacts with
- Desktop UI → Icon interaction: handles icons
- Icon interaction → Window manager: opens apps
script.js - Window manager → App templates: clones template
script.js - Window manager → Image viewer: creates viewer
script.js - Window manager → Window controls: registers controls
script.js - Menu actions → Window manager: opens resume
script.js - Menu actions → Browser printing: calls print
script.js - Menu actions → Trash state: empties trash
script.js