ritual.sh/assets/js/init.js
Dan 23369f4ace Refactors site to use interactive terminal UI
Moves site from static HTML to a dynamic terminal interface.

This commit represents a major overhaul, introducing:
- A functional terminal emulator implemented in JavaScript.
- Command parsing and execution framework.
- Various terminal commands for navigation and utility functions.
- SASS conversion.

The old CSS and simple HTML are completely removed. A new Hugo theme is implemented.
2025-12-08 13:46:35 +00:00

16 lines
440 B
JavaScript

// Terminal Initialization Script
// This script creates the terminal instance immediately
// so command modules can register commands
// Create global terminal instance immediately
window.terminal = new TerminalShell();
// Boot the terminal when DOM is ready
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", () => {
terminal.boot();
});
} else {
// DOM already loaded
terminal.boot();
}