Slow overhaul of the landing page
This commit is contained in:
parent
f26bad9bac
commit
2481a71f71
13 changed files with 386 additions and 59 deletions
|
|
@ -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';
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue