Compare commits

..

No commits in common. "80fd73d317f45880c09ff1b20d7c791e6c28a05a" and "8949bbfd01da9d6b4189540cf7b3dc1d07280bba" have entirely different histories.

9 changed files with 2235 additions and 179 deletions

Binary file not shown.

View file

@ -18,13 +18,18 @@
} }
}, },
"quotes": [ "quotes": [
"Remember the 14th commandment: Thou shalt always clean thy plate and not waste anything, whether thy stomach is full, or not.",
"I hate javascript!!!",
"Happy <s>400</s> 500 commits!",
"Play Cave Story!",
"Cave Story+ Sucks!",
"World's Worst Developer", "World's Worst Developer",
"Bored",
"IMAGE CACHING!!! THE IMAGE CACHING IS REAL!!!!",
"Is sharing your IP <em>reallyy</em> that bad?",
"The worst git user to exist", "The worst git user to exist",
"These birds are Pissing me off... I'm the original &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Starwalker", "These birds are Pissing me off... I'm the original &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Starwalker",
"Fun fact: Did you know the <a href='./socials'>Socials section</a> is considered its own page?"
"Make sure to check out <a href='https://univerter.dev'>Univerter!</a>",
"Check out <a href='https://asahixp.pages.gay'>Asahi's website! &lt;3</a>",
"Check out <a href='https://sylvie.loveh.art/'>Sylvie's website! &lt;3</a>"
], ],
"titles": [ "titles": [
"Boykisser", "Boykisser",
@ -37,119 +42,45 @@
"https://axiomatic-hair-production.up.railway.app/" "https://axiomatic-hair-production.up.railway.app/"
], ],
"highlightedWords": { "highlightedWords": {
"birds": { "birds": "yellow",
"color": "yellow" "Pissing": "yellow",
}, "Starwalker": "yellow",
"Pissing": { "word highlighting": "yellow",
"color": "yellow" "replaceAll": "limegreen",
}, "Godot Engine": "#64B5F6",
"Starwalker": { "Javascript": "yellow",
"color": "yellow" "NodeJS": "limegreen",
}, "Violets-Purgatory": "rgb(200, 150, 255)",
"word highlighting": { "Violets-Cache": "rgb(200, 150, 255)",
"color": "yellow" "Violet's": "rgb(200, 150, 255)",
}, "Violets": "rgb(200, 150, 255)",
"Godot Engine": { "Violet": "rgb(200, 150, 255)",
"color": "#64B5F6" "Purgatory": "rgb(200, 150, 255)",
}, "Asahi": "rgb(255, 175, 175)",
"Javascript": { "Lunya": "rgb(255, 175, 175)",
"color": "yellow" "bisexual": "rgb(214, 2, 112)",
}, "enby": "rgb(252, 244, 52)",
"NodeJS": { "Youtube": "rgb(255, 0, 0)",
"color": "limegreen" "Fedi": "rgb(175, 125, 200)",
}, "Matrix": "limegreen",
"Violet": { "Element": "rgb(100, 255, 200)",
"color": "rgb(200, 150, 255)" "Code": "rgb(150, 175, 255)",
}, "Codeberg": "rgb(0, 255, 255)",
"Purgatory": { "Docker": "blue",
"color": "rgb(200, 150, 255)" "Github": "gray",
}, "Steam": "lightgray",
"Asahi": { "Univerter": "rgb(200, 175, 255)",
"color": "rgb(255, 175, 175)", "Ko-fi": "rgb(255, 150, 150)",
"caseInsensitive": true "Revolt": "rgb(255, 50, 50)",
}, "Discord": "rgb(150, 150, 255)",
"Lunya": { "SearXNG": "rgb(100, 100, 255)",
"color": "rgb(255, 175, 175)" "Highlighting": "yellow",
}, "highlighted": "yellow",
"Sylvie": { "Forgejo": "orange",
"color": "#f768a4" "HTML": "orange",
}, "CSS": "rgb(50, 200, 255)",
"bisexual": { "Thumbor": "rgb(225, 225, 255)",
"color": "rgb(214, 2, 112)" "Spotify": "limegreen",
}, "Ultrakill": "red"
"enby": {
"color": "rgb(252, 244, 52)"
},
"Youtube": {
"color": "rgb(255, 0, 0)"
},
"Fedi": {
"color": "rgb(175, 125, 200)"
},
"Matrix": {
"color": "limegreen"
},
"Element": {
"color": "rgb(100, 255, 200)"
},
"Codeberg": {
"color": "rgb(0, 255, 255)"
},
"Code": {
"color": "rgb(150, 175, 255)"
},
"Docker": {
"color": "blue"
},
"Github": {
"color": "gray"
},
"Steam": {
"color": "lightgray"
},
"Univerter": {
"color": "rgb(200, 175, 255)"
},
"Ko-fi": {
"color": "rgb(255, 150, 150)"
},
"Revolt": {
"color": "rgb(255, 50, 50)"
},
"Discord": {
"color": "rgb(150, 150, 255)"
},
"SearXNG": {
"color": "rgb(100, 100, 255)"
},
"Highlighting": {
"color": "yellow"
},
"highlighted": {
"color": "yellow"
},
"Forgejo": {
"color": "orange"
},
"HTML": {
"color": "orange"
},
"CSS": {
"color": "rgb(50, 200, 255)"
},
"Thumbor": {
"color": "rgb(225, 225, 255)"
},
"Spotify": {
"color": "limegreen"
},
"Ultrakill": {
"color": "red",
"caseInsensitive": true
},
"Risk of Rain 2": {
"color": "rgb(150, 220, 255)",
"caseInsensitive": true
}
} }
} }

