Line 1,448: | Line 1,448: | ||
if ($(this).scrollTop() > headerHeight && !isFixed) { | if ($(this).scrollTop() > headerHeight && !isFixed) { | ||
+ | console.log('scroll'); | ||
$element.addClass("scrolled"); | $element.addClass("scrolled"); | ||
} | } | ||
if ($(this).scrollTop() < headerHeight && isFixed) { | if ($(this).scrollTop() < headerHeight && isFixed) { | ||
+ | console.log('dont scroll'); | ||
$element.removeClass("scrolled"); | $element.removeClass("scrolled"); | ||
} | } |
Revision as of 15:00, 5 October 2016