denehyg / reveal.js-menu

Slide out menu for reveal.js
https://denehyg.github.io/reveal.js-menu
MIT License
281 stars 76 forks source link

Custom menu #5

Closed rajgoel closed 9 years ago

rajgoel commented 9 years ago

Thanks a lot for this beautiful plugin!

This pull request contains 2 changes:

  1. An additional option showDefaultTitles to enable/disable showing default titles such as 'Slide 12'
  2. The possibility to add custom panels that are either provided through external files or parameters.

Example:

The code

...
custom: [
    { title: 'Sessions', icon: '<i class="fa fa-external-link">', src: 'toc.html' },
    { title: 'About', icon: '<i class="fa fa-info">', content: '<p class="slide-menu-item">Instructions:<br>Press '?' for keyboard shortcuts. To obtain a PDF-file of the slides you can use the print dialog in Google Chrome (this may not work for other browsers).</p>' }
],
...

creates these custom menus:

screenshot from 2015-09-04 17 42 27

The updated Readme.md explains how to customize the plugin.

denehyg commented 9 years ago

Thanks. The custom panels are a great idea. I've made a couple of changes to keep consistency with defaults and documentation. I'll also look at making the styling more general to accommodate custom content better.