πŸ”” Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

TOC is a jQuery plugin that will automatically generate a table of contents for your page. You can see an example of it on the left side of the page.Features:Completely customizableClick to smooth scroll to that spot on the pageAutomatically highlight the current sectionExtremely lightweight (744 bytes gzipped)Can have multiple on a page

Menus Plugins

Documentation

itoc

It is a jQuery plugin, A toc tree generator from html document.

This repo is modify by a jquery plugin toc .

The toc plugin document please visit here .

Install

You can get the source from github, or install it by bower.

Download source

git clone https://github.com/yufeiminds/itoc.js 

Bower

bower install itoc.js 

Usage

Default settings

    var defaults = {         'selectors': 'h2, h3',         'statistic': { H2: 0, H3: 0, H4: 0},         'auto_num': true,         'symbol_toc': {             H2: ['ι›Ά', 'δΈ€', '二', 'δΈ‰', 'ε››', 'δΊ”', 'ε…­', 'δΈƒ', 'ε…«', '九'],             H3: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],             H4: ['0)', '1)', '2)', '3)', '4)', '5)', '6)', '7)', '8)', '9)'],         }     }

Init

    $(document).ready( function() {         $('.toc').itoc({             /* Your custom settings */         });     });

Contribute

  1. Fork this repo.
  2. Modify it.
  3. Create a pull request.

happy coding...!

Contact

Email

[email protected]


You May Also Like