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