https://github.com/sourdoughcat/contents
https://github.com/sourdoughcat/contents
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sourdoughcat/contents
- Owner: SourdoughCat
- License: mit
- Created: 2012-12-02T03:50:58.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-11-18T06:28:11.000Z (over 10 years ago)
- Last Synced: 2024-12-09T00:09:43.747Z (6 months ago)
- Language: JavaScript
- Size: 203 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE.txt
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);