Line 1,002: | Line 1,002: | ||
else { | else { | ||
var target = location.hash; | var target = location.hash; | ||
− | |||
− | |||
− | |||
− | |||
} | } | ||
$('html,body').animate( { | $('html,body').animate( { | ||
− | scrollTop: $(target).offset().top | + | scrollTop: $(target).offset().top |
},1000,function() { location.hash = target; }); | },1000,function() { location.hash = target; }); | ||
} | } | ||
Line 1,020: | Line 1,016: | ||
if (location.hash){ | if (location.hash){ | ||
setTimeout(function(){ | setTimeout(function(){ | ||
− | $('html, body').scrollTop( | + | $('html, body').scrollTop(0).show(); |
$("body").scrollspy({target: "#myScrollspy", offset:100}); jump(); }, 0); | $("body").scrollspy({target: "#myScrollspy", offset:100}); jump(); }, 0); | ||
} | } |
Revision as of 18:28, 31 October 2017