Sha256: 0f93a94eb63e1dc834f781102161e1adc365567ba141efc6afe51adb029c95a7

Contents?: true

Size: 1.48 KB

Versions: 62

Compression:

Stored size: 1.48 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"%forever_style_guide/nav-fixed.js;FI"
pathname;TI"g/Users/zschweitzer/git/forever-style-guide/app/assets/javascripts/forever_style_guide/nav-fixed.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+¦VVI"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

62 entries across 31 versions & 1 rubygems

Version Path
forever_style_guide-3.0.15 test/dummy/tmp/cache/assets/development/sprockets/08fb979563f98e23dc74bad666e65672
forever_style_guide-3.0.15 test/dummy/tmp/cache/assets/development/sprockets/d48da4fa2522f27d243c8ae561f30823
forever_style_guide-3.0.14 test/dummy/tmp/cache/assets/development/sprockets/08fb979563f98e23dc74bad666e65672
forever_style_guide-3.0.14 test/dummy/tmp/cache/assets/development/sprockets/d48da4fa2522f27d243c8ae561f30823
forever_style_guide-3.0.13 test/dummy/tmp/cache/assets/development/sprockets/08fb979563f98e23dc74bad666e65672
forever_style_guide-3.0.13 test/dummy/tmp/cache/assets/development/sprockets/d48da4fa2522f27d243c8ae561f30823
forever_style_guide-3.0.12 test/dummy/tmp/cache/assets/development/sprockets/08fb979563f98e23dc74bad666e65672
forever_style_guide-3.0.12 test/dummy/tmp/cache/assets/development/sprockets/d48da4fa2522f27d243c8ae561f30823
forever_style_guide-3.0.11 test/dummy/tmp/cache/assets/development/sprockets/08fb979563f98e23dc74bad666e65672
forever_style_guide-3.0.11 test/dummy/tmp/cache/assets/development/sprockets/d48da4fa2522f27d243c8ae561f30823
forever_style_guide-3.0.10 test/dummy/tmp/cache/assets/development/sprockets/08fb979563f98e23dc74bad666e65672
forever_style_guide-3.0.10 test/dummy/tmp/cache/assets/development/sprockets/d48da4fa2522f27d243c8ae561f30823
forever_style_guide-3.0.9 test/dummy/tmp/cache/assets/development/sprockets/d48da4fa2522f27d243c8ae561f30823
forever_style_guide-3.0.9 test/dummy/tmp/cache/assets/development/sprockets/08fb979563f98e23dc74bad666e65672
forever_style_guide-3.0.8 test/dummy/tmp/cache/assets/development/sprockets/d48da4fa2522f27d243c8ae561f30823
forever_style_guide-3.0.8 test/dummy/tmp/cache/assets/development/sprockets/08fb979563f98e23dc74bad666e65672
forever_style_guide-3.0.7 test/dummy/tmp/cache/assets/development/sprockets/d48da4fa2522f27d243c8ae561f30823
forever_style_guide-3.0.7 test/dummy/tmp/cache/assets/development/sprockets/08fb979563f98e23dc74bad666e65672
forever_style_guide-3.0.6 test/dummy/tmp/cache/assets/development/sprockets/08fb979563f98e23dc74bad666e65672
forever_style_guide-3.0.6 test/dummy/tmp/cache/assets/development/sprockets/d48da4fa2522f27d243c8ae561f30823