Difference between revisions of "Template:BNU-CHINA/article"
Line 19: | Line 19: | ||
if (hash.indexOf("#") == 0) { | if (hash.indexOf("#") == 0) { | ||
var $target = $(hash); | var $target = $(hash); | ||
− | $("html, body").animate({scrollTop: $target.offset().top - $(".sub-header").height() - baseline}, "slow"); | + | $("html, body").animate({scrollTop: $target.offset().top - $(".sub-header").height() - baseline + 2}, "slow"); |
} | } | ||
}; | }; |
Latest revision as of 01:33, 19 September 2015