{:uriI"file:///Users/zschweitzer/git/forever-style-guide/app/assets/javascripts/forever_style_guide/nav-fixed.js?type=application/javascript&pipeline=self&id=af5450f6773af71e2a009e04d25c66157910a9397910a7af1b15aa9eda9682b5: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"%CaGUV,OpF5Uxji:idI"Eaf5450f6773af71e2a009e04d25c66157910a9397910a7af1b15aa9eda9682b5;F: mtimel+VV