From ed193b1ef2ef525272b0f40372b771aea76304a7 Mon Sep 17 00:00:00 2001 From: jesper <118400668+k1nsej@users.noreply.github.com> Date: Wed, 22 May 2024 22:53:06 +0200 Subject: [PATCH 001/113] Created custom 404 page --- 404/index.html | 117 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 404/index.html diff --git a/404/index.html b/404/index.html new file mode 100644 index 0000000..5800b0a --- /dev/null +++ b/404/index.html @@ -0,0 +1,117 @@ + + +
+ ++ It looks like you've stumbled upon a glitch in the system. The page + you're looking for might have been moved, renamed, or simply doesn't + exist in this virtual world. +
+ What to do next? +
+ Need help?
+ If you think that this is an error feel free to open an issue on our
+ Github.
+
Thanks for visiting our Sims Information Site. Happy Simming!
+Welcome to my little Sims information site / wiki! Have fun From ac723315024d4eb8c857b2ca021638bf243fc0cb Mon Sep 17 00:00:00 2001 From: jesper <118400668+k1nsej@users.noreply.github.com> Date: Fri, 24 May 2024 11:41:24 +0200 Subject: [PATCH 004/113] Prepare script for new site --- scripts/menufooter.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/menufooter.js b/scripts/menufooter.js index d28b9c6..27dbeac 100644 --- a/scripts/menufooter.js +++ b/scripts/menufooter.js @@ -32,6 +32,8 @@ function addActiveClassToNavLinks() { console.log(currentUrl); currentUrl = currentUrl.replace("simsinfo.netlify.app", ""); console.log(currentUrl); + currentUrl = currentUrl.replace("simsinfohub.com", ""); + console.log(currentUrl); fetch("/scripts/menulinks.json") .then((response) => response.json()) From 07e6a265952e2f325d1d51f700a28eafa1b00199 Mon Sep 17 00:00:00 2001 From: jesper <118400668+k1nsej@users.noreply.github.com> Date: Fri, 24 May 2024 11:43:43 +0200 Subject: [PATCH 005/113] Added better description to console logs --- scripts/menufooter.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/menufooter.js b/scripts/menufooter.js index 27dbeac..478f1c1 100644 --- a/scripts/menufooter.js +++ b/scripts/menufooter.js @@ -17,23 +17,23 @@ function loadFooter() { function addActiveClassToNavLinks() { var currentUrl = window.location.href; - console.log(currentUrl); + console.log("Current URL: "+currentUrl); currentUrl = currentUrl.replace("localhost", ""); - console.log(currentUrl); + console.log("Removed \"localhost\". Result: "+currentUrl); currentUrl = currentUrl.replace("simsinfo.2ix.de", ""); - console.log(currentUrl); + console.log("Removed \"simsinfo.2ix.de\". Result: "+currentUrl); currentUrl = currentUrl.replace("https://", ""); - console.log(currentUrl); + console.log("Removed \"https://\". Result: "+currentUrl); currentUrl = currentUrl.replace("http://", ""); - console.log(currentUrl); + console.log("Removed \"http://\". Result: "+currentUrl); currentUrl = currentUrl.replace(":8000", ""); - console.log(currentUrl); + console.log("Removed \":8000\". Result: "+currentUrl); currentUrl = currentUrl.replace("index.html", ""); - console.log(currentUrl); + console.log("Removed \"index.html\". Result: "+currentUrl); currentUrl = currentUrl.replace("simsinfo.netlify.app", ""); - console.log(currentUrl); + console.log("Removed \"simsinfo.netlify.app\". Result: "+currentUrl); currentUrl = currentUrl.replace("simsinfohub.com", ""); - console.log(currentUrl); + console.log("Removed \"simsinfohub.com\". Result: "+currentUrl); fetch("/scripts/menulinks.json") .then((response) => response.json()) From c730d210f509f9f59d60dd77eb23ae6f6cfbd6db Mon Sep 17 00:00:00 2001 From: jesper <118400668+k1nsej@users.noreply.github.com> Date: Fri, 24 May 2024 12:35:16 +0200 Subject: [PATCH 006/113] Added an alt to the Plumbob Icon --- components/menu.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/menu.html b/components/menu.html index abae41f..ac6cefe 100644 --- a/components/menu.html +++ b/components/menu.html @@ -1,7 +1,7 @@