2153
output.json Normal file

File diff suppressed because it is too large Load diff

View file

@ -87,6 +87,11 @@ module.exports = {
continue continue
} }
if (!debounce && activity.type != 4) {
addedHTML += `<h2><hr>What I'm up to:</h2><div class="activity-container">`
debounce = true
}
function get_img(activity, size = "large_image") { function get_img(activity, size = "large_image") {
return "https://cache.violets-purgatory.dev/cached/" + get_img_url(activity, size) return "https://cache.violets-purgatory.dev/cached/" + get_img_url(activity, size)
@ -195,10 +200,6 @@ module.exports = {
} }
} }
} }
if (addedHTML.length > 10) { return addedHTML + "</div>"
addedHTML = `<h2><hr>What I'm up to:</h2><div class="activity-container">` + addedHTML
addedHTML += "</div>"
}
return addedHTML
} }
} }

View file

@ -142,42 +142,13 @@ function converter(html) {
for (let index = 0; index < highTable.length; index++) { for (let index = 0; index < highTable.length; index++) {
var term = highTable[index]; var term = highTable[index];
var termProps = highlightedWords[term] var replacement = `<span style="color: ${highlightedWords[term]}">${term}</span>`
var reg = term
if (termProps.caseInsensitive) {
reg = new RegExp(`(${term})`, "gi")
}
element.content = element.content.replaceAll(`{${term}}`, "TEMPORARY_REPLACE") element.content = element.content.replaceAll(`{${term}}`, "TEMPORARY_REPLACE")
element.content = element.content.replaceAll(reg, "{TERM" + index + "}") element.content = element.content.replaceAll(term, replacement)
element.content = element.content.replaceAll("TEMPORARY_REPLACE", `${term}`) element.content = element.content.replaceAll("TEMPORARY_REPLACE", `${term}`)
} }
for (let index = 0; index < highTable.length; index++) {
var termKey = "{TERM" + index + "}"
var termProps = highlightedWords[highTable[index]]
while (element.content.includes(termKey)) {
var termIndex = element.content.indexOf(termKey)
var spanEnd = element.content.indexOf(" ", termIndex)
if (spanEnd == -1) {
spanEnd = element.content.length
}
var endContent = element.content.substring(termIndex + termKey.length, spanEnd)
var spanStart = element.content.substring(0, termIndex).lastIndexOf(" ")
var startContent = element.content.substring(spanStart, termIndex)
var replacement = `<span style="color: ${termProps.color}">${startContent + highTable[index] + endContent}</span>`
element.content = element.content.substring(0, spanStart) + replacement + element.content.substring(spanEnd)
}
// element.content = element.content.replaceAll(termKey, replacement)
}
} }
} }

View file

