diff --git a/index.html b/index.html index 5f8e752..5b6787a 100644 --- a/index.html +++ b/index.html @@ -44,6 +44,15 @@ function closeNav() { document.getElementById("mySidenav").style.width = "0"; } + + /* Manage navigation visibility */ + var prevScrollpos = window.pageYOffset; + window.onscroll = function() { + var currentScrollpos = window.pageYOffset; + var visibility = (prevScrollpos > currentScrollpos) ? "visible" : "hidden"; + document.getElementById("fixedbuttondiv").style.visibility = visibility; + prevScrollpos = currentScrollpos; + } @@ -823,7 +832,7 @@ -
+