diff --git a/script.js b/script.js index b7021285..ca89b30a 100644 --- a/script.js +++ b/script.js @@ -332,11 +332,8 @@ document.getElementById('postForm').addEventListener('submit', function (e) { window.addEventListener("scroll", function () { let navbar = document.getElementById("main-head"); - if (window.scrollY > 100) { - navbar.classList.add("shadow"); - } else { - navbar.classList.remove("shadow"); - } + if (window.scrollY > 100) navbar.classList.add("shadow"); + else navbar.classList.remove("shadow"); }); function initMap() { diff --git a/style.css b/style.css index 1688b76b..57bb02e0 100644 --- a/style.css +++ b/style.css @@ -184,7 +184,7 @@ button { } .main-head.shadow { background-color: #000; - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); } nav { display: flex;