index.js 416 B

123456789101112
  1. import _reveal from './reveal.js'
  2. // The Reveal class can be instantiated to run multiple
  3. // presentations on the same page
  4. window.Reveal = _reveal;
  5. // Simplified way to create a reveal.js instance on
  6. // a page with only one presentation, makes us backwards
  7. // compatible with reveal.js pre 4.0
  8. window.Reveal.initialize = options => {
  9. window.Reveal = new _reveal( document.querySelector( '.reveal' ), options );
  10. }