evanmo / presentable

Adds a table of contents to HTML based presentations including Reveal.js, html5slides, Shower and impress.js

Home Page:http://fcfeibel.com/presentable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Presentable

A Table of Contents for HTML Presentations

Presentable is a small script/plugin/widget/thingy that adds a table of contents to HTML based presentations by parsing the header tags.

See examples and detailed instructions: http://fcfeibel.com/presentable/

Framework Support

The following presentation frameworks are supported out of the box, and Presentable can theoretically handle other frameworks too, although your mileage may vary.

Browser Support

Currently Presentable has been tested and works in Firefox, Chrome, Safari, IE9/10, and the default browser on my HTC G2 Android phone.

Generic Instructions

These are generic instructions for installing. See the official documentation for presentation specific instructions.

CSS

Add the CSS in the <head> tag.

<link rel="stylesheet" href="path/to/presentable.css">

HTML

Wrap the following HTML in a slide.

<h2>Table of Contents</h2>
<nav id="presentable-toc" class="frameworkname"></nav>

And add this as a child of the <body> tag.

<aside id="presentable-icon" class="frameworkname">
    <a title="Table of Contents" href="#?">
        <img alt="Table of Contents" src="path/to/frameworkname.png"/>
    </a>
</aside>

JavaScript

Reference presentable.js following the conventions set by your framework of choice.

<script src="path/to/presentable.js"></script>

Initialize

This goes after all the slides.

presentable.toc({
    framework: "framework name here"
});

It can also accept other configuration options allowing Presentable to support almost any framework.

presentable.toc({
    config: "options here"
});

Learn More

See examples and instructions: http://fcfeibel.com/presentable/

About

Adds a table of contents to HTML based presentations including Reveal.js, html5slides, Shower and impress.js

http://fcfeibel.com/presentable/

License:BSD 2-Clause "Simplified" License