Sneaky Snack Snakes
diff --git a/impressum.html b/impressum.html index c922973..b01c2d2 100644 --- a/impressum.html +++ b/impressum.html @@ -23,6 +23,10 @@ +Impressum
diff --git a/index.html b/index.html index c98b659..fc68ef1 100644 --- a/index.html +++ b/index.html @@ -30,6 +30,10 @@ +Sneaky Snack Snakes
diff --git a/js/script.js b/js/script.js
index df418f7..ab9dcba 100644
--- a/js/script.js
+++ b/js/script.js
@@ -70,4 +70,28 @@ function startNotenrechner() {
ausgabe.textContent =
`${punkte} von ${max} Punkten (${prozent} %) = ${berechneNote(prozent)}`;
-}
\ No newline at end of file
+}
+// Light-/Dark-Mode
+
+document.addEventListener("DOMContentLoaded", () => {
+ const themeButton = document.getElementById("theme-toggle");
+
+ if (!themeButton) return;
+
+ if (localStorage.getItem("theme") === "light") {
+ document.body.classList.add("light-mode");
+ themeButton.textContent = "🌙 Dark Mode";
+ }
+
+ themeButton.addEventListener("click", () => {
+ document.body.classList.toggle("light-mode");
+
+ if (document.body.classList.contains("light-mode")) {
+ localStorage.setItem("theme", "light");
+ themeButton.textContent = "🌙 Dark Mode";
+ } else {
+ localStorage.setItem("theme", "dark");
+ themeButton.textContent = "☀️ Light Mode";
+ }
+ });
+});
\ No newline at end of file
diff --git a/kontakt.html b/kontakt.html
index f60d9d9..af0a3f5 100644
--- a/kontakt.html
+++ b/kontakt.html
@@ -13,6 +13,11 @@
Impressum
+
+Sneaky Snack Snakes
Hier wird demnächst ein Kontaktformular eingefügt
diff --git a/notenrechner.html b/notenrechner.html index 330dddd..8bc5278 100644 --- a/notenrechner.html +++ b/notenrechner.html @@ -17,6 +17,11 @@ Impressum + +