1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-04-17 11:07:55 +02:00
reveal.js/js/index.js
2020-03-10 18:37:40 +01:00

16 lines
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();
}
}