Sha256: 5eb5fa489d97e564a7778c7feec46048acd6acf1a993f6da0fe784d7c03cb8ed
Contents?: true
Size: 1.21 KB
Versions: 4
Compression:
Stored size: 1.21 KB
Contents
$(document).ready(function() { /* ===== Stickyfill ===== */ /* Ref: https://github.com/wilddeer/stickyfill */ // Add browser support to position: sticky var elements = $('.sticky'); Stickyfill.add(elements); /* Hack related to: https://github.com/twbs/bootstrap/issues/10236 */ $(window).on('load resize', function() { $(window).trigger('scroll'); }); /* Activate scrollspy menu */ $('body').scrollspy({target: '#doc-menu', offset: 100}); /* Smooth scrolling */ $('a.scrollto').on('click', function(e){ //store hash var target = this.hash; e.preventDefault(); $('body').scrollTo(target, 800, {offset: 0, 'axis':'y'}); }); /* ======= jQuery Responsive equal heights plugin ======= */ /* Ref: https://github.com/liabru/jquery-match-height */ // $('#cards-wrapper .item-inner').matchHeight(); // $('#showcase .card').matchHeight(); /* Bootstrap lightbox */ /* Ref: http://ashleydw.github.io/lightbox/ */ $(document).delegate('*[data-toggle="lightbox"]', 'click', function(e) { e.preventDefault(); $(this).ekkoLightbox(); }); });
Version data entries
4 entries across 4 versions & 1 rubygems