Add random funny 404 terminal messages

This commit is contained in:
clarth 2026-12-02 17:35:59 -05:00
parent 1ac2899bc8
commit 1939042040

View file

@ -62,7 +62,7 @@
<p class="nf-dim">searching all channels...</p> <p class="nf-dim">searching all channels...</p>
<p class="nf-dim">searching voice lounge...</p> <p class="nf-dim">searching voice lounge...</p>
<p class="nf-dim">asking the hamsters powering the server...</p> <p class="nf-dim">asking the hamsters powering the server...</p>
<p class="nf-err">ERROR: page not found. hamsters are also confused.</p> <p class="nf-err" id="nf-err">ERROR: page not found. hamsters are also confused.</p>
<p><span class="nf-prompt">$</span> <span class="nf-cursor"></span></p> <p><span class="nf-prompt">$</span> <span class="nf-cursor"></span></p>
</div> </div>
</div> </div>
@ -90,5 +90,22 @@
</footer> </footer>
<script src="script.js"></script> <script src="script.js"></script>
<script>
(function () {
var messages = [
"ERROR: page not found. hamsters are also confused.",
"ERROR: 404. the page left to touch grass and never came back.",
"ERROR: channel deleted by a rogue mod with too much power.",
"ERROR: page went to get milk. it's been 3 years.",
"ERROR: our carrier pigeon got lost. again.",
"ERROR: this URL is in another castle.",
"ERROR: packet fell off the internet. oops.",
"ERROR: page exists, but only on opposite day.",
"ERROR: the hamsters unionized and refuse to find this page."
];
var el = document.getElementById('nf-err');
if (el) el.textContent = messages[Math.floor(Math.random() * messages.length)];
})();
</script>
</body> </body>
</html> </html>