website/layouts/partials/scripts.html

14 lines
492 B
HTML
Raw Normal View History

2023-02-09 10:48:50 +00:00
<script src="/js/jquery.slim.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
2024-07-07 16:52:43 +00:00
<script src="https://js.hcaptcha.com/1/api.js" async defer></script>
<script>
window.addEventListener("scroll", function() {
if (window.scrollY > 100) {
2023-02-09 10:48:50 +00:00
document.getElementById('mainnav').classList.add("scrolled");
} else {
2023-02-09 10:48:50 +00:00
document.getElementById('mainnav').classList.remove("scrolled");
}
});
2023-02-09 10:48:50 +00:00
document.getElementById('mainnav').classList.add("beginscroll");
</script>