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.
16 lines
440 B
JavaScript
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();
|
|
}
|