Sha256: 8cbb7194868992adcc9183a57f9b22f1dcd79ecc01926231ea9a85d13345d699

Contents?: true

Size: 1.86 KB

Versions: 5

Compression:

Stored size: 1.86 KB

Contents

{I"
class:ETI"ProcessedAsset;FI"logical_path;TI"%forever_style_guide/nav-fixed.js;FI"
pathname;TI"m/Users/nmcclay/Documents/git/forever-style-guide/app/assets/javascripts/forever_style_guide/nav-fixed.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+׆?VI"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"dependency_digest;TI"%d315d599d8e043529eb415da9a1d0065;FI"required_paths;T[I"m/Users/nmcclay/Documents/git/forever-style-guide/app/assets/javascripts/forever_style_guide/nav-fixed.js;FI"dependency_paths;T[{I"	path;TI"m/Users/nmcclay/Documents/git/forever-style-guide/app/assets/javascripts/forever_style_guide/nav-fixed.js;FI"
mtime;TI"2015-11-08T12:31:03-05:00;TI"digest;TI"%e14fb679ec92a8ef9ea2ca706dabceac;FI"
_version;TI"%2be930bcbfd3c3e00190e2193dda5c7c;F

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
forever_style_guide-1.2.10 test/dummy/tmp/cache/assets/development/sprockets/3a0cf8c3180b85ec2907931f51288574
forever_style_guide-1.2.9 test/dummy/tmp/cache/assets/development/sprockets/3a0cf8c3180b85ec2907931f51288574
forever_style_guide-1.2.8 test/dummy/tmp/cache/assets/development/sprockets/3a0cf8c3180b85ec2907931f51288574
forever_style_guide-1.2.7 test/dummy/tmp/cache/assets/development/sprockets/3a0cf8c3180b85ec2907931f51288574
forever_style_guide-1.2.5 test/dummy/tmp/cache/assets/development/sprockets/3a0cf8c3180b85ec2907931f51288574