diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-07-26 21:33:38 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-07-26 21:33:38 -0400 |
commit | 57e01f25875ca4718b5ce0d7ef291a71952174e6 (patch) | |
tree | 45613aaac5ba05d54ea192a7522f6c9677a5b6d4 /public/js/app.js | |
parent | 63a5fcece01d1093dc1604c7f9fba67f35f4eb44 (diff) | |
download | thedroneely.com-57e01f25875ca4718b5ce0d7ef291a71952174e6.tar.gz thedroneely.com-57e01f25875ca4718b5ce0d7ef291a71952174e6.tar.bz2 thedroneely.com-57e01f25875ca4718b5ce0d7ef291a71952174e6.zip |
public/js/app: Only disable dynamic navigation bar
Diffstat (limited to 'public/js/app.js')
-rw-r--r-- | public/js/app.js | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/public/js/app.js b/public/js/app.js index 4c25b62..e5a26ab 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -87,26 +87,25 @@ var previousPosition = window.pageYOffset; var navbar = document.getElementById("navbar"); var navbarHeight = navbar.offsetHeight; -/* + window.onscroll = function() { remClass(activeMenu, 'is-active'); remClass(activeBurger, 'is-active'); remClass(activeBurgerCompact, 'is-active'); - var currentPosition = window.pageYOffset; - var velocity = previousPosition - currentPosition; + //var currentPosition = window.pageYOffset; + //var velocity = previousPosition - currentPosition; - if (velocity > 55 || currentPosition < navbarHeight) { - remClass(navbar, 'navbar__headroom'); - } else if (velocity < 0) { - addClass(navbar, 'navbar__headroom'); - } + //if (velocity > 55 || currentPosition < navbarHeight) { + // remClass(navbar, 'navbar__headroom'); + //} else if (velocity < 0) { + // addClass(navbar, 'navbar__headroom'); + //} - previousPosition = currentPosition; + //previousPosition = currentPosition; }; -*/ /** * Medium Zoom 1.0.4 |