diff options
Diffstat (limited to 'assets/js/fuji.js')
-rw-r--r-- | assets/js/fuji.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/assets/js/fuji.js b/assets/js/fuji.js index 66892af..fbd0359 100644 --- a/assets/js/fuji.js +++ b/assets/js/fuji.js @@ -56,16 +56,6 @@ if (document.querySelector('span.post-comment-notloaded')) { document.querySelector('span.post-comment-notloaded').addEventListener('click', loadComment); } -// remove empty ul in toc if article only have ## and ### -var secondQueryOfToc = document.querySelectorAll('.sidebar-toc ul ul'); -if (secondQueryOfToc.length > 0) { - secondQueryOfToc.forEach((value, key, parent) => { - if (value.innerText === '') { - value.setAttribute('style', 'display: none;'); - } - }); -} - // to-top button document.querySelector('.btn .btn-scroll-top').addEventListener('click', () => { document.documentElement.scrollTop = 0; |