Martinomagnifico / reveal.js-verticator

A plugin for Reveal.js that adds indicators to show the amount of slides in a vertical stack.
https://martinomagnifico.github.io/reveal.js-verticator/demo/demo.html
MIT License
46 stars 6 forks source link

Allow autogenerate to be disabled #5

Closed DennisdeBest closed 2 years ago

DennisdeBest commented 2 years ago

Thanks for this plugin it works great.

I have a couple of reveal presentations that get rendered by the backend of a server and I would like to add verticator for some of them but not all (some are very long lists ...).

So I added an option in the plugin-src.js : autogenerate. It is set to true by default, when it gets set to false, if there is no ul element with the verticator class the verticate() function will return.

I don't know if this can be usefull to others but I would like to share it;

Martinomagnifico commented 2 years ago

Hi Dennis, I think it's a great addition. If some of the lists are long, the user can then disable it.