1
0
Fork 0

revert accidental change to demo.html

This commit is contained in:
hakimel 2022-01-19 18:08:08 +01:00
parent f7c59649fe
commit 61055ed02b
1 changed files with 16 additions and 14 deletions

View File

@ -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>