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