This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $window = $(window); | |
var $header = $('.sticky-header'); | |
var scrolling = false; | |
var previousTop = 0; | |
var currentTop = 0; | |
var scrollDelta = 10; | |
var scrollOffset = 150; | |
$header.once('init-autohide-header', function() { | |
$window.on('scroll', function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Adds 'unloading' class to `html` tag when navigating away from the page | |
// | |
// Make sure downloads open in another page with target="_blank" | |
// "beforeunload" is fired any time a link is clicked. | |
// If the link points to a file to download, the user won't be actually | |
// leaving the page, but beforeunload will still have fired. | |
(function () { | |
var unload = {}; | |
unload.init = function () { |
NewerOlder