revert accidental change to demo.html
parent
f7c59649fe
commit
61055ed02b
30
demo.html
30
demo.html
|
@ -451,23 +451,25 @@ Reveal.on( 'customevent', function() {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="dist/reveal.js"></script>
|
<script src="dist/reveal.js"></script>
|
||||||
|
<script src="plugin/zoom/zoom.js"></script>
|
||||||
|
<script src="plugin/notes/notes.js"></script>
|
||||||
|
<script src="plugin/search/search.js"></script>
|
||||||
|
<script src="plugin/markdown/markdown.js"></script>
|
||||||
|
<script src="plugin/highlight/highlight.js"></script>
|
||||||
<script>
|
<script>
|
||||||
Reveal.initialize();
|
|
||||||
|
|
||||||
const loadScript = src => {
|
// Also available as an ES module, see:
|
||||||
return new Promise((resolve, reject) => {
|
// https://revealjs.com/initialization/
|
||||||
const script = document.createElement('script');
|
Reveal.initialize({
|
||||||
script.type = 'text/javascript';
|
controls: true,
|
||||||
script.onload = resolve;
|
progress: true,
|
||||||
script.onerror = reject;
|
center: true,
|
||||||
script.src = src;
|
hash: true,
|
||||||
document.head.append(script);
|
|
||||||
})
|
// Learn about plugins: https://revealjs.com/plugins/
|
||||||
}
|
plugins: [ RevealZoom, RevealNotes, RevealSearch, RevealMarkdown, RevealHighlight ]
|
||||||
|
});
|
||||||
|
|
||||||
loadScript( 'plugin/highlight/highlight.js' ).then(() => {
|
|
||||||
Reveal.registerPlugin( RevealHighlight )
|
|
||||||
})
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue