An open API service indexing awesome lists of open source software.

https://github.com/sourdoughcat/contents


https://github.com/sourdoughcat/contents

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

        

# Contents

**Chapman Siu**

Table of Contents generator. Influenced by [Janko's Table of Contents using Jquery](http://www.jankoatwarpspeed.com/post/2009/08/20/Table-of-contents-using-jQuery.aspx)

This script creates a table of contents based on `

` to `

` tags of a webpage. It auto generates id's for linking.

# Example

Check out the example provided in [example.html](example.html).

# Basic Usage


And all the script:

$(document).ready(contents);