diff --git a/docs/naghsh/index.html b/docs/naghsh/index.html index 4ce5018..12e53db 100644 --- a/docs/naghsh/index.html +++ b/docs/naghsh/index.html @@ -10824,6 +10824,75 @@ } }; +window.addEventListener('DOMContentLoaded',() => { + let tocLinks = document.getElementsByClassName('toc-link'); + + for(let i = 0; i < tocLinks.length; i++) { + tocLinks[i].addEventListener('click', () => { + for(let i = 0; i < tocLinks.length; i++) { + tocLinks[i].classList.add('toc-unstyled') + } + }) + } + + var sl = new Scroll(400); + + sl.addEventListener("end", function () { + for(let i = 0; i < tocLinks.length; i++) { + tocLinks[i].classList.remove('toc-unstyled') + } + }); +}); + +