ptoc.js | |
---|---|
File:Persistent-toc-closed.png Closed persistent toc | |
Description | Persistent table of contents in sidebar |
Author(s) | Prtksxna |
Status | Stable |
Version | ?.0 |
Updated | January 19, 2015 |
Browser support | Any modern browser |
Skin support | Vector |
Source | User:Prtksxna/ptoc.js, User:Prtksxna/ptoc.css |
A gadget to add persistent table of contents on articles. The table of contents move to the left sidebar after scrolling past the first section and they expand on hover.
Source
editSetup
editAdd this to your common.js
:
importStylesheet("User:Prtksxna/ptoc.css");
importScript("User:Prtksxna/ptoc.js");