1. Questions & Answers
Why are so many words colored?
I like the way it looks to have certain words be highlighted, makes it look fancier and easier to read (imo). So, when I remade this site, I went ahead and added an Automatic Word Highlighting System! This allows me have words automatically highlighted, on the server side, without having to do it in the code manually. Here's the current list of highlighted words:
{ALL_HIGHLIGHTS}
As time continues, more words are added to the highlighting list, and I'm slowly adding more features, like disabling case sensitivity, boldness, italics, outlines, and more.
You may notice some highlighted words are "missing" on this list. This is because characters adjacent to the highlighted word are highlighted, too! What that means is, I can type ILoveTetoTuesday! and it'll all be highlighted!
P.S. If you're wondering what YIP is for, its for YIPPEEEEEEEEEEEEEEEEEEEEEE!
I thought the site doesn't use Javascript? So why is it there?
Originally, all my sites were completely Javascript free. As of late, though, I decided to add Javascript to this one. Javascript will NEVER be a requirement on this site. Javascript will ONLY be used where necessary, and I will do everything possible to make the experience indistinguishable.
For example, things such as the song duration bar on my activities are pure HTML, using some mathy NodeJS-generated CSS animations! The only thing the site uses Javascript for right now, is setting the scroll to the top of the page on reload, and real time updating discord activities.
Why are there 4 CSS files?
Originally the idea was that I could organize the site with:
- CSS for the main page
- CSS for the subsites
- Global CSS
Slowly, though, they're slowly all merging into one CSS file, so I can't be sure it'll stay this way for long.
As for the "unused" style.css, though, that exists for compatibility reasons- many of my older sites just grabbed CSS from the site for their css. This has been mostly fixed, but the FileShare still does, so it'll stay until I finally give the FileShare its own CSS.
Why/How are certain segments of pages "embedded" on others?
On the main page, you may notice certain other pages contained inside it, such as this page, the stats page, and socials page. And, most notably with this page, it's not the full page, either.
This is because of a feature I created called "page embeds", which allow me to embed a portion of content from another page, without the use of any sort of iframes. This was made so I could keep information on multiple pages up to date.
It's much more performant and scalable than an I-frame as well.