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