User:ParaNorman Bates/global.js

(function{ var prevY = 0; $(window).on('scroll', function (e) { var posY = $(window).scrollTop; if (prevY < posY) { $('.wds-global-navigation-wrapper').hide } else { $('.wds-global-navigation-wrapper').show }; prevY = $(window).scrollTop; }); });