A lot of clean up

This commit is contained in:
Dan 2025-12-31 12:50:21 +00:00
parent d89744f46f
commit 931fa141dc
62 changed files with 447 additions and 993 deletions

View file

@ -16,6 +16,16 @@ class TerminalShell {
// Boot sequence
async boot() {
let skipBoot = false;
// Add listener to skip boot sequence on Enter key
const skipBootListener = (e) => {
if (e.key === "Enter") {
skipBoot = true;
}
};
document.addEventListener("keydown", skipBootListener);
const bootMessages = [
" _ _ _____ ______ __",
" | \\ | | ____| _ \\ \\ / /",
@ -39,8 +49,11 @@ class TerminalShell {
"",
"",
];
for (let i = 0; i < bootMessages.length; i++) {
await this.sleep(100);
if (!skipBoot) {
await this.sleep(100);
}
const line = document.createElement("div");
line.className = "output-line boot-line";
line.textContent = bootMessages[i];
@ -49,6 +62,9 @@ class TerminalShell {
this.scrollToBottom();
}
// Remove the skip boot listener
document.removeEventListener("keydown", skipBootListener);
this.printHTML("&nbsp;");
// Get latest post info
@ -71,7 +87,7 @@ class TerminalShell {
);
this.printHTML(
'<span class="warning">This site is under construction. There\'s not much of interest here yet.</span>',
'<span class="warning">This site is under construction. Feel free to look around...</span>',
);
this.inputContainer.classList.remove("hidden");