in src/main/jbake/assets/js/main.js [94:109]
$('body').on('click', '.mobile-nav a', function(event) {
$('.mobile-nav').removeClass('active');
if(!this.hash) return;
event.preventDefault();
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
event.stopPropagation();
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top
}, 1000);
return false;
}
}
});