revealjs template: use remotes by default, set defaults from query hash.

This commit is contained in:
John MacFarlane 2013-04-30 17:33:17 -07:00
parent 6836e16da2
commit 4696679283

View file

@ -79,17 +79,16 @@ $endfor$
progress: true, progress: true,
history: true, history: true,
center: true, center: true,
autoSlide: $if(duration)$$duration$$else$0$endif$, theme: '$if(theme)$$theme$$else$Reveal.getQueryHash().theme$endif$', // available themes are in /css/theme
theme: '$if(theme)$$theme$$else$default$endif$', // available themes are in /css/theme transition: '$if(transition)$$transition$$else$Reveal.getQueryHash().transition$endif$', // default/cube/page/concave/zoom/linear/fade/none
transition: '$if(transition)$$transition$$else$default$endif$', // default/cube/page/concave/zoom/linear/fade/none
// Optional libraries used to extend on reveal.js // Optional libraries used to extend on reveal.js
dependencies: [ dependencies: [
{ src: '$revealjs-url$/lib/js/classList.js', condition: function() { return !document.body.classList; } }, { src: '$revealjs-url$/lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: '$revealjs-url$/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } }, { src: '$revealjs-url$/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
// { src: '$revealjs-url$/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }, { src: '$revealjs-url$/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } },
// { src: '$revealjs-url$/plugin/search/search.js', async: true, condition: function() { return !!document.body.classList; }, } // { src: '$revealjs-url$/plugin/search/search.js', async: true, condition: function() { return !!document.body.classList; }, }
// { src: '$revealjs-url$/plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } } { src: '$revealjs-url$/plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }
]}); ]});
</script> </script>
</body> </body>