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