##// END OF EJS Templates
Fixed fontsize issue and added missing require and jquery from cdn.
damianavila -
Show More
@@ -1,188 +1,194 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 }
113 div.input_area>div.highlight>pre {
114 font-size: 80%;
115 }
110 116 div.code_cell {
111 117 background-color: transparent;
112 118 }
113 119 div.prompt {
114 120 width: 11ex;
115 121 padding: 0.4em;
116 122 margin: 0px;
117 123 font-family: monospace, sans-serif;
118 124 font-size: 80%;
119 125 text-align: right;
120 126 }
121 127 div.output_area pre {
122 128 font-family: monospace, sans-serif;
123 129 font-size: 80%;
124 130 }
125 131 div.output_prompt {
126 132 /* 5px right shift to account for margin in parent container */
127 133 margin: 5px 5px 0 0;
128 134 }
129 135 .rendered_html p {
130 136 text-align: inherit;
131 137 }
132 138 </style>
133 139
134 140 <!-- Custom stylesheet, it must be in the same directory as the html file -->
135 141 <link rel="stylesheet" href="custom.css">
136 142
137 143 </head>
138 144 {% endblock header%}
139 145
140 146
141 147 {% block body %}
142 148 <body>
143 149 <div class="reveal">
144 150 <div class="slides">
145 151 {{ super() }}
146 152 </div>
147 153 </div>
148 154
149 155 <script src="{{resources.reveal.url_prefix}}/lib/js/head.min.js"></script>
150 156
151 157 <script src="{{resources.reveal.url_prefix}}/js/reveal.js"></script>
152 158
153 159 <script>
154 160
155 161 // Full list of configuration options available here: https://github.com/hakimel/reveal.js#configuration
156 162 Reveal.initialize({
157 163 controls: true,
158 164 progress: true,
159 165 history: true,
160 166
161 167 theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
162 168 transition: Reveal.getQueryHash().transition || 'linear', // default/cube/page/concave/zoom/linear/none
163 169
164 170 // Optional libraries used to extend on reveal.js
165 171 dependencies: [
166 172 { src: "{{resources.reveal.url_prefix}}/lib/js/classList.js", condition: function() { return !document.body.classList; } },
167 173 { src: "{{resources.reveal.url_prefix}}/plugin/highlight/highlight.js", async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
168 174 { src: "{{resources.reveal.url_prefix}}/plugin/notes/notes.js", async: true, condition: function() { return !!document.body.classList; } }
169 175 ]
170 176 });
171 177 </script>
172 178
173 179 <!-- Loading mathjax macro -->
174 180 {{ mathjax() }}
175 181
176 182 <script>
177 183 Reveal.addEventListener( 'slidechanged', function( event ) {
178 184 window.scrollTo(0,0);
179 185 MathJax.Hub.Rerender(event.currentSlide);
180 186 });
181 187 </script>
182 188
183 189 </body>
184 190 {% endblock body %}
185 191
186 192 {% block footer %}
187 193 </html>
188 194 {% endblock footer %} No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now