From 6d0361fede2b886412febc34dbaf4eefc358502b Mon Sep 17 00:00:00 2001 From: Clove Twilight Date: Sat, 27 Jun 2026 05:52:51 +0100 Subject: [PATCH] Uhhh how about this? --- ascii/index.html | 21 +++++++++++++++++++-- js/ascii.js | 20 -------------------- 2 files changed, 19 insertions(+), 22 deletions(-) delete mode 100644 js/ascii.js diff --git a/ascii/index.html b/ascii/index.html index 22b4660..73a42e4 100644 --- a/ascii/index.html +++ b/ascii/index.html @@ -15,7 +15,7 @@ - + @@ -51,7 +51,24 @@ - + \ No newline at end of file diff --git a/js/ascii.js b/js/ascii.js deleted file mode 100644 index 0e125de..0000000 --- a/js/ascii.js +++ /dev/null @@ -1,20 +0,0 @@ -(async function () { - const el = document.getElementById('ascii-art'); - - try { - const res = await fetch('/ascii.txt', { cache: 'no-store' }); - if (!res.ok) throw new Error('fetch failed: ' + res.status); - - const raw = await res.text(); - - const ansi_up = new AnsiUp(); - const html = ansi_up.ansi_to_html(raw); - - el.innerHTML = html; - el.removeAttribute('aria-busy'); - - } catch (err) { - el.textContent = "couldn't load ascii.txt :("; - console.error(err); - } -})(); \ No newline at end of file