최근 검색


최근 검색 없음

Create a Table of Contents automatically



2016년 8월 18일에 게시됨

Much like the author of this article, our company needs a way to automatically generate a table of contents for large articles. After finding out we can use jQuery, I put together a script that will automagically create a tiered table of contents based on the Header tags used in the article.

All you need to do is paste the Javascript in this page into the Javascript section of your Articles:

 

Click on the JS tab, then paste in the code at the end:

 

That should do it.. as long as you've used proper heading tags (H1, H2, etc), a Table of Contents will be created any time you load the article.

You can see a live example here: http://codepen.io/ngalluzzo/pen/kXqyVQ?editors=1010


3

55

댓글 55개

댓글을 남기려면 로그인하세요.

추가 콘텐츠

자세히 알⁠아⁠보⁠기

원하는 정보를 못 찾으셨나요?

새 게시물