implement 404 page

This commit is contained in:
2023-08-06 15:10:13 +02:00
parent dc05908114
commit 9a0354dd7f
3 changed files with 33 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ theme_switcher.addEventListener("click", () => {
});
function changeToDarkTheme() {
theme_switcher.setAttribute("title", "turn the light on");
theme_switcher?.setAttribute("title", "turn the light on");
document.documentElement.style.setProperty("--border", "var(--dark-border)");
document.documentElement.style.setProperty("--text", "var(--dark-text)");
document.documentElement.style.setProperty("--bg", "var(--dark-bg)");
@@ -42,7 +42,7 @@ function changeToDarkTheme() {
}
function changeToLightTheme() {
theme_switcher.setAttribute("title", "turn the light off");
theme_switcher?.setAttribute("title", "turn the light off");
document.documentElement.style.setProperty("--border", "var(--light-border)");
document.documentElement.style.setProperty("--text", "var(--light-text)");
document.documentElement.style.setProperty("--bg", "var(--light-bg)");