From ae981c2adb477907c7d6f63495ddddbcbb1dc953 Mon Sep 17 00:00:00 2001 From: moon Date: Sat, 7 Mar 2026 13:08:48 +0200 Subject: [PATCH] made navbar and sidebars dynamic, cba editing all of them each time i do an update --- components.js | 110 +++++++++++ counter.js | 1 - index.html | 492 ++++++++++++++++++++++++-------------------------- reviews.html | 314 ++++++++++++++++++++++++++++++++ 4 files changed, 658 insertions(+), 259 deletions(-) create mode 100644 components.js delete mode 100644 counter.js create mode 100644 reviews.html diff --git a/components.js b/components.js new file mode 100644 index 0000000..63528f1 --- /dev/null +++ b/components.js @@ -0,0 +1,110 @@ +document.addEventListener("DOMContentLoaded", function () { + // Create the navbar HTML + const navbar = ` + `; + + // Inject it into the placeholder + const navPlaceholder = document.getElementById("navbar-container"); + if (navPlaceholder) navPlaceholder.innerHTML = navbar; + + const leftSidebar = ` +

Updates (Content)

+
+

+ This is where things like new things put on the website + are shown, if I consider them important enough to + remember to add :p +

+ +
+ + + +
+

Welcome to the website!

+

Not much here for now :)

+

+ Just barely had stuff changed after being made with + sadgrl.online layout maker +

-

- Cat Ipsum -

-

Rub my belly hiss swipe at owner's legs sniff catnip and act crazy growl at dogs in my sleep sit on the laptop for hiss at vacuum cleaner i like to spend my days sleeping and eating fishes that my human fished for me.

+

- Cat Ipsum -

+

+ Rub my belly hiss swipe at owner's legs sniff catnip and act + crazy growl at dogs in my sleep sit on the laptop for hiss + at vacuum cleaner i like to spend my days sleeping and + eating fishes that my human fished for me. +

-

Head nudges eat my own ears. Hey! you there, with the hands why can't i catch that stupid red dot, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff, or roll over and sun my belly curl up and sleep on the freshly laundered towels.

+

+ Head nudges eat my own ears. Hey! you there, with the hands + why can't i catch that stupid red dot, shed everywhere shed + everywhere stretching attack your ankles chase the red dot, + hairball run catnip eat the grass sniff, or roll over and + sun my belly curl up and sleep on the freshly laundered + towels. +

+
+ + + + + + + - \ No newline at end of file + #navbar ul { + flex-wrap: wrap; + } + } + + + diff --git a/reviews.html b/reviews.html new file mode 100644 index 0000000..da47983 --- /dev/null +++ b/reviews.html @@ -0,0 +1,314 @@ + +
+ +
+ +
+ +
+ + + +
+

Reviews!

+

Categories

+ +
+ + +
+ +
+
+ + + +