Random Quotes
This commit is contained in:
parent
3f03b0b13d
commit
a82a374f20
3 changed files with 12 additions and 19 deletions
15
config.json
15
config.json
|
@ -11,35 +11,24 @@
|
|||
"I hate javascript!!!",
|
||||
"Don't fuck with this senator!",
|
||||
"Crazy? I was crazy once!",
|
||||
"Happy 200 commits!",
|
||||
"Happy 300 commits!",
|
||||
"Also try <a href='https://lunasother.nl'>lunasother.nl</a> :3",
|
||||
"I'll finally add that commit count thingy... someday...",
|
||||
"Play Cave Story!",
|
||||
"Cave Story+ Sucks!",
|
||||
"Running out of quote ideas",
|
||||
"World's Worst Developer",
|
||||
"Remember when I used to call myself a 'Game Developer'?",
|
||||
"Why are arrays and dictionaries in JSON files way more strict than in Javascript?? <br> No like seriously why cant I use quotes instead of quotation marks :/",
|
||||
"Bored",
|
||||
"This website is way too bloated T^T",
|
||||
"Did you know there are currently {QUOTE_COUNT} quotes?",
|
||||
"I seriously need to optimize this site <br> I guess there's always worse, though...",
|
||||
"IMAGE CACHING!!! THE IMAGE CACHING IS REAL!!!!",
|
||||
"You had a 1/{QUOTE_COUNT} chance in getting tihs quote. Same with any other quote, I guess :|",
|
||||
"Literally just dumping whatever 2 iq thought comes into my mind into this file for more quotes",
|
||||
"Maybe I should make a discord server. <br>Maybe I should hook up this quote thing to said Discord server. Idk :3",
|
||||
"I should really remove the google font :yuu:",
|
||||
"You had a 1/{QUOTE_COUNT} chance in getting this quote. Same with any other quote, I guess :|",
|
||||
"Is sharing your IP <em>reallyy</em> that bad?",
|
||||
"The worst git user to exist",
|
||||
"This idiot has no idea how branches work",
|
||||
"Their ass is NOT listening",
|
||||
"Having issues? Try reporting an ID-10-T error on the codeberg :D",
|
||||
"No I don't use Github :3",
|
||||
"I'm still sad about that one person who liked one of my repositories on Github but not on codeberg :(",
|
||||
"I get no attention on codeberg!!",
|
||||
"My fedi is dead! And so is my youtube I guess! I guess my Github too...",
|
||||
"I think {QUOTE_COUNT} is enough quotes at this point...",
|
||||
"I'm really just finding excuses to throw the quote count ({QUOTE_COUNT}) in as many quotes as I can because i had to spend 2 seconds making it :3",
|
||||
"Please check out <a href='https://yt.violets-purgatory.dev'>Univerter</a>!",
|
||||
"Please check out <a href='https://codeberg.org/Bingus_Violet/SteamRPC'>SteamRPC</a>! (Linux only)",
|
||||
"Please check out <a href='https://api.violets-purgatory.dev'>the api for this site</a> :3",
|
||||
|
|
|
@ -2,7 +2,9 @@ const path = require('path'),
|
|||
fs = require('fs')
|
||||
|
||||
var config = JSON.parse(fs.readFileSync(path.join(__dirname, 'config.json')))
|
||||
|
||||
var highlightedWords = config.highlightedWords
|
||||
var quotes = config.quotes
|
||||
|
||||
var commitCount = "300+"
|
||||
|
||||
|
@ -53,6 +55,10 @@ function converter(html) {
|
|||
|
||||
html = html.replaceAll("{COMMIT_COUNT}", commitCount)
|
||||
|
||||
html = html.replaceAll("{RANDOM_QUOTE}", quotes[Math.floor(Math.random() * quotes.length)])
|
||||
|
||||
html = html.replaceAll("{QUOTE_COUNT}", quotes.length)
|
||||
|
||||
return html
|
||||
}
|
||||
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
body {
|
||||
background-color: black;
|
||||
overflow-x: hidden;
|
||||
|
||||
padding: 25px;
|
||||
|
||||
animation: hideContent 2.5s;
|
||||
}
|
||||
|
@ -65,7 +67,7 @@ hr {
|
|||
|
||||
@keyframes mainText {
|
||||
0% {
|
||||
transform: translateY(calc(50vh - 2rem)) scale(1.5);
|
||||
transform: translateY(calc(50vh - 6rem)) scale(1.5);
|
||||
opacity: 0;
|
||||
height: 4rem;
|
||||
}
|
||||
|
@ -73,7 +75,7 @@ hr {
|
|||
50% {
|
||||
opacity: 1;
|
||||
height: 4rem;
|
||||
transform: translateY(calc(50vh - 2rem)) scale(1);
|
||||
transform: translateY(calc(50vh - 6rem)) scale(1.25);
|
||||
}
|
||||
|
||||
100% {
|
||||
|
@ -86,10 +88,6 @@ hr {
|
|||
opacity: 0;
|
||||
}
|
||||
|
||||
33% {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
66% {
|
||||
opacity: 0;
|
||||
transform: translateY(25vh)
|
||||
|
|
Loading…
Reference in a new issue