remove unused variable, update multi-instance example in readme
parent
6030043036
commit
2e8619d300
|
@ -174,10 +174,10 @@ If you want to run multiple presentations side-by-side on the same page you can
|
|||
<div class="reveal deck-1">...</div>
|
||||
<div class="reveal deck-2">...</div>
|
||||
<script type="module">
|
||||
import Reveal from 'js/reveal.js';
|
||||
import Deck from 'js/reveal.js';
|
||||
|
||||
let deck1 = new Reveal( document.querySelector( 'deck-1' ), { embedded: true } );
|
||||
let deck2 = new Reveal( document.querySelector( 'deck-2' ), { embedded: true } );
|
||||
let deck1 = new Deck( document.querySelector( 'deck-1' ), { embedded: true } );
|
||||
let deck2 = new Deck( document.querySelector( 'deck-2' ), { embedded: true } );
|
||||
|
||||
deck1.initialize();
|
||||
deck2.initialize();
|
||||
|
|
|
@ -101,9 +101,6 @@ export default function( revealElement, options ) {
|
|||
// Cached references to DOM elements
|
||||
dom = {},
|
||||
|
||||
// List of asynchronously loaded reveal.js dependencies
|
||||
asyncDependencies = [],
|
||||
|
||||
// Flags if the interaction event listeners are bound
|
||||
eventsAreBound = false,
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ const path = require('path');
|
|||
|
||||
module.exports = {
|
||||
mode: 'production',
|
||||
entry: ["./js/index.js"],
|
||||
entry: ['./js/index.js'],
|
||||
output: {
|
||||
path: path.join(__dirname, '/dist'),
|
||||
filename: 'reveal.min.js',
|
||||
|
@ -15,8 +15,8 @@ module.exports = {
|
|||
loader: 'babel-loader',
|
||||
query: {
|
||||
presets: [
|
||||
[ '@babel/preset-env' ],
|
||||
],
|
||||
[ '@babel/preset-env' ]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue