2020-03-07 18:22:19 +01:00
|
|
|
import Presentation from './reveal.js'
|
2020-03-07 10:44:02 +01:00
|
|
|
|
2020-03-31 13:06:58 +02:00
|
|
|
window.Reveal = Presentation;
|
|
|
|
|
2020-03-10 18:37:37 +01:00
|
|
|
// Provides a backwards compatible way to initialize
|
|
|
|
// reveal.js when there is only one presentation on
|
|
|
|
// the page.
|
2020-03-07 18:22:19 +01:00
|
|
|
//
|
|
|
|
// Reveal.initialize({ controls: false })
|
2020-03-10 18:37:37 +01:00
|
|
|
// Reveal.slide(2)
|
2020-03-31 13:06:58 +02:00
|
|
|
window.Reveal.initialize = options => {
|
|
|
|
window.Reveal = new Presentation( document.querySelector( '.reveal' ), options );
|
|
|
|
return window.Reveal.initialize();
|
2020-03-07 10:44:02 +01:00
|
|
|
}
|