This commit is contained in:
Madelena Mak 2024-06-30 08:27:27 -04:00 committed by GitHub
parent d4c03fe1be
commit f76dc766a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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");