moved js files in public into js and css into css folder

This commit is contained in:
2026-09-22 21:55:02 +02:00
parent 99a3277e64
commit 08f5f3f8d9
40 changed files with 1772 additions and 1555 deletions
+14
View File
@@ -0,0 +1,14 @@
(() => {
const themes = new Set(["fakegpt", "fraud", "germini", "slopilot", "beta-ai", "confusity"]);
const storedTheme = localStorage.getItem("krishd-theme");
const storedMode = localStorage.getItem("krishd-theme-mode");
const theme = themes.has(storedTheme) ? storedTheme : "fakegpt";
const mode = storedMode === "dark" ? "dark" : "light";
document.documentElement.dataset.theme = theme;
document.documentElement.dataset.themeMode = mode;
document.addEventListener("readystatechange", () => {
if (!document.body) return;
document.body.dataset.theme = theme;
document.body.dataset.themeMode = mode;
});
})();