revproxy-presentation/js/index.js
2020-03-31 13:06:58 +02:00

14 lines
No EOL
413 B
JavaScript

import Presentation from './reveal.js'
window.Reveal = Presentation;
// Provides a backwards compatible way to initialize
// reveal.js when there is only one presentation on
// the page.
//
// Reveal.initialize({ controls: false })
// Reveal.slide(2)
window.Reveal.initialize = options => {
window.Reveal = new Presentation( document.querySelector( '.reveal' ), options );
return window.Reveal.initialize();
}