adjustments to reveal.js initialization flow
This commit is contained in:
24
demo.html
24
demo.html
@ -410,13 +410,6 @@ Reveal.addEventListener( 'customevent', function() {
|
||||
|
||||
<script type="module">
|
||||
|
||||
// WIP support for multiple reveal.js instances
|
||||
// window.a = new Reveal(document.querySelector( '.reveal' ), {controls: false});
|
||||
// a.initialize();
|
||||
// window.b = new Reveal(document.querySelector( '.reveal' ), {controls: true});
|
||||
// b.initialize();
|
||||
// console.log(a.getConfig().controls,b.getConfig().controls);
|
||||
|
||||
// More info https://github.com/hakimel/reveal.js#configuration
|
||||
Reveal.initialize({
|
||||
controls: true,
|
||||
@ -439,5 +432,22 @@ Reveal.addEventListener( 'customevent', function() {
|
||||
|
||||
</script>
|
||||
|
||||
<!--
|
||||
<script type="module">
|
||||
|
||||
// WIP support for multiple reveal.js instances
|
||||
import Reveal from '/js/reveal.js'
|
||||
|
||||
window.a = new Reveal(document.querySelector( '.reveal' ), {controls: false});
|
||||
a.initialize();
|
||||
|
||||
window.b = new Reveal(document.querySelector( '.reveal' ), {controls: true});
|
||||
b.initialize();
|
||||
|
||||
console.log(a.getConfig().controls,b.getConfig().controls);
|
||||
|
||||
</script>
|
||||
-->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user