kobel/static/js/index.js

7 lines
315 B
JavaScript
Raw Normal View History

2024-01-09 21:51:52 +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");
}