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