diff --git a/constants.json b/constants.json index 80b4cbc..bb0943d 100644 --- a/constants.json +++ b/constants.json @@ -27,15 +27,25 @@ "Can you even call this highlighting anymore it does like 300 other things now", "If you dont convert your HTML to JSON and then back to HTML did you even really make a Server-Side renderer???", "I finally know what SSR means. Yeah that. I made one of those (I think).", - "The optimization update coming out in January 2068!", + "The optimization update: coming out in January 2068!", "Now with... bleh... JQuery...", "Louis do NOT make a server side renderer. Worst mistake of my life.", "Univerter Supremacy", - "Violet's Limbo update soon... I swear...", "Univerter update: Coming. someday. some year. :)", - "I love this font, but emoticons have never looked worse... :( IT'S 2015!!! /ref", - "I'm throwin SNOWBALLS atcha... /ref" + "IT'S 2015!!!", + "Can't believe we got Javascript on Violet's Purgatory before GTA6", + "Vocal percussion on a whole nother level, coming from my mind", + "Rock and stone!", + "ENOUGH about the mushrooms! We all know it's a mushroom! We get it!", + "Yes, yes, we're rich. Time to get a move on, I got management breathing down my neck here!", + "STOP IT! NOW!", + "Five. Hundred. Cigarettes.", + "If I describe this website's server code to a employer they'd be impressed, but then if I showed it to them I'd be put on a blacklist", + "I am placing blocks and shit cuz im in fucking Minecraft!!", + "I hope you know every time I add a new quote I have a stroke making sure it shows up right because I have to gamble continously to get it to show up", + "Fun fact: The opening animation was the first thing I made in this rewrite. It has been 99% unchanged.", + "The background during the opening animation looks very wrong on Chromium, but its fine on Firefox... oops!", + "Getting donations? As a minor? I'll keep dreaming..." ], "titles": [ "World's Worst Developer" @@ -360,8 +370,7 @@ "words": [ "Arch" ], - "color": "rgb(0, 255, 255)", - "caseInsensitive": true + "color": "rgb(0, 255, 255)" }, { "words": [ diff --git a/pageUpdater.js b/pageUpdater.js index 9bfbbc6..b4e35d3 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -162,14 +162,14 @@ function highlighter(json, full = true, linkParent = false) { var startContent = element.content.substring(spanStart - 1, termIndex) var endContent = element.content.substring(termIndex + termKey.length, spanEnd) - if (startContent.includes("(") && !endContent.includes(")")) { - spanEnd = element.content.indexOf(")", spanStart) + 1 - endContent = element.content.substring(termIndex + termKey.length, spanEnd) - } - else if (endContent.includes(")") && !startContent.includes("(")) { - spanStart = element.content.substring(0, spanStart).lastIndexOf("(") - startContent = element.content.substring(spanStart - 1, termIndex) - } + // if (startContent.includes("(") && !endContent.includes(")")) { + // spanEnd = element.content.indexOf(")", spanStart) + 1 + // endContent = element.content.substring(termIndex + termKey.length, spanEnd) + // } + // else if (endContent.includes(")") && !startContent.includes("(")) { + // spanStart = element.content.substring(0, spanStart).lastIndexOf("(") + // startContent = element.content.substring(spanStart - 1, termIndex) + // } var style = termProps.style || "" var classes = termProps.classes || "" @@ -265,7 +265,8 @@ function converter(html, dynamic = true) {

Home Socials Stats - Nerd FAQ

+ Nerd FAQ + Blog `, "CUSTOM_STATUS": () => { if (api.lanyard.custom_status) { diff --git a/static/blog/index.html b/static/blog/index.html index 8f2ee88..1a1ef18 100644 --- a/static/blog/index.html +++ b/static/blog/index.html @@ -25,7 +25,7 @@

Blog

Welcome to my blog! Where I go on nonsensical rants about uninteresting and unimportant topics. The blog just went through a MAJOR rewrite, so expect bugs!

-
+

{BLOG_POSTS}
diff --git a/static/index.html b/static/index.html index 05a68c4..9622bb5 100644 --- a/static/index.html +++ b/static/index.html @@ -86,9 +86,6 @@

Socials

{PATH_SOCIALS}
-


FAQ

- See the full FAQ here! - {PATH_FAQ} {SELECTED_VIDEO} diff --git a/static/main.js b/static/main.js index dce14ef..d8fa56a 100644 --- a/static/main.js +++ b/static/main.js @@ -131,7 +131,7 @@ function spinLoop() { function secondLoop() { $(".durationBarFormatter").each((_, item) => { item = $(item) - item.text(`${timeFormatter((Date.now() - item.attr("data-start")))}/${timeFormatter((item.attr("data-end") - item.attr("data-start")))}`) + item.text(`${timeFormatter((Math.min(Date.now(), item.attr("data-end")) - item.attr("data-start")))}/${timeFormatter((item.attr("data-end") - item.attr("data-start")))}`) }) $(".timeEstimate").each((_, item) => {