Compare commits

..

8 commits

9 changed files with 179 additions and 2235 deletions

Binary file not shown.

View file

@ -18,18 +18,13 @@
}
},
"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",
"Bored",
"IMAGE CACHING!!! THE IMAGE CACHING IS REAL!!!!",
"Is sharing your IP <em>reallyy</em> that bad?",
"The worst git user to exist",
"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": [
"Boykisser",
@ -42,45 +37,119 @@
"https://axiomatic-hair-production.up.railway.app/"
],
"highlightedWords": {
"birds": "yellow",
"Pissing": "yellow",
"Starwalker": "yellow",
"word highlighting": "yellow",
"replaceAll": "limegreen",
"Godot Engine": "#64B5F6",
"Javascript": "yellow",
"NodeJS": "limegreen",
"Violets-Purgatory": "rgb(200, 150, 255)",
"Violets-Cache": "rgb(200, 150, 255)",
"Violet's": "rgb(200, 150, 255)",
"Violets": "rgb(200, 150, 255)",
"Violet": "rgb(200, 150, 255)",
"Purgatory": "rgb(200, 150, 255)",
"Asahi": "rgb(255, 175, 175)",
"Lunya": "rgb(255, 175, 175)",
"bisexual": "rgb(214, 2, 112)",
"enby": "rgb(252, 244, 52)",
"Youtube": "rgb(255, 0, 0)",
"Fedi": "rgb(175, 125, 200)",
"Matrix": "limegreen",
"Element": "rgb(100, 255, 200)",
"Code": "rgb(150, 175, 255)",
"Codeberg": "rgb(0, 255, 255)",
"Docker": "blue",
"Github": "gray",
"Steam": "lightgray",
"Univerter": "rgb(200, 175, 255)",
"Ko-fi": "rgb(255, 150, 150)",
"Revolt": "rgb(255, 50, 50)",
"Discord": "rgb(150, 150, 255)",
"SearXNG": "rgb(100, 100, 255)",
"Highlighting": "yellow",
"highlighted": "yellow",
"Forgejo": "orange",
"HTML": "orange",
"CSS": "rgb(50, 200, 255)",
"Thumbor": "rgb(225, 225, 255)",
"Spotify": "limegreen",
"Ultrakill": "red"
"birds": {
"color": "yellow"
},
"Pissing": {
"color": "yellow"
},
"Starwalker": {
"color": "yellow"
},
"word highlighting": {
"color": "yellow"
},
"Godot Engine": {
"color": "#64B5F6"
},
"Javascript": {
"color": "yellow"
},
"NodeJS": {
"color": "limegreen"
},
"Violet": {
"color": "rgb(200, 150, 255)"
},
"Purgatory": {
"color": "rgb(200, 150, 255)"
},
"Asahi": {
"color": "rgb(255, 175, 175)",
"caseInsensitive": true
},
"Lunya": {
"color": "rgb(255, 175, 175)"
},
"Sylvie": {
"color": "#f768a4"
},
"bisexual": {
"color": "rgb(214, 2, 112)"
},
"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
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -87,11 +87,6 @@ module.exports = {
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") {
return "https://cache.violets-purgatory.dev/cached/" + get_img_url(activity, size)
@ -200,6 +195,10 @@ module.exports = {
}
}
}
return addedHTML + "</div>"
if (addedHTML.length > 10) {
addedHTML = `<h2><hr>What I'm up to:</h2><div class="activity-container">` + addedHTML
addedHTML += "</div>"
}
return addedHTML
}
}

View file

@ -142,13 +142,42 @@ function converter(html) {
for (let index = 0; index < highTable.length; index++) {
var term = highTable[index];
var replacement = `<span style="color: ${highlightedWords[term]}">${term}</span>`
var termProps = highlightedWords[term]
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, replacement)
element.content = element.content.replaceAll(reg, "{TERM" + index + "}")
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>
<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
"asahi is twink-esk in spirit. aspirational." -Juniper
"cute huggable nice huggable cute cute" -marcy
"Petting Asahi makes the world better” -yassie
"meow meow meow mrrrp nya~" -gettie
"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
"Asahi wa sugoi desu ne?" -Bard
"this is a quote :3c" -Ukko
"best Asahi I've ever met (awww!)" -Kristina
"asahi is friend shaped and they have a good heart" -Drew
<p>“literally anything from the 1995 movie 'Hackers' will absolutely fit here” -tyberry<br>
"ooooo you like boys, ur a boykisser" -Elodie<br>
"asahi is twink-esk in spirit. aspirational." -Juniper<br>
"cute huggable nice huggable cute cute" -marcy<br>
"Petting Asahi makes the world better” -yassie<br>
"meow meow meow mrrrp nya~" -gettie<br>
"cute and queer catenby that functions as fedi's algorithm on the side" -7331<br>
"sometimes this one still forgets how friendly some people are here… like Asahi, for instance!” -Ariadne<br>
"Asahi wa sugoi desu ne?" -Bard<br>
"this is a quote :3c" -Ukko<br>
"best Asahi I've ever met (awww!)" -Kristina<br>
"asahi is friend shaped and they have a good heart" -Drew<br>
"10/10 will give loving headpats and will protect them!" -Natsura</p>

View file

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

View file

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

View file

@ -51,7 +51,7 @@
<div>
<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://codeberg.org/Bingus_violet">{Code}berg: bingus_violet</a>
<a class="chip" href="https://codeberg.org/Bingus_violet">Codeberg: bingus_violet</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>
</div>