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
d35c720fc9
commit
1a1d645f8e
@ -119,8 +119,8 @@ function create_page_anchors() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (i === 2){
|
if (i === 2){
|
||||||
var ul_tag = $('#content h1')
|
var ul_tag = $('<ul></ul>')
|
||||||
.after('<ul></ul>')
|
.insertAfter('#content h1')
|
||||||
.addClass("content-toc")
|
.addClass("content-toc")
|
||||||
.attr('id','content-toc');
|
.attr('id','content-toc');
|
||||||
for (var j = 0; j < headers.length; j++) {
|
for (var j = 0; j < headers.length; j++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user