TOC html
Jump to navigation
Jump to search
| Line 61: | Line 61: | ||
| − | function walk_through_TOC(children,depth) { | + | function walk_through_TOC(children,++depth) { |
if(!children || !Object.keys(children).length) { | if(!children || !Object.keys(children).length) { | ||
| Line 75: | Line 75: | ||
if(value.children) { | if(value.children) { | ||
| − | walk_through_TOC(value.children,depth | + | walk_through_TOC(value.children,depth); |
} | } | ||
| Line 128: | Line 128: | ||
console.log(index_obj_saved) | console.log(index_obj_saved) | ||
| − | walk_through_TOC(index_obj_saved, | + | walk_through_TOC(index_obj_saved,0) |
console.log(wiki_list) | console.log(wiki_list) | ||
Revision as of 11:48, 16 July 2020