{I" class:ETI"BundledAsset;FI"logical_path;TI"+forever_style_guide/account-popover.js;FI" pathname;TI"s/Users/nmcclay/Documents/git/forever-style-guide/app/assets/javascripts/forever_style_guide/account-popover.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+=¿VI" length;Ti›I" digest;TI"%0e9668740c300543e896d836d94821b4;FI" source;TI"›// Trigger account popovers $(function () { $('[data-toggle="popover-desktop"]').popover({ html: true, content: function () { return $('.account-popover').html(); }, template: '', container: '.account-popover-container', placement: 'bottom' }) $('[data-toggle="popover-mobile"]').popover({ html: true, content: function () { return $('.account-popover').html(); }, template: '', container: '.account-popover-container-mobile', placement: 'bottom' }) }); // Compare height of viewport against height of header on popover expansion $(function () { $('.account-popover-trigger').on('shown.bs.popover', function () { var windowHeight = $(window).height(); $(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'); }; }) }) // unfix body on popover close $('.account-popover-trigger').on('hidden.bs.popover', function () { $('body').removeClass('body-fixed'); $('#header-is_fixed').removeClass('is_scrolling'); }) // hide account popover on toggle nav close $('#header-is_fixed .navbar-collapse').on('hide.bs.collapse', function () { $('.popover.account-popover').popover('hide'); }) }); ;TI"required_assets_digest;TI"%411ec6b54f6d192b9383851e70bbb38f;FI" _version;TI"%2be930bcbfd3c3e00190e2193dda5c7c;F