mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Create the “Table of Contents” heading in javascript
This commit is contained in:
@@ -54,6 +54,11 @@
|
||||
prefix: 'toc'
|
||||
});
|
||||
|
||||
var heading = document.createElement("H2");
|
||||
var heading_text = document.createTextNode("Table of Contents");
|
||||
heading.appendChild(heading_text);
|
||||
|
||||
container.appendChild(heading);
|
||||
container.appendChild(toc);
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user