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