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:
parent
a74cd0c88e
commit
a7b036d703
@ -90,6 +90,7 @@ function li_create_linkage(li_tag, header_level) {
|
|||||||
var header = $(
|
var header = $(
|
||||||
ditto.content_id + " h" + header_level + "." + li_tag.attr("id")
|
ditto.content_id + " h" + header_level + "." + li_tag.attr("id")
|
||||||
);
|
);
|
||||||
|
console.log(header);
|
||||||
$('html, body').animate({
|
$('html, body').animate({
|
||||||
scrollTop: header.offset().top
|
scrollTop: header.offset().top
|
||||||
}, 200);
|
}, 200);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user