Skip to content

Commit 9fcd1ff

Browse files
committed
remove reveal block, it now comes from nbconvert directly
1 parent 4545153 commit 9fcd1ff

File tree

1 file changed

+0
-60
lines changed

1 file changed

+0
-60
lines changed

nbviewer/templates/formats/slides.html

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -33,63 +33,3 @@
3333
{% block menu_extra %}
3434
<div class="container">{{ link_breadcrumbs(breadcrumbs) }}</div>
3535
{% 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

Comments
 (0)