mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-13 20:36:52 +00:00
parent
d4c03fe1be
commit
f76dc766a8
@ -23,7 +23,7 @@ document.querySelector('.site-title').addEventListener('contextmenu', function(e
|
||||
const changeNavColor = () => {
|
||||
const scrollPosition = document.documentElement.scrollTop;
|
||||
const nav = document.querySelector("header");
|
||||
if (scrollPosition <= 10) {
|
||||
if (scrollPosition <= 1) {
|
||||
nav.classList.add("dark");
|
||||
} else {
|
||||
nav.classList.remove("dark");
|
||||
|
Loading…
x
Reference in New Issue
Block a user