Sha256: 3dfc7b67d81a678423ffe0c4aea1366ff0a383c6ebf3d0993f4b9b31c2cf3fd0

Contents?: true

Size: 1.49 KB

Versions: 4

Compression:

Stored size: 1.49 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"%forever_style_guide/nav-fixed.js;FI"
pathname;TI"i/Users/AWeinstein/github/forever-style-guide/app/assets/javascripts/forever_style_guide/nav-fixed.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+e?»WI"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

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
forever_style_guide-3.0.27 test/dummy/tmp/cache/assets/development/sprockets/3e29e26211994c88b2d6c0e4dd50c8ab
forever_style_guide-3.0.27 test/dummy/tmp/cache/assets/development/sprockets/7828a7d0f08ea592b02b4392bcdd186e
forever_style_guide-3.0.25 test/dummy/tmp/cache/assets/development/sprockets/3e29e26211994c88b2d6c0e4dd50c8ab
forever_style_guide-3.0.25 test/dummy/tmp/cache/assets/development/sprockets/7828a7d0f08ea592b02b4392bcdd186e