Skip to content

Instantly share code, notes, and snippets.

@vicegd
Last active February 8, 2016 16:13
Show Gist options
  • Save vicegd/afe40038ec8f3de35968 to your computer and use it in GitHub Desktop.
Save vicegd/afe40038ec8f3de35968 to your computer and use it in GitHub Desktop.
Reveal.JS - initialize (dependencies)
Reveal.initialize({
//Parameters values...
//Optional reveal.js plugins
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/zoom-js/zoom.js', async: true },
{ src: 'plugin/notes/notes.js', async: true }
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment