ADD table of contents

This commit is contained in:
Hoernschen 2024-01-09 22:51:52 +01:00
parent c1594f153b
commit 4ab9bdab6e
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462
5 changed files with 85 additions and 1 deletions

7
static/js/index.js Normal file
View file

@ -0,0 +1,7 @@
function toggleTableOfContent(e) {
const toc = document.getElementById('TableOfContents');
toc.classList.toggle("show");
const extend = toc.parentElement.getElementsByClassName("extend")[0];
extend.children[0].classList.toggle("icon-angle-right");
extend.children[0].classList.toggle("icon-angle-left");
}