hugo-bearblog : javascript indentation lookup
This commit is contained in:
parent
afc4681a01
commit
f2052084ea
@ -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;
|
||||||
|
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user