{I" class:ETI"BundledAsset;FI"logical_path;TI"%forever_style_guide/nav-fixed.js;FI" pathname;TI"m/Users/nmcclay/Documents/git/forever-style-guide/app/assets/javascripts/forever_style_guide/nav-fixed.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+׆?VI" length;TiI" digest;TI"%e14fb679ec92a8ef9ea2ca706dabceac;FI" source;TI"$(function () { $('#header-is_fixed .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-is_fixed').outerHeight()); if (navHeight >= windowHeight) { $('body').addClass('body-fixed'); $('#header-is_fixed').css('max-height', windowHeight); $('#header-is_fixed').addClass('is_scrolling'); }; }, 250); $('.popover.account-popover').popover('hide'); }) // unfix body on dropdown close $('#header-is_fixed .dropdown').on('hidden.bs.dropdown', function () { $('body').removeClass('body-fixed'); $('#header-is_fixed').removeClass('is_scrolling'); }) // unfix body on toggle nav close $('#header-is_fixed .navbar-collapse').on('hidden.bs.collapse', function () { $('body').removeClass('body-fixed'); $('#header-is_fixed').removeClass('is_scrolling'); }) }); ;TI"required_assets_digest;TI"%d315d599d8e043529eb415da9a1d0065;FI" _version;TI"%2be930bcbfd3c3e00190e2193dda5c7c;F