edit: passage en mode off + webring

This commit is contained in:
vgaNAR6ta committed 2026-09-06 23:36:14 +02:00
1 parent 5b091c3140
commit 2d06277613
211 files changed
+622 -31661

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
const container = document.querySelector('#colorBtnContainer');
const themeToggler = container.querySelector('.switch input');
const background = document.querySelector('aside > #gradient');
export function themeSwitcher(){
container.style.visibility = 'visible'
console.log('selected switch', themeToggler);
themeToggler.addEventListener('change', (event) => {
if (event.target.checked){
document.documentElement.setAttribute('data-theme', 'light');
background.style.filter = 'invert(1) saturate(333%) brightness(93%) hue-rotate(90deg)';
}else{
document.documentElement.setAttribute('data-theme', 'dark');
background.style.filter = 'unset';
}
})
}