{:uriI"file:///Users/zschweitzer/git/forever-style-guide/app/assets/javascripts/forever_style_guide/nav-fixed.js?type=application/javascript&id=69b8c66dab7126bb92b9b3d9bc554e314452a69eaf334f2c113abcf0f78ebb34: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.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"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"ufile-digest:///Users/zschweitzer/git/forever-style-guide/app/assets/javascripts/forever_style_guide/nav-fixed.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TT: linkso;;{: included[I"file:///Users/zschweitzer/git/forever-style-guide/app/assets/javascripts/forever_style_guide/nav-fixed.js?type=application/javascript&pipeline=self&id=af5450f6773af71e2a009e04d25c66157910a9397910a7af1b15aa9eda9682b5;T: charsetI" utf-8;F: digest"%XK˨)H-?ҩ3zCBc"pZ: lengthi:dependencies_digest"%R7Y7W0D,QcX0e\uQ:idI"E69b8c66dab7126bb92b9b3d9bc554e314452a69eaf334f2c113abcf0f78ebb34;F: mtimel+VV