Slow overhaul of the landing page

This commit is contained in:
Blake Ridgway 2025-02-05 08:07:56 -06:00
parent f26bad9bac
commit 2481a71f71
13 changed files with 386 additions and 59 deletions

View file

@ -16,3 +16,12 @@ document.getElementById("notify-button").addEventListener("click", async () => {
alert("Please enter a valid email.");
}
});
window.addEventListener('scroll', function() {
var footerHeight = document.querySelector('footer').offsetHeight;
if (window.scrollY + window.innerHeight >= document.body.offsetHeight - footerHeight) {
document.querySelector('footer').style.display = 'block';
} else {
document.querySelector('footer').style.display = 'none';
}
});