Sha256: fc11bbe8ce67bcc3b24ae6eb9a3d45675ec9f454ac6cbbb17462ec991f93bbd4
Contents?: true
Size: 540 Bytes
Versions: 1
Compression:
Stored size: 540 Bytes
Contents
$(document).ready(function () { $(window).bind('resize', function () { $('body').toggleClass('body-small', ($(window).width() <= 768)); }).trigger('resize'); $(document).on('scroll', function() { var scrollDistance = $(this).scrollTop(); if (scrollDistance > 100) { $('.scroll-to-top').fadeIn(); } else { $('.scroll-to-top').fadeOut(); } }); $('a.scroll-to-top').click(function(e) { $('html, body').scrollTop(0); e.preventDefault(); }); $('[data-toggle=popover]').popover(); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
archangel-0.4.0 | app/themes/default/assets/javascripts/default/backend/archangel.js |