diff --git a/404.html b/404.html index a3cb2d7..165169d 100644 --- a/404.html +++ b/404.html @@ -5,7 +5,7 @@

Jordan Herzstein - + Jordan Herzstein - + Jordan Herzstein const lightIcon = document.getElementById("light-icon"); const darkIcon = document.getElementById("dark-icon"); - - var i = "theme" - var m = (localStorage.getItem(i) || "dark") - var d = document.documentElement.classList + var i = "theme"; + var d = document.documentElement.classList; + + var m = localStorage.getItem(i) || (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches ? "light" : "dark"); + if (m == "light") { - d.remove("dark") - d.add(m) + d.remove("dark"); + d.add(m); lightIcon.setAttribute("display", "none"); darkIcon.setAttribute("display", "block"); } else { + d.remove("light"); + d.add(m); lightIcon.setAttribute("display", "block"); darkIcon.setAttribute("display", "none"); - } - + function switchTheme() { - d.remove(m) - m = (m == "dark") ? "light" : "dark" - d.add(m) - localStorage.setItem(i, m) + d.remove(m); + m = (m == "dark") ? "light" : "dark"; + d.add(m); + localStorage.setItem(i, m); if (m == "light") { lightIcon.setAttribute("display", "none"); darkIcon.setAttribute("display", "block"); @@ -83,6 +85,15 @@

Jordan Herzstein { + const newColorScheme = e.matches ? "light" : "dark"; + if (newColorScheme !== m) { + switchTheme(); + } + }); + @@ -139,6 +150,12 @@

Error

+ + + + + + @@ -144,6 +155,12 @@

About

+ + + + + + @@ -137,6 +148,12 @@

Categories

+ + + + + + @@ -227,6 +238,12 @@

+ + + + + + @@ -150,12 +161,12 @@

Recent Posts

@@ -182,12 +190,12 @@

@@ -217,12 +222,12 @@

@@ -292,6 +297,12 @@

+ + + + + + @@ -153,6 +164,12 @@

Software

+ + + + + + @@ -284,6 +295,12 @@

References

+ + + + + + @@ -212,6 +223,12 @@

References

+ + + + + + @@ -182,6 +193,12 @@

A note about eclipse glasses

+ + + + + + @@ -160,6 +171,12 @@

Eclipse Sun Worm

+ + + + + + @@ -237,6 +248,12 @@

References

+ + + + + + @@ -121,6 +132,34 @@

Posts

+
+

@@ -557,6 +596,12 @@

+ + + + + + @@ -179,6 +190,12 @@

References

+ + + + + + @@ -218,6 +229,12 @@

Why I ended my frienship with N + + + + + + @@ -167,6 +178,12 @@

nyaa_menu

+ + + + + + @@ -319,6 +330,12 @@

References

+ + + + + + @@ -176,6 +187,12 @@

Skiff is Dead 🤡

+ + + + + + @@ -231,6 +242,12 @@

References

+ + + + + + @@ -158,6 +169,12 @@

Hugo and other site changes

+ + + + + + @@ -161,6 +172,12 @@

Welcome to YortNet

+ + + + + + @@ -177,6 +188,12 @@

+ + + + + + @@ -177,6 +188,12 @@

+ + + + + + @@ -174,6 +185,12 @@

+ + + + + + @@ -177,6 +188,12 @@

+ + + + + + @@ -171,6 +182,12 @@

+ + + + + + @@ -177,6 +188,12 @@

+ + + + + + @@ -181,6 +192,12 @@

+ + + + + + @@ -188,6 +199,12 @@

+ + + + + + @@ -174,6 +185,12 @@

+ + + + + + @@ -216,6 +227,12 @@

+ + + + + + @@ -171,6 +182,12 @@

+ + + + + + @@ -177,6 +188,12 @@

+ + + + + + @@ -177,6 +188,12 @@

+ + + + + + @@ -171,6 +182,12 @@

+ + + + + + @@ -116,9 +127,11 @@

Tags

grapheneos 1 home-assistant 1 hugo 1 + linkbuttons 1 manga 1 minecraft 1 namecheap 1 + notbyai 1 openwrt 1 oracle 2 personal 1 @@ -132,7 +145,7 @@

Tags

technology 9 themes 1 tutorial 4 - updates 4 + updates 5 vps 2 x11 1 @@ -170,6 +183,12 @@

Tags

+ + + + + +

+

+
+ +
+ + + + + + + + + + + + + + + diff --git a/tags/linkbuttons/index.xml b/tags/linkbuttons/index.xml new file mode 100644 index 0000000..a91b946 --- /dev/null +++ b/tags/linkbuttons/index.xml @@ -0,0 +1,19 @@ + + + + linkbuttons on Jordan Herzstein + /tags/linkbuttons/ + Recent content in linkbuttons on Jordan Herzstein + Hugo -- gohugo.io + Fri, 18 Oct 2024 00:00:00 +0000 + + This Site Is Not Written By AI + /posts/notbyai/ + Fri, 18 Oct 2024 00:00:00 +0000 + + /posts/notbyai/ + It may be slop, but it’s slop made by ME. + + + + diff --git a/tags/manga/index.html b/tags/manga/index.html index f042d5e..ad43f8f 100644 --- a/tags/manga/index.html +++ b/tags/manga/index.html @@ -5,7 +5,7 @@

Jordan Herzstein - + Jordan Herzstein - + Jordan Herzstein const lightIcon = document.getElementById("light-icon"); const darkIcon = document.getElementById("dark-icon"); - - var i = "theme" - var m = (localStorage.getItem(i) || "dark") - var d = document.documentElement.classList + var i = "theme"; + var d = document.documentElement.classList; + + var m = localStorage.getItem(i) || (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches ? "light" : "dark"); + if (m == "light") { - d.remove("dark") - d.add(m) + d.remove("dark"); + d.add(m); lightIcon.setAttribute("display", "none"); darkIcon.setAttribute("display", "block"); } else { + d.remove("light"); + d.add(m); lightIcon.setAttribute("display", "block"); darkIcon.setAttribute("display", "none"); - } - + function switchTheme() { - d.remove(m) - m = (m == "dark") ? "light" : "dark" - d.add(m) - localStorage.setItem(i, m) + d.remove(m); + m = (m == "dark") ? "light" : "dark"; + d.add(m); + localStorage.setItem(i, m); if (m == "light") { lightIcon.setAttribute("display", "none"); darkIcon.setAttribute("display", "block"); @@ -83,6 +85,15 @@

Jordan Herzstein { + const newColorScheme = e.matches ? "light" : "dark"; + if (newColorScheme !== m) { + switchTheme(); + } + }); + @@ -174,6 +185,12 @@

+ + + + + + @@ -177,6 +188,12 @@

+ + + + + + @@ -181,6 +192,12 @@

+ + + + + +

+ +
+ +
+ + + + + + + + + + + + + + + diff --git a/tags/notbyai/index.xml b/tags/notbyai/index.xml new file mode 100644 index 0000000..51b7791 --- /dev/null +++ b/tags/notbyai/index.xml @@ -0,0 +1,19 @@ + + + + notbyai on Jordan Herzstein + /tags/notbyai/ + Recent content in notbyai on Jordan Herzstein + Hugo -- gohugo.io + Fri, 18 Oct 2024 00:00:00 +0000 + + This Site Is Not Written By AI + /posts/notbyai/ + Fri, 18 Oct 2024 00:00:00 +0000 + + /posts/notbyai/ + It may be slop, but it’s slop made by ME. + + + + diff --git a/tags/openwrt/index.html b/tags/openwrt/index.html index 1794afa..0332036 100644 --- a/tags/openwrt/index.html +++ b/tags/openwrt/index.html @@ -5,7 +5,7 @@

Jordan Herzstein - + Jordan Herzstein - + Jordan Herzstein const lightIcon = document.getElementById("light-icon"); const darkIcon = document.getElementById("dark-icon"); - - var i = "theme" - var m = (localStorage.getItem(i) || "dark") - var d = document.documentElement.classList + var i = "theme"; + var d = document.documentElement.classList; + + var m = localStorage.getItem(i) || (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches ? "light" : "dark"); + if (m == "light") { - d.remove("dark") - d.add(m) + d.remove("dark"); + d.add(m); lightIcon.setAttribute("display", "none"); darkIcon.setAttribute("display", "block"); } else { + d.remove("light"); + d.add(m); lightIcon.setAttribute("display", "block"); darkIcon.setAttribute("display", "none"); - } - + function switchTheme() { - d.remove(m) - m = (m == "dark") ? "light" : "dark" - d.add(m) - localStorage.setItem(i, m) + d.remove(m); + m = (m == "dark") ? "light" : "dark"; + d.add(m); + localStorage.setItem(i, m); if (m == "light") { lightIcon.setAttribute("display", "none"); darkIcon.setAttribute("display", "block"); @@ -83,6 +85,15 @@

Jordan Herzstein { + const newColorScheme = e.matches ? "light" : "dark"; + if (newColorScheme !== m) { + switchTheme(); + } + }); + @@ -177,6 +188,12 @@

+ + + + + + @@ -209,6 +220,12 @@

+ + + + + + @@ -177,6 +188,12 @@

+ + + + + + @@ -181,6 +192,12 @@

+ + + + + + @@ -174,6 +185,12 @@

+ + + + + + @@ -177,6 +188,12 @@

+ + + + + + @@ -177,6 +188,12 @@

+ + + + + + @@ -177,6 +188,12 @@

+ + + + + + @@ -177,6 +188,12 @@

+ + + + + + @@ -177,6 +188,12 @@

+ + + + + + @@ -452,6 +463,12 @@

+ + + + + + @@ -171,6 +182,12 @@

+ + + + + + @@ -279,6 +290,12 @@

+ + + + + + @@ -105,6 +116,35 @@

Tag:updates

+ +

@@ -271,6 +311,12 @@

+ + + + + + @@ -209,6 +220,12 @@

+ + + + + + @@ -174,6 +185,12 @@

+ + + + + +