TOC html
Jump to navigation
Jump to search
| Line 132: | Line 132: | ||
walk_through_TOC(index_obj_saved,null,0); | walk_through_TOC(index_obj_saved,null,0); | ||
| − | + | ||
index_obj_saved = TOC_functions.utf8_to_base64(JSON.stringify(index_obj_saved)); | index_obj_saved = TOC_functions.utf8_to_base64(JSON.stringify(index_obj_saved)); | ||
| − | + | ||
$ci('#TOC_contents').val(index_obj_saved) | $ci('#TOC_contents').val(index_obj_saved) | ||
| + | var today = new Date(); | ||
| + | var date = today.getFullYear()+'-'+(today.getMonth()+1)+'-'+today.getDate(); | ||
| + | var time = today.getHours() + ":" + today.getMinutes().padStart(2, '0') + ":" + today.getSeconds().padStart(2, '0'); | ||
$ci('#pf_free_text').val(`<!-- | $ci('#pf_free_text').val(`<!-- | ||
| − | The content of this page | + | The content of this page has been created automatically on ` + date + ` at ` + time + `. |
Don't edit it without the form, since any additional content | Don't edit it without the form, since any additional content | ||
| − | will be lost! | + | will be lost on the next automatic update! |
--> | --> | ||
` + wiki_list.join("\n")) | ` + wiki_list.join("\n")) | ||
Revision as of 10:19, 25 October 2020