From 9c5ac7bf56fa87ca0d8483f4faf0d7eb1a4f2a09 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Fri, 12 Jan 2024 17:48:19 +0000 Subject: [PATCH 1/2] I am the dumb --- index.js | 2 ++ static/extras/discord/index.html | 2 +- static/extras/index.html | 2 +- static/style.css | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index d930662..4f6d9ce 100644 --- a/index.js +++ b/index.js @@ -225,6 +225,8 @@ function pageUpdate() { html = html.replace("{SEASONAL_EFFECT}", "") } + html = '\n' + html + fs.writeFileSync(path.join(__dirname, 'static/index.html'), html) } diff --git a/static/extras/discord/index.html b/static/extras/discord/index.html index 6a38921..b198572 100644 --- a/static/extras/discord/index.html +++ b/static/extras/discord/index.html @@ -5,7 +5,7 @@ - + diff --git a/static/extras/index.html b/static/extras/index.html index 9c5aefb..9664a6f 100644 --- a/static/extras/index.html +++ b/static/extras/index.html @@ -22,7 +22,7 @@

Just some fun things that really don't have use on the main page but exist anyway!

- Dynamic Discord Status (Javascript, W.I.P) +

Dynamic Discord Status (Javascript, W.I.P)

\ No newline at end of file diff --git a/static/style.css b/static/style.css index 9ff68a6..03fec80 100644 --- a/static/style.css +++ b/static/style.css @@ -78,7 +78,7 @@ a { } .chip:hover { - /* background-color: rgb(20, 10, 30); */ + background-color: rgb(20, 10, 30); transform: scale(1); /* font-size: 1.35rem; */ border-color: white; From 7cfc0b0bddb6a2a5a65476a49c261abc942d948e Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Fri, 12 Jan 2024 19:05:34 +0000 Subject: [PATCH 2/2] Removing the stupidity from the 404 page --- index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 4f6d9ce..1fadfc8 100644 --- a/index.js +++ b/index.js @@ -264,9 +264,8 @@ pageUpdate() app.use((req, res, next) => { res.status(404).send(` -

...what?

-

Uh oh... I think your lost? There's nothing here :P -
Maybe you were sent the wrong link? Try going to 'fs.violets-purgatory.dev' instead if you were expecting a file...

+

404

+

Uh oh... I think your lost? There's nothing here :P

`) }) \ No newline at end of file