/** * Created by 10277433 on 30/01/2019. */ $(document).ready(function () { // Scroll to anchor easing $('a[href*=#]:not([href=#])').click(function() { var $header = $('header'); var $height =$header.height()+85; if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); if (target.length) { $('html,body').animate({ scrollTop: target.offset().top - $height + 'px' }, 1000); return false; } } }); });