|
1 |
| -<script src="{{ site.baseurl }}/reveal.js/lib/js/head.min.js"></script> |
2 |
| -<script src="{{ site.baseurl }}/reveal.js/js/reveal.js"></script> |
3 |
| - |
4 |
| -<!-- reveal.js init --> |
5 |
| -<script> |
6 |
| - var baseUrl = "{{ site.baseurl }}" |
7 |
| - // Full list of configuration options available here: |
8 |
| - // https://github.com/hakimel/reveal.js#configuration |
9 |
| - Reveal.initialize({ |
10 |
| - {% if site.reveal %} |
11 |
| - {% for attr in site.reveal %}{{attr[0]}}: {% unless {attr[1]} == false or {attr[1]} == true or {attr[0]} == "width" or {attr[0]} == "height" %}'{{attr[1]}}',{% else %}{{attr[1]}},{% endunless %} |
12 |
| - {% endfor %} |
13 |
| - {% endif %} |
14 |
| - |
15 |
| - theme: Reveal.getQueryHash().theme, // available themes are in /css/theme |
16 |
| - transition: Reveal.getQueryHash().transition || {% if site.reveal.transition %}'{{ site.reveal.transition }}',{% else %}'default',{% endif %} // default/cube/page/concave/zoom/linear/fade/none |
17 |
| - |
18 |
| - // Optional libraries used to extend on reveal.js |
19 |
| - dependencies: [ |
20 |
| - // Cross-browser shim that fully implements classList - https://github.com/eligrey/classList.js/ |
21 |
| - { src: baseUrl + '/reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } }, |
22 |
| - |
23 |
| - // Zoom in and out with Alt+click |
24 |
| - { src: baseUrl + '/reveal.js/plugin/zoom-js/zoom.js', async: true }, |
25 |
| - |
26 |
| - // Speaker notes |
27 |
| - { src: baseUrl + '/reveal.js/plugin/notes/notes.js', async: true }, |
28 |
| - |
29 |
| - // Remote control your reveal.js presentation using a touch device |
30 |
| - //{ src: baseUrl + '/reveal.js/plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } } |
31 |
| - ] |
32 |
| - }); |
33 |
| - |
34 |
| - {% if site.slideNumber.format and site.slideNumber.format != "none" %} |
35 |
| - // Shows the slide number using default formatting |
36 |
| - Reveal.configure({ slideNumber: true }); |
37 |
| - Reveal.configure({ slideNumber: '{{ site.slideNumber.format }}' }); |
38 |
| - {% endif %} |
39 |
| -</script> |
40 |
| -<!-- End reveal.js init --> |
41 |
| - |
42 |
| -<!-- Fontawesome --> |
43 |
| -<script type="text/javascript"> |
44 |
| - $(document).ready(function() { |
45 |
| - //$("a[href*='youtube.com/']").prepend( $( "<i class='fa fa-youtube-play'> </i>" ) ); |
46 |
| - //$("a[href*='vimeo.com/']").prepend( $( "<i class='fa fa-vimeo-square'> </i>" ) ); |
47 |
| - //$("a[href$='/download']").prepend( $( "<i class='fa fa-cloud-download'> </i>" ) ); |
48 |
| - //$("a.download").prepend( $( "<i class='fa fa-cloud-download'> </i>" ) ); |
49 |
| - $("a.external").append( $( "<i class='fa fa-external-link'></i>" ) ); |
50 |
| - $("a.twitter").append( $( "<i class='fa fa-twitter'></i>" ) ); |
51 |
| - $("a.github").append( $( "<i class='fa fa-github'></i>" ) ); |
52 |
| - $("blockquote").prepend( $( "<i class='fa fa-quote-left'></i>" ) ); |
53 |
| - $("a.button.lighter").click( function() { $("html.dark").removeClass("dark").addClass("light"); }); |
54 |
| - $("a.button.darker").click( function() { $("html.light").removeClass("light").addClass("dark"); }); |
55 |
| - }); |
56 |
| -</script> |
57 |
| -<!-- End Fontawesome --> |
| 1 | +<script src="{{ site.baseurl }}/node_modules/reveal.js/js/reveal.js"></script> |
| 2 | + |
| 3 | + <script> |
| 4 | + // More info about config & dependencies: |
| 5 | + // - https://github.com/hakimel/reveal.js#configuration |
| 6 | + // - https://github.com/hakimel/reveal.js#dependencies |
| 7 | + Reveal.initialize({ |
| 8 | + hash: true, |
| 9 | + dependencies: [ |
| 10 | + { src: 'node_modules/reveal.js/plugin/markdown/marked.js' }, |
| 11 | + { src: 'node_modules/reveal.js/plugin/markdown/markdown.js' }, |
| 12 | + { src: 'node_modules/reveal.js/plugin/highlight/highlight.js' }, |
| 13 | + { src: 'node_modules/reveal.js/plugin/notes/notes.js', async: true } |
| 14 | + ] |
| 15 | + }); |
| 16 | + </script> |
0 commit comments