duh, can't name something 'console'...

This commit is contained in:
2021-11-18 09:15:50 -05:00
parent 0ba2c842db
commit 00558a112d
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
import RFB from "https://cdn.skypack.dev/pin/@novnc/novnc@v1.3.0-RRNSIy674lWHJVNg8Apd/mode=imports,min/unoptimized/core/rfb.js";
// DOS-style box for text
const console = document.getElementById("status");
const cmd = document.getElementById("status");
// random tile wallpaper
document.body.style.backgroundImage = "url('tiles/tile_" + Math.floor(20 * Math.random()) + ".png')";
@@ -17,9 +17,9 @@ if (window.WebSocket) {
// give up after 15 seconds (this also is rendered behind the VNC display in case it crashes and goes poof)
setTimeout(() => {
console.textContent = "Oh dear, it looks like something went very wrong. :(\n\nTry again in a bit.\n\n\nPress the Any key to continue.";
cmd.textContent = "Oh dear, it looks like something went very wrong. :(\n\nTry again in a bit.\n\n\nPress the Any key to continue.";
}, 15000);
} else {
// browser doesn't support websockets
console.textContent = "WebSockets must be enabled to play in the Y2K Sandbox!!!\n\nPress the Any key to continue.";
cmd.textContent = "WebSockets must be enabled to play in the Y2K Sandbox!!!\n\nPress the Any key to continue.";
}