Skip to content

Commit

Permalink
navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
sau-mili committed Jun 1, 2024
1 parent 29e31e7 commit f96fd79
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@
document.documentElement.scrollTop = 0;
}
</script>
=======

<!-- Navbar -->
<div class="navbar">
Expand Down Expand Up @@ -1201,5 +1200,12 @@ <h4 class="footer_title">Quick Links</h4>
allowedOrigins: [],
});
</script>

<script type="text/javascript">
window.addEventListener("scroll", function(){
var header= document.querySelector("nav");
header.classList.toggle("sticky", window.scrollY >10)
})
</script>
</body>
</html>

0 comments on commit f96fd79

Please sign in to comment.