index.js 393 B

12345678910111213141516
  1. import Presentation from './reveal.js'
  2. // Provides a backwards compatible way to initialize
  3. // reveal.js when there is only one presentation on
  4. // the page.
  5. //
  6. // Reveal.initialize({ controls: false })
  7. // Reveal.slide(2)
  8. window.Reveal = {
  9. initialize: options => {
  10. window.Reveal = new Presentation( document.querySelector( '.reveal' ), options );
  11. return window.Reveal.initialize();
  12. }
  13. }