diff options
author | Monty Taylor <mordred@inaugust.com> | 2015-08-01 00:35:39 +1000 |
---|---|---|
committer | Monty Taylor <mordred@inaugust.com> | 2015-08-01 00:35:39 +1000 |
commit | e51d88e3bcda4f4cfd5173ff1d6dc58f37fd96ca (patch) | |
tree | 789250d13f6a1bcc849f00f0206972ad7742dddc /src/js | |
parent | fb9c02623e72c9bf6c8dffb8cdac7f7fc0ac1823 (diff) |
Get first talk mostly working
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/this.js | 55 |
1 files changed, 55 insertions, 0 deletions
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 @@ | |||
1 | /*! | ||
2 | * configuation for this presentation | ||
3 | */ | ||
4 | |||
5 | // Full list of configuration options available here: | ||
6 | // https://github.com/hakimel/reveal.js#configuration | ||
7 | Reveal.initialize({ | ||
8 | controls: true, | ||
9 | progress: true, | ||
10 | history: true, | ||
11 | center: true, | ||
12 | //width: 1500, | ||
13 | |||
14 | |||
15 | //theme: Reveal.getQueryHash().theme, // available themes are in /css/theme | ||
16 | //transition: Reveal.getQueryHash().transition || 'default', // default/cube/page/concave/zoom/linear/fade/none | ||
17 | |||
18 | // Optional libraries used to extend on reveal.js | ||
19 | dependencies: [ | ||
20 | { | ||
21 | src: '../lib/js/classList.js', condition: function () { | ||
22 | return !document.body.classList; | ||
23 | } | ||
24 | }, | ||
25 | { | ||
26 | src: '../plugin/markdown/marked.js', | ||
27 | condition: function () { | ||
28 | return !!document.querySelector('[data-markdown]'); | ||
29 | } | ||
30 | }, | ||
31 | { | ||
32 | src: '../plugin/markdown/markdown.js', | ||
33 | condition: function () { | ||
34 | return !!document.querySelector('[data-markdown]'); | ||
35 | } | ||
36 | }, | ||
37 | { | ||
38 | src: '../plugin/highlight/highlight.js', | ||
39 | async: true, | ||
40 | condition: function () { | ||
41 | return !!document.querySelector('pre code'); | ||
42 | }, | ||
43 | callback: function () { | ||
44 | hljs.initHighlightingOnLoad(); | ||
45 | } | ||
46 | }, | ||
47 | {src: '../plugin/zoom-js/zoom.js', async: true}, | ||
48 | {src: '../plugin/notes/notes.js', async: true} | ||
49 | ] | ||
50 | }); | ||
51 | |||
52 | // footer displayed upon load, hides when slide changes | ||
53 | Reveal.addEventListener('slidechanged', function(event) { | ||
54 | document.querySelector('.reveal .footer').style.display = 'none'; | ||
55 | }); | ||