cleanup debugg data
This commit is contained in:
parent
a7345e90dd
commit
d761e6dc64
|
@ -54,14 +54,12 @@
|
||||||
: "light");
|
: "light");
|
||||||
document.documentElement.dataset.theme = theme;
|
document.documentElement.dataset.theme = theme;
|
||||||
document.getElementById("theme-logo").src = theme === "dark" ? darkLogo : lightLogo;
|
document.getElementById("theme-logo").src = theme === "dark" ? darkLogo : lightLogo;
|
||||||
console.log("lightLogo:", ligthLogo, "darkLogo:", darkLogo);
|
|
||||||
|
|
||||||
function changeTheme() {
|
function changeTheme() {
|
||||||
theme = theme === "dark" ? "light" : "dark";
|
theme = theme === "dark" ? "light" : "dark";
|
||||||
localStorage.setItem("theme", theme);
|
localStorage.setItem("theme", theme);
|
||||||
document.documentElement.dataset.theme = theme;
|
document.documentElement.dataset.theme = theme;
|
||||||
document.getElementById("theme-logo").src = theme === "dark" ? darkLogo : lightLogo;
|
document.getElementById("theme-logo").src = theme === "dark" ? darkLogo : lightLogo;
|
||||||
console.log("lightLogo:", ligthLogo, "darkLogo:", darkLogo);
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<button class="button" onclick="changeTheme()">
|
<button class="button" onclick="changeTheme()">
|
||||||
|
|
Loading…
Reference in New Issue