hugo-bearblog : javascript indentation lookup

This commit is contained in:
minoplhy 2024-03-09 19:06:39 +07:00
parent afc4681a01
commit f2052084ea
Signed by: minoplhy
GPG Key ID: 41D406044E2434BF
2 changed files with 10 additions and 10 deletions

View File

@ -18,9 +18,9 @@
function setRandomColors() {
links.forEach(link => {
link.style.color = getRandomColor();
});
links.forEach(link => {
link.style.color = getRandomColor();
});
}
window.onload = setRandomColors;

View File

@ -4,13 +4,13 @@
}
function darkmode() {
if (localStorage.getItem('dark-mode') === 'false') {
darkmode_enable();
} else if (localStorage.getItem('dark-mode') === null) {
darkmode_enable();
} else {
darkmode_disable();
}
if (localStorage.getItem('dark-mode') === 'false') {
darkmode_enable();
} else if (localStorage.getItem('dark-mode') === null) {
darkmode_enable();
} else {
darkmode_disable();
}
}
function darkmode_enable() {