aboutsummaryrefslogtreecommitdiff
path: root/public/js/app.js
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-07-24 03:27:38 -0400
committerThedro Neely <thedroneely@gmail.com>2019-07-24 03:27:38 -0400
commit6b82b6c389638a8ebdcd1b399378fa2951a8352c (patch)
tree3891a59db36a387dc68b9abc448328436f2e094e /public/js/app.js
parentad8046e6323f31442615c85b2de5e5787ec7126e (diff)
downloadthedroneely.com-6b82b6c389638a8ebdcd1b399378fa2951a8352c.tar.gz
thedroneely.com-6b82b6c389638a8ebdcd1b399378fa2951a8352c.tar.bz2
thedroneely.com-6b82b6c389638a8ebdcd1b399378fa2951a8352c.zip
public/js/app: Make navigator sticky for now
Diffstat (limited to 'public/js/app.js')
-rw-r--r--public/js/app.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/public/js/app.js b/public/js/app.js
index a96c168..4c25b62 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -87,6 +87,7 @@ var previousPosition = window.pageYOffset;
var navbar = document.getElementById("navbar");
var navbarHeight = navbar.offsetHeight;
+/*
window.onscroll = function() {
remClass(activeMenu, 'is-active');
@@ -105,7 +106,7 @@ window.onscroll = function() {
previousPosition = currentPosition;
};
-
+*/
/**
* Medium Zoom 1.0.4
@@ -595,4 +596,4 @@ window.onscroll = function() {
*/
imageZoom = mediumZoom('[data-image-zoom]');
imageZoom.on('open', function(event) { addClass(navbar, 'navbar__headroom'); });
-imageZoom.on('close', function(event) { if (window.pageYOffset < navbarHeight) { remClass(navbar, 'navbar__headroom'); }; });
+imageZoom.on('close', function(event) { remClass(navbar, 'navbar__headroom'); });