revproxy-presentation/js/index.js
2020-03-10 18:37:40 +01:00

16 lines
No EOL
393 B
JavaScript

import Presentation from './reveal.js'
// 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();
}
}