|
@@
-1,158
+1,188
|
|
1
|
|
{%- extends 'reveal_internals/slides.tpl' -%}
|
|
|
1
|
{%- extends 'basic.tpl' -%}
|
|
2
|
2
|
{% from 'mathjax.tpl' import mathjax %}
|
|
3
|
3
|
|
|
|
4
|
{%- block any_cell scoped -%}
|
|
|
5
|
{%- if cell.metadata.slide_type in ['slide'] -%}
|
|
|
6
|
<section>
|
|
|
7
|
<section>
|
|
|
8
|
{{ super() }}
|
|
|
9
|
{%- elif cell.metadata.slide_type in ['subslide'] -%}
|
|
|
10
|
<section>
|
|
|
11
|
{{ super() }}
|
|
|
12
|
{%- elif cell.metadata.slide_type in ['-'] -%}
|
|
|
13
|
{{ super() }}
|
|
|
14
|
{%- elif cell.metadata.slide_type in ['skip'] -%}
|
|
|
15
|
<div style=display:none>
|
|
|
16
|
{{ super() }}
|
|
|
17
|
</div>
|
|
|
18
|
{%- elif cell.metadata.slide_type in ['notes'] -%}
|
|
|
19
|
<aside class="notes">
|
|
|
20
|
{{ super() }}
|
|
|
21
|
</aside>
|
|
|
22
|
{%- elif cell.metadata.slide_type in ['fragment'] -%}
|
|
|
23
|
<div class="fragment">
|
|
|
24
|
{{ super() }}
|
|
|
25
|
</div>
|
|
|
26
|
{%- endif -%}
|
|
|
27
|
{%- if cell.metadata.slide_helper in ['subslide_end'] -%}
|
|
|
28
|
</section>
|
|
|
29
|
{%- elif cell.metadata.slide_helper in ['slide_end'] -%}
|
|
|
30
|
</section>
|
|
|
31
|
</section>
|
|
|
32
|
{%- endif -%}
|
|
|
33
|
{%- endblock any_cell -%}
|
|
4
|
34
|
|
|
5
|
35
|
{% block header %}
|
|
6
|
36
|
<!DOCTYPE html>
|
|
7
|
37
|
<html>
|
|
8
|
38
|
<head>
|
|
9
|
39
|
|
|
10
|
40
|
<meta charset="utf-8" />
|
|
11
|
41
|
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
|
|
12
|
42
|
|
|
13
|
43
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
14
|
44
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|
15
|
45
|
|
|
16
|
46
|
<title>{{resources['metadata']['name']}} slides</title>
|
|
17
|
47
|
|
|
18
|
48
|
<!-- General and theme style sheets -->
|
|
19
|
49
|
<link rel="stylesheet" href="{{resources.reveal.url_prefix}}/css/reveal.css">
|
|
20
|
50
|
<link rel="stylesheet" href="{{resources.reveal.url_prefix}}/css/theme/simple.css" id="theme">
|
|
21
|
51
|
|
|
22
|
52
|
<!-- For syntax highlighting -->
|
|
23
|
53
|
<link rel="stylesheet" href="{{resources.reveal.url_prefix}}/lib/css/zenburn.css">
|
|
24
|
54
|
|
|
25
|
55
|
<!-- If the query includes 'print-pdf', use the PDF print sheet -->
|
|
26
|
56
|
<script>
|
|
27
|
57
|
document.write( '<link rel="stylesheet" href="{{resources.reveal.url_prefix}}/css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' );
|
|
28
|
58
|
</script>
|
|
29
|
59
|
|
|
30
|
60
|
<!--[if lt IE 9]>
|
|
31
|
61
|
<script src="{{resources.reveal.url_prefix}}/lib/js/html5shiv.js"></script>
|
|
32
|
62
|
<![endif]-->
|
|
33
|
63
|
|
|
34
|
64
|
<!-- Get Font-awesome from cdn -->
|
|
35
|
65
|
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css">
|
|
36
|
66
|
|
|
37
|
67
|
{% for css in resources.inlining.css -%}
|
|
38
|
68
|
<style type="text/css">
|
|
39
|
69
|
{{ css }}
|
|
40
|
70
|
</style>
|
|
41
|
71
|
{% endfor %}
|
|
42
|
72
|
|
|
43
|
73
|
<style type="text/css">
|
|
44
|
74
|
/* Overrides of notebook CSS for static HTML export */
|
|
45
|
75
|
html {
|
|
46
|
76
|
overflow-y: auto;
|
|
47
|
77
|
}
|
|
48
|
78
|
.reveal {
|
|
49
|
79
|
font-size: 160%;
|
|
50
|
80
|
}
|
|
51
|
81
|
.reveal pre {
|
|
52
|
82
|
width: inherit;
|
|
53
|
83
|
padding: 0.4em;
|
|
54
|
84
|
margin: 0px;
|
|
55
|
85
|
font-family: monospace, sans-serif;
|
|
56
|
86
|
font-size: 80%;
|
|
57
|
87
|
box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
|
|
58
|
88
|
}
|
|
59
|
89
|
.reveal section img {
|
|
60
|
90
|
border: 0px solid black;
|
|
61
|
91
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0);
|
|
62
|
92
|
}
|
|
63
|
93
|
.reveal i {
|
|
64
|
94
|
font-style: normal;
|
|
65
|
95
|
font-family: FontAwesome;
|
|
66
|
96
|
font-size: 2em;
|
|
67
|
97
|
}
|
|
68
|
98
|
.reveal .slides {
|
|
69
|
99
|
text-align: left;
|
|
70
|
100
|
}
|
|
71
|
101
|
.reveal.fade {
|
|
72
|
102
|
opacity: 1;
|
|
73
|
103
|
}
|
|
74
|
104
|
.reveal .progress {
|
|
75
|
105
|
position: static;
|
|
76
|
106
|
}
|
|
77
|
107
|
div.input_area {
|
|
78
|
108
|
padding: 0.06em;
|
|
79
|
109
|
}
|
|
80
|
110
|
div.code_cell {
|
|
81
|
111
|
background-color: transparent;
|
|
82
|
112
|
}
|
|
83
|
113
|
div.prompt {
|
|
84
|
114
|
width: 11ex;
|
|
85
|
115
|
padding: 0.4em;
|
|
86
|
116
|
margin: 0px;
|
|
87
|
117
|
font-family: monospace, sans-serif;
|
|
88
|
118
|
font-size: 80%;
|
|
89
|
119
|
text-align: right;
|
|
90
|
120
|
}
|
|
91
|
121
|
div.output_area pre {
|
|
92
|
122
|
font-family: monospace, sans-serif;
|
|
93
|
123
|
font-size: 80%;
|
|
94
|
124
|
}
|
|
95
|
125
|
div.output_prompt {
|
|
96
|
126
|
/* 5px right shift to account for margin in parent container */
|
|
97
|
127
|
margin: 5px 5px 0 0;
|
|
98
|
128
|
}
|
|
99
|
129
|
.rendered_html p {
|
|
100
|
130
|
text-align: inherit;
|
|
101
|
131
|
}
|
|
102
|
132
|
</style>
|
|
103
|
133
|
|
|
104
|
134
|
<!-- Custom stylesheet, it must be in the same directory as the html file -->
|
|
105
|
135
|
<link rel="stylesheet" href="custom.css">
|
|
106
|
136
|
|
|
107
|
137
|
</head>
|
|
108
|
138
|
{% endblock header%}
|
|
109
|
139
|
|
|
110
|
140
|
|
|
111
|
141
|
{% block body %}
|
|
112
|
142
|
<body>
|
|
113
|
143
|
<div class="reveal">
|
|
114
|
144
|
<div class="slides">
|
|
115
|
145
|
{{ super() }}
|
|
116
|
146
|
</div>
|
|
117
|
147
|
</div>
|
|
118
|
148
|
|
|
119
|
149
|
<script src="{{resources.reveal.url_prefix}}/lib/js/head.min.js"></script>
|
|
120
|
150
|
|
|
121
|
151
|
<script src="{{resources.reveal.url_prefix}}/js/reveal.js"></script>
|
|
122
|
152
|
|
|
123
|
153
|
<script>
|
|
124
|
154
|
|
|
125
|
155
|
// Full list of configuration options available here: https://github.com/hakimel/reveal.js#configuration
|
|
126
|
156
|
Reveal.initialize({
|
|
127
|
157
|
controls: true,
|
|
128
|
158
|
progress: true,
|
|
129
|
159
|
history: true,
|
|
130
|
160
|
|
|
131
|
161
|
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
|
|
132
|
162
|
transition: Reveal.getQueryHash().transition || 'linear', // default/cube/page/concave/zoom/linear/none
|
|
133
|
163
|
|
|
134
|
164
|
// Optional libraries used to extend on reveal.js
|
|
135
|
165
|
dependencies: [
|
|
136
|
166
|
{ src: "{{resources.reveal.url_prefix}}/lib/js/classList.js", condition: function() { return !document.body.classList; } },
|
|
137
|
167
|
{ src: "{{resources.reveal.url_prefix}}/plugin/highlight/highlight.js", async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
|
|
138
|
168
|
{ src: "{{resources.reveal.url_prefix}}/plugin/notes/notes.js", async: true, condition: function() { return !!document.body.classList; } }
|
|
139
|
169
|
]
|
|
140
|
170
|
});
|
|
141
|
171
|
</script>
|
|
142
|
172
|
|
|
143
|
173
|
<!-- Loading mathjax macro -->
|
|
144
|
174
|
{{ mathjax() }}
|
|
145
|
175
|
|
|
146
|
176
|
<script>
|
|
147
|
177
|
Reveal.addEventListener( 'slidechanged', function( event ) {
|
|
148
|
178
|
window.scrollTo(0,0);
|
|
149
|
179
|
MathJax.Hub.Rerender(event.currentSlide);
|
|
150
|
180
|
});
|
|
151
|
181
|
</script>
|
|
152
|
182
|
|
|
153
|
183
|
</body>
|
|
154
|
184
|
{% endblock body %}
|
|
155
|
185
|
|
|
156
|
186
|
{% block footer %}
|
|
157
|
187
|
</html>
|
|
158
|
188
|
{% endblock footer %}
No newline at end of file
|