Compare commits

..

No commits in common. "fe30218240d0bb028f202968944b7eba1ff1d3fe" and "11876c2cbd82210119f03bf9d0150ee86b87416b" have entirely different histories.

2 changed files with 2 additions and 7 deletions

Binary file not shown.

View File

@ -2,18 +2,13 @@
"use strict"; // Start of use strict
// Smooth scrolling using jQuery easing
let lastLength = null;
$('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function () {
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 && lastLength !== target.length) {
lastLength = target.length;
if (target.length) {
$('html, body').animate({
scrollTop: (target.offset().top - 54),
complete: function () {
lastLength = null;
}
scrollTop: (target.offset().top - 54)
}, 1000, "easeInOutExpo");
return false;
}