styleguide: Add WIP message
All checks were successful
/ build (push) Successful in 10s

This commit is contained in:
kritzl 2025-02-17 01:14:41 +01:00
commit 0214631b36
Signed by: kritzl
SSH key fingerprint: SHA256:5BmINP9VjZWaUk5Z+2CTut1KFhwLtd0ZynMekKbtViM
10 changed files with 136 additions and 15 deletions

View file

@ -4,7 +4,7 @@ document.querySelector('nav > button').addEventListener('click', (e) => {
function applyTheme(theme){
const html = document.querySelector('html')
document.cookie = `theme=${theme}; expires=; SameSite=Strict; Secure`
document.cookie = `theme=${theme}; path=/; expires=; SameSite=Strict; Secure`
html.classList.remove('dark', 'light')
html.classList.add(theme)
}