TOC html
Jump to navigation
Jump to search
| Line 70: | Line 70: | ||
if(value.path) { | if(value.path) { | ||
| − | + | wiki_list.push('#'.repeat(depth) + '[[' + value.path + '|' + value.text + ']]') | |
} | } | ||
| Line 86: | Line 86: | ||
//.replace(/^<nowiki>/,'').replace(/<\/nowiki>$/,'') | //.replace(/^<nowiki>/,'').replace(/<\/nowiki>$/,'') | ||
console.log(contents) | console.log(contents) | ||
| − | contents = decodeURIComponent(escape(window.atob(contents))); | + | //contents = decodeURIComponent(escape(window.atob(contents))); |
| + | contents = JSON.parse(window.atob(contents)); | ||
console.log(contents) | console.log(contents) | ||
console.log(typeof contents) | console.log(typeof contents) | ||
| Line 116: | Line 117: | ||
Frontend_Index.translate_index_rec(index_obj_saved,'to'); | Frontend_Index.translate_index_rec(index_obj_saved,'to'); | ||
| + | |||
| + | walk_through_TOC(index_obj_saved,0) | ||
| + | |||
| + | console.log(wiki_list) | ||
| + | |||
| + | index_obj_saved = btoa(JSON.stringify(index_obj_saved)) | ||
| + | |||
| + | console.log(index_obj_saved) | ||
| + | |||
| + | return false | ||
index_obj_saved = btoa(unescape(encodeURIComponent(index_obj_saved))) | index_obj_saved = btoa(unescape(encodeURIComponent(index_obj_saved))) | ||
Revision as of 09:23, 16 July 2020