Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Fix scroll offset
- $(window).on('DOMMouseScroll.fix-anchor', function () {
- $(window).off('.fix-anchor');
- }).on('load.fix-anchor', function () {
- if (location.hash.length > 1) {
- var scrollTo = $(':target').offset().top;
- scrollTo -= $('#barBottomContainer').outerHeight(true);
- scrollTo -= $('#tabs').outerHeight(true) || 0;
- $('html, body').animate({scrollTop: scrollTo}, 0);
- }
- });
Add Comment
Please, Sign In to add comment