{:uriI"×file:///Users/zschweitzer/git/forever-style-guide/app/assets/javascripts/forever_style_guide/nav-fixed.js?type=application/javascript&pipeline=self&id=645afd4cefc12192d40c9ff44b258141f354163d44ff0ea0e1d5da0acdac8db9:ET:load_pathI"F/Users/zschweitzer/git/forever-style-guide/app/assets/javascripts;T: filenameI"g/Users/zschweitzer/git/forever-style-guide/app/assets/javascripts/forever_style_guide/nav-fixed.js;T: nameI""forever_style_guide/nav-fixed;T:logical_pathI"*forever_style_guide/nav-fixed.self.js;T:content_typeI"application/javascript;T: sourceI"$(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'); }) }); ;T: metadata{ :dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"ufile-digest:///Users/zschweitzer/git/forever-style-guide/app/assets/javascripts/forever_style_guide/nav-fixed.js;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%XK˨)Hý‡¦ä-œ?êÒ©šï”3zCBc"pZ: lengthi:dependencies_digest"%¨{'mò†ÍCX O±5q_?“Q* ñ”ÆïkhWÃñM¿:idI"E645afd4cefc12192d40c9ff44b258141f354163d44ff0ea0e1d5da0acdac8db9;F: mtimel+¦VV