Improved the TOC.

Automatically hide TOC titles
This commit is contained in:
Cotes Chung
2019-11-20 01:50:55 +08:00
parent a76e41a5dc
commit cf4a7f2e2f
3 changed files with 16 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
$(function(){if($("#toc-wrap>nav#toc>ul>li").length==0){$("#toc-wrap>h3").addClass("hidden")}});