Sha256: 5c9f84c9e83e13e390d5ae49801856799fdb9e235fcbc26235507b6328893f59

Contents?: true

Size: 571 Bytes

Versions: 3

Compression:

Stored size: 571 Bytes

Contents

{% comment %}
  Add content to be output at the bottom of each page. (You might use this for analytics scripts, for example)
{% endcomment %}
<script>
  $(document).ready(function() {  
  var stickyNavTop = $('nav').offset().top;  
    
  var stickyNav = function(){  
  var scrollTop = $(window).scrollTop();  
         
  if (scrollTop > stickyNavTop) {   
      $('nav').addClass('sticky');  
  } else {  
      $('nav').removeClass('sticky');   
  }  
  };  
    
  stickyNav();  
    
  $(window).scroll(function() {  
      stickyNav();  
  });  
  });  
</script>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
boldandblue-0.0.4 assets/includes/custom/after_footer.html
boldandblue-0.0.3 assets/includes/custom/after_footer.html
boldandblue-0.0.2 assets/includes/custom/after_footer.html