website/layouts/partials/scripts.html

13 lines
423 B
HTML

<script src="/js/jquery.slim.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script>
window.addEventListener("scroll", function() {
if (window.scrollY > 100) {
document.getElementById('mainnav').classList.add("scrolled");
} else {
document.getElementById('mainnav').classList.remove("scrolled");
}
});
document.getElementById('mainnav').classList.add("beginscroll");
</script>