##// END OF EJS Templates
Merge pull request #5671 from ncornette/master...
Matthias Bussonnier -
r16366:e635c805 merge
parent child Browse files
Show More
@@ -1,191 +1,198 b''
1 1 {%- extends 'basic.tpl' -%}
2 2 {% from 'mathjax.tpl' import mathjax %}
3 3
4 4 {%- block any_cell scoped -%}
5 5 {%- if cell.metadata.slide_type in ['slide'] -%}
6 6 <section>
7 7 <section>
8 8 {{ super() }}
9 9 {%- elif cell.metadata.slide_type in ['subslide'] -%}
10 10 <section>
11 11 {{ super() }}
12 12 {%- elif cell.metadata.slide_type in ['-'] -%}
13 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 25 </div>
26 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 <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
49 49 <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
50 50
51 51 <!-- General and theme style sheets -->
52 52 <link rel="stylesheet" href="{{resources.reveal.url_prefix}}/css/reveal.css">
53 53 <link rel="stylesheet" href="{{resources.reveal.url_prefix}}/css/theme/simple.css" id="theme">
54 54
55 55 <!-- For syntax highlighting -->
56 56 <link rel="stylesheet" href="{{resources.reveal.url_prefix}}/lib/css/zenburn.css">
57 57
58 <!-- If the query includes 'print-pdf', use the PDF print sheet -->
58 <!-- If the query includes 'print-pdf', include the PDF print sheet -->
59 59 <script>
60 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">' );
60 if( window.location.search.match( /print-pdf/gi ) ) {
61 var link = document.createElement( 'link' );
62 link.rel = 'stylesheet';
63 link.type = 'text/css';
64 link.href = '{{resources.reveal.url_prefix}}/css/print/pdf.css';
65 document.getElementsByTagName( 'head' )[0].appendChild( link );
66 }
67
61 68 </script>
62 69
63 70 <!--[if lt IE 9]>
64 71 <script src="{{resources.reveal.url_prefix}}/lib/js/html5shiv.js"></script>
65 72 <![endif]-->
66 73
67 74 <!-- Get Font-awesome from cdn -->
68 75 <link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css">
69 76
70 77 {% for css in resources.inlining.css -%}
71 78 <style type="text/css">
72 79 {{ css }}
73 80 </style>
74 81 {% endfor %}
75 82
76 83 <style type="text/css">
77 84 /* Overrides of notebook CSS for static HTML export */
78 85 html {
79 86 overflow-y: auto;
80 87 }
81 88 .reveal {
82 89 font-size: 160%;
83 90 }
84 91 .reveal pre {
85 92 width: inherit;
86 93 padding: 0.4em;
87 94 margin: 0px;
88 95 font-family: monospace, sans-serif;
89 96 font-size: 80%;
90 97 box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
91 98 }
92 99 .reveal section img {
93 100 border: 0px solid black;
94 101 box-shadow: 0 0 10px rgba(0, 0, 0, 0);
95 102 }
96 103 .reveal i {
97 104 font-style: normal;
98 105 font-family: FontAwesome;
99 106 font-size: 2em;
100 107 }
101 108 .reveal .slides {
102 109 text-align: left;
103 110 }
104 111 .reveal.fade {
105 112 opacity: 1;
106 113 }
107 114 .reveal .progress {
108 115 position: static;
109 116 }
110 117 div.input_area {
111 118 padding: 0.06em;
112 119 }
113 120 div.code_cell {
114 121 background-color: transparent;
115 122 }
116 123 div.prompt {
117 124 width: 11ex;
118 125 padding: 0.4em;
119 126 margin: 0px;
120 127 font-family: monospace, sans-serif;
121 128 font-size: 80%;
122 129 text-align: right;
123 130 }
124 131 div.output_area pre {
125 132 font-family: monospace, sans-serif;
126 133 font-size: 80%;
127 134 }
128 135 div.output_prompt {
129 136 /* 5px right shift to account for margin in parent container */
130 137 margin: 5px 5px 0 0;
131 138 }
132 139 .rendered_html p {
133 140 text-align: inherit;
134 141 }
135 142 </style>
136 143
137 144 <!-- Custom stylesheet, it must be in the same directory as the html file -->
138 145 <link rel="stylesheet" href="custom.css">
139 146
140 147 </head>
141 148 {% endblock header%}
142 149
143 150
144 151 {% block body %}
145 152 <body>
146 153 <div class="reveal">
147 154 <div class="slides">
148 155 {{ super() }}
149 156 </div>
150 157 </div>
151 158
152 159 <script src="{{resources.reveal.url_prefix}}/lib/js/head.min.js"></script>
153 160
154 161 <script src="{{resources.reveal.url_prefix}}/js/reveal.js"></script>
155 162
156 163 <script>
157 164
158 165 // Full list of configuration options available here: https://github.com/hakimel/reveal.js#configuration
159 166 Reveal.initialize({
160 167 controls: true,
161 168 progress: true,
162 169 history: true,
163 170
164 171 theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
165 172 transition: Reveal.getQueryHash().transition || 'linear', // default/cube/page/concave/zoom/linear/none
166 173
167 174 // Optional libraries used to extend on reveal.js
168 175 dependencies: [
169 176 { src: "{{resources.reveal.url_prefix}}/lib/js/classList.js", condition: function() { return !document.body.classList; } },
170 177 { src: "{{resources.reveal.url_prefix}}/plugin/highlight/highlight.js", async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
171 178 { src: "{{resources.reveal.url_prefix}}/plugin/notes/notes.js", async: true, condition: function() { return !!document.body.classList; } }
172 179 ]
173 180 });
174 181 </script>
175 182
176 183 <!-- Loading mathjax macro -->
177 184 {{ mathjax() }}
178 185
179 186 <script>
180 187 Reveal.addEventListener( 'slidechanged', function( event ) {
181 188 window.scrollTo(0,0);
182 189 MathJax.Hub.Rerender(event.currentSlide);
183 190 });
184 191 </script>
185 192
186 193 </body>
187 194 {% endblock body %}
188 195
189 196 {% block footer %}
190 197 </html>
191 198 {% endblock footer %} No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now