From 24f3ca16cf710ecbb724837e7dadc0b504a623bc Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Tue, 19 Dec 2023 18:21:37 +0000 Subject: [PATCH] More unified lol --- index.js | 41 ++++--------------------------------- resources/mainPage.html | 1 + static/art/index.html | 2 +- static/games/index.html | 23 +++++++++++++++++++++ static/hosted/index.html | 2 +- static/portfolio/index.html | 2 +- static/pronouns/index.html | 2 +- static/socials/index.html | 2 +- 8 files changed, 33 insertions(+), 42 deletions(-) create mode 100644 static/games/index.html diff --git a/index.js b/index.js index 156b3ad..2119c82 100644 --- a/index.js +++ b/index.js @@ -263,45 +263,12 @@ lanyard.addEventListener("message", (res) => { } }) -// Mastodon Updates - -function mastoUpdate() { - fetch("https://tech.lgbt/@bingus_violet.rss") - .then((data) => { - return data.text() - }) - .then((xml) => { - var data = xml2json.xml2js(xml, { compact: true }).rss.channel - var posts = data.item - - var newHTML = `
` - - for (let index = 0; index < Math.min(posts.length, 7); index++) { - const post = posts[index]; - newHTML += `
` - newHTML += `` - newHTML += `

` + data.title._text + `


` - newHTML += post.description._text - newHTML += `

` - } - - mastoData.HTML = `


Mastodon Posts:

` + newHTML + "
" + `
See more on Mastodon` - - pageUpdate() - }) - setTimeout(()=> { - mastoUpdate() - }, 1000 * 60 * 60) -} - -// mastoUpdate() - app.use((req, res, next) => { - res.status(404).send( - ` + 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...

` - ) +
Maybe you were sent the wrong link? Try going to 'fs.violets-purgatory.dev' instead if you were expecting a file...

+ `) }) \ No newline at end of file diff --git a/resources/mainPage.html b/resources/mainPage.html index fd83266..13edbdf 100644 --- a/resources/mainPage.html +++ b/resources/mainPage.html @@ -41,6 +41,7 @@

Pronouns

Portfolio

Art

+

Games

{LANYARD_QUOTE} diff --git a/static/art/index.html b/static/art/index.html index 3be8710..434a000 100644 --- a/static/art/index.html +++ b/static/art/index.html @@ -12,7 +12,7 @@ - Hosting - Violet's Purgatory + Art - Violet's Purgatory diff --git a/static/games/index.html b/static/games/index.html new file mode 100644 index 0000000..5744c60 --- /dev/null +++ b/static/games/index.html @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + Games - Violet's Purgatory + + + +

Nothing here...

+

Yet...

+ + + \ No newline at end of file diff --git a/static/hosted/index.html b/static/hosted/index.html index 1503cbf..351bf4b 100644 --- a/static/hosted/index.html +++ b/static/hosted/index.html @@ -7,7 +7,7 @@ - + diff --git a/static/portfolio/index.html b/static/portfolio/index.html index b50f717..487e222 100644 --- a/static/portfolio/index.html +++ b/static/portfolio/index.html @@ -7,7 +7,7 @@ - + diff --git a/static/pronouns/index.html b/static/pronouns/index.html index be5eff1..e3df6be 100644 --- a/static/pronouns/index.html +++ b/static/pronouns/index.html @@ -7,7 +7,7 @@ - + diff --git a/static/socials/index.html b/static/socials/index.html index 1c6e844..33bc387 100644 --- a/static/socials/index.html +++ b/static/socials/index.html @@ -8,7 +8,7 @@ - +