Line 1,005: | Line 1,005: | ||
$(document).animate( { | $(document).animate( { | ||
− | scrollTop: $(target).offset().top },1000,function() { location.hash = target; }); | + | scrollTop: $(target).offset().top },1000,function() { |
+ | location.hash = target; | ||
+ | }); | ||
} | } | ||
Line 1,015: | Line 1,017: | ||
if (location.hash){ | if (location.hash){ | ||
setTimeout(function(){ | setTimeout(function(){ | ||
− | console.log(target); | + | console.log(target); |
$('html, body').show(); | $('html, body').show(); | ||
$(document).scrollTop(0); | $(document).scrollTop(0); |
Revision as of 19:04, 31 October 2017