Fixed for code consistency

This commit is contained in:
Wu Cheng-Han 2015-09-25 14:22:45 +08:00
parent 376a759df7
commit 44cd5d4b56

View file

@ -262,7 +262,7 @@ function smoothHashScroll() {
// prevent default anchor click behavior // prevent default anchor click behavior
e.preventDefault(); e.preventDefault();
// animate // animate
$('html, body').animate({ $('body, html').stop(true, true).animate({
scrollTop: $(hash).offset().top scrollTop: $(hash).offset().top
}, 100, "linear", function () { }, 100, "linear", function () {
// when done, add hash to url // when done, add hash to url