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() { function setRandomColors() {
links.forEach(link => { links.forEach(link => {
link.style.color = getRandomColor(); link.style.color = getRandomColor();
}); });
} }
window.onload = setRandomColors; window.onload = setRandomColors;

View File

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