Line 1,011: | Line 1,011: | ||
$('html,body').animate( | $('html,body').animate( | ||
{ | { | ||
− | scrollTop: $(target).offset().top | + | scrollTop: $(target).offset().top - 90 |
− | }, | + | },1000,function() |
{ | { | ||
location.hash = target; | location.hash = target; | ||
Line 1,032: | Line 1,032: | ||
setTimeout(function(){ | setTimeout(function(){ | ||
$('html, body').scrollTop(0).show(); | $('html, body').scrollTop(0).show(); | ||
− | + | $("body").scrollspy({target: "#myScrollspy", offset:100}); | |
jump(); | jump(); | ||
}, 0); | }, 0); | ||
}else{ | }else{ | ||
$('html, body').show(); | $('html, body').show(); | ||
− | + | $("body").scrollspy({target: "#myScrollspy", offset:100}); | |
} | } | ||
}); | }); |
Revision as of 19:43, 31 October 2017