1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

add content_toc

This commit is contained in:
ruanyf 2014-04-22 09:16:50 +08:00
parent a74cd0c88e
commit a7b036d703

View File

@ -90,6 +90,7 @@ function li_create_linkage(li_tag, header_level) {
var header = $(
ditto.content_id + " h" + header_level + "." + li_tag.attr("id")
);
console.log(header);
$('html, body').animate({
scrollTop: header.offset().top
}, 200);