added a change of theme depending at the time
This commit is contained in:
parent
2349c3ad0b
commit
be244b68c7
@ -30,3 +30,12 @@ themeToggle.addEventListener('click', () => {
|
|||||||
disableDark();
|
disableDark();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const today = new Date();
|
||||||
|
const Hr = today.getHours();
|
||||||
|
|
||||||
|
if (Hr >= 19 || Hr < 5) {
|
||||||
|
enableDark();
|
||||||
|
} else {
|
||||||
|
disableDark();
|
||||||
|
}Wasd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user