diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-05-11 02:22:21 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-05-11 02:22:21 -0400 |
commit | 5e2113de323bf78cedda628043b10cd1c7f987d9 (patch) | |
tree | a75bd5b72e15de8f03de81d9b49d00207f206402 /public/js/app.js | |
parent | 9d9a9863e6507b0fa52744917a96b3ebdc615757 (diff) | |
download | thedroneely.com-5e2113de323bf78cedda628043b10cd1c7f987d9.tar.gz thedroneely.com-5e2113de323bf78cedda628043b10cd1c7f987d9.tar.bz2 thedroneely.com-5e2113de323bf78cedda628043b10cd1c7f987d9.zip |
public/js/app: Remove initial dynamic navigation bar check
Diffstat (limited to 'public/js/app.js')
-rw-r--r-- | public/js/app.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/public/js/app.js b/public/js/app.js index 605b2b4..2d6be50 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -86,11 +86,8 @@ var previousPosition = window.pageYOffset; var navbar = document.getElementById("navbar"); var navbarHeight = navbar.offsetHeight; -if (previousPosition > navbarHeight) { - addClass(navbar, 'navbar__headroom'); -} - window.onscroll = function() { + remClass(activeMenu, 'is-active'); remClass(activeBurger, 'is-active'); remClass(activeBurgerCompact, 'is-active'); @@ -105,4 +102,5 @@ window.onscroll = function() { } previousPosition = currentPosition; + }; |