website/js/index.js

7 lines
315 B
JavaScript
Raw Normal View History

2024-01-09 21:53:27 +00:00
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");
}