1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-10-28 04:21:56 +01:00
Files
reveal.js/js/index.js

12 lines
416 B
JavaScript

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