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