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