{I" class:ETI"ProcessedAsset;FI"logical_path;TI"(forever_style_guide/promo-banner.js;FI" pathname;TI"j/Users/zschweitzer/git/forever-style-guide/app/assets/javascripts/forever_style_guide/promo-banner.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+XÝTVI" length;Ti`I" digest;TI"%2a181bb8e9fa7588a08e09e3d0d9abb8;FI" source;TI"`$(function() { $(window).bind('scroll', function() { if (($('.header-has-promo').length) && (!$('.navbar-collapse').hasClass('in'))) { var bannerHeight = 60; if ($(window).scrollTop() > bannerHeight) { $('.header-has-promo').addClass('header-is-fixed'); $('body').addClass('body-has-fixed_header'); $('.promo-banner').addClass('hide'); } else { $('.header-has-promo').removeClass('header-is-fixed'); $('body').removeClass('body-has-fixed_header'); $('.promo-banner').removeClass('hide'); } } }); }); $(function () { $('.header-has-promo .dropdown').on('shown.bs.dropdown', function () { var windowHeight = $(window).height(); // this timeout allows for the dropdown item to fully expand before height is calculated setTimeout(function() { var navHeight = ($('.header-has-promo').outerHeight()); if (navHeight >= windowHeight) { $('body').addClass('body-is-fixed'); $('.header-has-promo').css('max-height', windowHeight); $('.header-has-promo').addClass('is-scrolling'); }; }, 250); $('.popover.account-popover').popover('hide'); }) // unfix body on dropdown close $('.header-has-promo .dropdown').on('hidden.bs.dropdown', function () { $('body').removeClass('body-is-fixed'); $('.header-has-promo').removeClass('is-scrolling'); }) // unfix body on toggle nav close $('.header-has-promo .navbar-collapse').on('hidden.bs.collapse', function () { $('body').removeClass('body-is-fixed'); $('.header-has-promo').removeClass('is-scrolling'); }) }); ;TI"dependency_digest;TI"%985ce74073525b93c6f200650aa216db;FI"required_paths;T[I"j/Users/zschweitzer/git/forever-style-guide/app/assets/javascripts/forever_style_guide/promo-banner.js;FI"dependency_paths;T[{I" path;TI"j/Users/zschweitzer/git/forever-style-guide/app/assets/javascripts/forever_style_guide/promo-banner.js;FI" mtime;TI"2015-11-24T16:57:44-05:00;TI" digest;TI"%2a181bb8e9fa7588a08e09e3d0d9abb8;FI" _version;TI"%2be930bcbfd3c3e00190e2193dda5c7c;F