@ -67,18 +67,18 @@
<h2><hr>Quotes:</h2> <h2><hr>Quotes:</h2>
<p>“literally anything from the 1995 movie 'Hackers' will absolutely fit here” -tyberry<br> <p style="white-space: pre-wrap;">“literally anything from the 1995 movie 'Hackers' will absolutely fit here” -tyberry
"ooooo you like boys, ur a boykisser" -Elodie<br> "ooooo you like boys, ur a boykisser" -Elodie
"asahi is twink-esk in spirit. aspirational." -Juniper<br> "asahi is twink-esk in spirit. aspirational." -Juniper
"cute huggable nice huggable cute cute" -marcy<br> "cute huggable nice huggable cute cute" -marcy
"Petting Asahi makes the world better” -yassie<br> "Petting Asahi makes the world better” -yassie
"meow meow meow mrrrp nya~" -gettie<br> "meow meow meow mrrrp nya~" -gettie
"cute and queer catenby that functions as fedi's algorithm on the side" -7331<br> "cute and queer catenby that functions as fedi's algorithm on the side" -7331
"sometimes this one still forgets how friendly some people are here… like Asahi, for instance!” -Ariadne<br> "sometimes this one still forgets how friendly some people are here… like Asahi, for instance!” -Ariadne
"Asahi wa sugoi desu ne?" -Bard<br> "Asahi wa sugoi desu ne?" -Bard
"this is a quote :3c" -Ukko<br> "this is a quote :3c" -Ukko
"best Asahi I've ever met (awww!)" -Kristina<br> "best Asahi I've ever met (awww!)" -Kristina
"asahi is friend shaped and they have a good heart" -Drew<br> "asahi is friend shaped and they have a good heart" -Drew
"10/10 will give loving headpats and will protect them!" -Natsura</p> "10/10 will give loving headpats and will protect them!" -Natsura</p>

View file

@ -19,10 +19,10 @@ const discStatuses = {
var pfp var pfp
var music = new Audio("/snds/Lotus Waters.ogg") var catsOnMars = new Audio("/snds/cats on mars.mp3")
var whipLash = new Audio("/snds/johnny-test-whip-crack.mp3") var whipLash = new Audio("/snds/johnny-test-whip-crack.mp3")
music.loop = true catsOnMars.loop = true
music.volume = 0.45 catsOnMars.volume = 0.25
whipLash.volume = 0.25 whipLash.volume = 0.25
var sock var sock
@ -42,20 +42,20 @@ function spinLoop() {
spinWaiting = true spinWaiting = true
setTimeout(() => { setTimeout(() => {
spinWaiting = false spinWaiting = false
if (!music.paused) { if (!catsOnMars.paused) {
if (spins > 1) { if (spins > 1) {
document.querySelector(".spinnyCount").style.display = "block" document.querySelector(".spinnyCount").style.display = "block"
document.querySelector(".localSpins").innerHTML = Math.ceil(spins - 1); document.querySelector(".localSpins").innerHTML = Math.ceil(spins - 1);
} }
spins += 0.5 spins += 0.5
if (Math.round(spins) == spins && sock && sock.OPEN) { if (Math.round(spins) == spins && sock && sock.OPEN) {
// resetPFP() resetPFP()
sock.send(`{"op": 4}`) sock.send(`{"op": 4}`)
console.log("Spin Sent!") console.log("Spin Sent!")
} }
spinLoop() spinLoop()
} }
}, 1500); }, 1000);
} }
window.onbeforeunload = function () { window.onbeforeunload = function () {
@ -71,7 +71,7 @@ window.onload = function () {
if (!spinWaiting) { if (!spinWaiting) {
spinLoop(); spinLoop();
} }
music.play() catsOnMars.play()
pfp.style.animationName = "spinny" pfp.style.animationName = "spinny"
@ -79,9 +79,9 @@ window.onload = function () {
}) })
document.body.onmouseup = () => { document.body.onmouseup = () => {
if (music.currentTime != 0) { if (catsOnMars.currentTime != 0) {
music.currentTime = 0 catsOnMars.currentTime = 0
music.pause() catsOnMars.pause()
whipLash.currentTime = 0 whipLash.currentTime = 0
whipLash.play() whipLash.play()

View file

@ -56,7 +56,7 @@
rotate: 0deg; rotate: 0deg;
user-select: none; user-select: none;
animation-duration: 3s; animation-duration: 2s;
animation-timing-function: linear; animation-timing-function: linear;
animation-iteration-count: infinite; animation-iteration-count: infinite;
} }

View file

@ -51,7 +51,7 @@
<div> <div>
<h3>Coding</h3> <h3>Coding</h3>
<a class="chip" href="https://git.violets-purgatory.dev/bingus_violet/">Forgejo: bingus_violet (git.violets-purgatory.dev)</a> <a class="chip" href="https://git.violets-purgatory.dev/bingus_violet/">Forgejo: bingus_violet (git.violets-purgatory.dev)</a>
<a class="chip" href="https://codeberg.org/Bingus_violet">Codeberg: bingus_violet</a> <a class="chip" href="https://codeberg.org/Bingus_violet">{Code}berg: bingus_violet</a>
<a class="chip" href="https://hub.docker.com/u/bingusviolet">Docker: bingusviolet</a> <a class="chip" href="https://hub.docker.com/u/bingusviolet">Docker: bingusviolet</a>
<a class="chip" href="https://github.com/violets-puragtory">Github: violets-puragtory</a> <a class="chip" href="https://github.com/violets-puragtory">Github: violets-puragtory</a>
</div> </div>