From e51d88e3bcda4f4cfd5173ff1d6dc58f37fd96ca Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sat, 1 Aug 2015 00:35:39 +1000 Subject: Get first talk mostly working --- src/js/this.js | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/js/this.js (limited to 'src/js') diff --git a/src/js/this.js b/src/js/this.js new file mode 100644 index 0000000..57938a9 --- /dev/null +++ b/src/js/this.js @@ -0,0 +1,55 @@ +/*! + * configuation for this presentation + */ + +// Full list of configuration options available here: +// https://github.com/hakimel/reveal.js#configuration +Reveal.initialize({ + controls: true, + progress: true, + history: true, + center: true, + //width: 1500, + + + //theme: Reveal.getQueryHash().theme, // available themes are in /css/theme + //transition: Reveal.getQueryHash().transition || 'default', // default/cube/page/concave/zoom/linear/fade/none + + // Optional libraries used to extend on reveal.js + 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, + condition: function () { + return !!document.querySelector('pre code'); + }, + callback: function () { + hljs.initHighlightingOnLoad(); + } + }, + {src: '../plugin/zoom-js/zoom.js', async: true}, + {src: '../plugin/notes/notes.js', async: true} + ] +}); + +// footer displayed upon load, hides when slide changes +Reveal.addEventListener('slidechanged', function(event) { + document.querySelector('.reveal .footer').style.display = 'none'; +}); -- cgit v1.2.3