Compare commits
No commits in common. "fe30218240d0bb028f202968944b7eba1ff1d3fe" and "11876c2cbd82210119f03bf9d0150ee86b87416b" have entirely different histories.
fe30218240
...
11876c2cbd
BIN
www/cv/kv.pdf
BIN
www/cv/kv.pdf
Binary file not shown.
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user