diff --git a/web/script.js b/web/script.js
index a44fb20..06fae25 100644
--- a/web/script.js
+++ b/web/script.js
@@ -12,6 +12,7 @@ function parseMd() {
aDiv.after(nodes);
insertLinks()
d3.selectAll("code").each(function() { hljs.highlightBlock(this); });
+ removeOrigToc()
addToc()
});
}
@@ -23,6 +24,13 @@ function insertLinks() {
})
}
+function removeOrigToc() {
+ headerContents = $('#contents')
+ contentsList = headerContents.next()
+ headerContents.remove()
+ contentsList.remove()
+}
+
function addToc() {
headerMain = $('#main')
nodes = $.parseHTML(TOC)
@@ -34,7 +42,7 @@ var TOC = '
' +
'
ToC = {\n' +
' \'1. Collections\': [List, Dict, Set, Range, Enumerate, Namedtuple, Iterator, Generator],\n' +
' \'2. Types\': [Type, String, Regex, Format, Numbers, Combinatorics, Datetimeᴺᴱᵂ],\n' +
-' \'3. Syntax\': [Args, Splat, Inline, Closure, Decorator, Class, Enum, Exceptions],\n' +
+' \'3. Syntax\': [Arguments, Splat, Inline, Closure, Decorator, Class, Enum, Exceptions],\n' +
' \'4. System\': [Print, Input, Command_Line_Arguments, Open, Pathᴺᴱᵂ, Command_Execution],\n' +
' \'5. Data\': [CSV, JSON, Pickle, SQLite, Bytes, Struct, Array, MemoryView, Deque],\n' +
' \'6. Advanced\': [Threading, Introspection, Metaprograming, Operator, Eval, Coroutine],\n' +