|
33 | 33 | {% block menu_extra %}
|
34 | 34 | <div class="container">{{ link_breadcrumbs(breadcrumbs) }}</div>
|
35 | 35 | {% endblock %}
|
36 |
| - |
37 |
| - |
38 |
| -{% block container %} |
39 |
| - {{ body|safe }} |
40 |
| - |
41 |
| - <script> |
42 |
| - require( |
43 |
| - { |
44 |
| - // required because reveal is IO bound |
45 |
| - waitSeconds: 0 |
46 |
| - }, |
47 |
| - [ |
48 |
| - "{{ static_url("components/reveal.js/lib/js/head.min.js") }}", |
49 |
| - "{{ static_url("components/reveal.js/js/reveal.js") }}" |
50 |
| - ], |
51 |
| - function(head, Reveal){ |
52 |
| - // Full list of configuration options available here: https://github.com/hakimel/reveal.js#configuration |
53 |
| - Reveal.initialize({ |
54 |
| - controls: true, |
55 |
| - progress: true, |
56 |
| - history: true, |
57 |
| - |
58 |
| - slideNumber: true, |
59 |
| - |
60 |
| - // available themes are in /css/theme |
61 |
| - theme: Reveal.getQueryHash().theme || 'simple', |
62 |
| - |
63 |
| - // default/cube/page/concave/zoom/linear/none |
64 |
| - transition: Reveal.getQueryHash().transition || 'linear', |
65 |
| - |
66 |
| - // Optional libraries used to extend on reveal.js |
67 |
| - dependencies: [ |
68 |
| - { |
69 |
| - src: "{{ static_url("components/reveal.js/lib/js/classList.js") }} ", |
70 |
| - condition: function() { return !document.body.classList; } |
71 |
| - }, |
72 |
| - { |
73 |
| - src: "{{ static_url("components/reveal.js/plugin/notes/notes.js") }}", |
74 |
| - async: true, |
75 |
| - condition: function() { return !!document.body.classList; } |
76 |
| - } |
77 |
| - ] |
78 |
| - }); |
79 |
| - |
80 |
| - var update = function(event){ |
81 |
| - window.scrollTo(0,0); |
82 |
| - if(MathJax.Hub.getAllJax(Reveal.getCurrentSlide())){ |
83 |
| - MathJax.Hub.Rerender(Reveal.getCurrentSlide()); |
84 |
| - } |
85 |
| - var idx = Reveal.getIndices(); |
86 |
| - $('#menubar').headroom((!idx.h && !idx.v) ? 'pin' : 'unpin'); |
87 |
| - }; |
88 |
| - |
89 |
| - // show/hide the nbviewer header on slide change |
90 |
| - Reveal.addEventListener('slidechanged', update); |
91 |
| - |
92 |
| - } |
93 |
| - );//require |
94 |
| - </script> |
95 |
| -{% endblock container %} |
0 commit comments