Show More
@@ -1,184 +1,184 b'' | |||
|
1 | 1 | {%- extends 'reveal_internals/slides.tpl' -%} |
|
2 | 2 | |
|
3 | 3 | |
|
4 | 4 | {% block header %} |
|
5 | 5 | <!DOCTYPE html> |
|
6 | 6 | <html> |
|
7 | 7 | <head> |
|
8 | 8 | |
|
9 | 9 | <meta charset="utf-8" /> |
|
10 | 10 | <meta http-equiv="X-UA-Compatible" content="chrome=1" /> |
|
11 | 11 | |
|
12 | 12 | <meta name="apple-mobile-web-app-capable" content="yes" /> |
|
13 | 13 | <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> |
|
14 | 14 | |
|
15 | 15 | <title>{{resources['metadata']['name']}} slides</title> |
|
16 | 16 | |
|
17 | 17 | <!-- General and theme style sheets --> |
|
18 | 18 | <link rel="stylesheet" href="{{resources.reveal.url_prefix}}/css/reveal.css"> |
|
19 | 19 | <link rel="stylesheet" href="{{resources.reveal.url_prefix}}/css/theme/simple.css" id="theme"> |
|
20 | 20 | |
|
21 | 21 | <!-- For syntax highlighting --> |
|
22 | 22 | <link rel="stylesheet" href="{{resources.reveal.url_prefix}}/lib/css/zenburn.css"> |
|
23 | 23 | |
|
24 | 24 | <!-- If the query includes 'print-pdf', use the PDF print sheet --> |
|
25 | 25 | <script> |
|
26 | 26 | 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">' ); |
|
27 | 27 | </script> |
|
28 | 28 | |
|
29 | 29 | <!--[if lt IE 9]> |
|
30 | 30 | <script src="{{resources.reveal.url_prefix}}/lib/js/html5shiv.js"></script> |
|
31 | 31 | <![endif]--> |
|
32 | 32 | |
|
33 | 33 | <!-- Get Font-awesome from cdn --> |
|
34 | 34 | <link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css"> |
|
35 | 35 | |
|
36 | 36 | {% for css in resources.inlining.css -%} |
|
37 | 37 | <style type="text/css"> |
|
38 | 38 | {{ css }} |
|
39 | 39 | </style> |
|
40 | 40 | {% endfor %} |
|
41 | 41 | |
|
42 | 42 | <style type="text/css"> |
|
43 | 43 | /* Overrides of notebook CSS for static HTML export */ |
|
44 | 44 | html { |
|
45 | 45 | overflow-y: auto; |
|
46 | 46 | } |
|
47 | 47 | .reveal { |
|
48 |
font-size: |
|
|
48 | font-size: 160%; | |
|
49 | 49 | } |
|
50 | 50 | .reveal pre { |
|
51 | 51 | width: inherit; |
|
52 | 52 | padding: 0.4em; |
|
53 | 53 | margin: 0px; |
|
54 | 54 | font-family: monospace, sans-serif; |
|
55 | 55 | font-size: 80%; |
|
56 | 56 | box-shadow: 0px 0px 0px rgba(0, 0, 0, 0); |
|
57 | 57 | } |
|
58 | 58 | .reveal section img { |
|
59 | 59 | border: 0px solid black; |
|
60 | 60 | box-shadow: 0 0 10px rgba(0, 0, 0, 0); |
|
61 | 61 | } |
|
62 | 62 | .reveal i { |
|
63 | 63 | font-style: normal; |
|
64 | 64 | font-family: FontAwesome; |
|
65 | 65 | font-size: 2em; |
|
66 | 66 | } |
|
67 | 67 | .reveal .slides { |
|
68 | 68 | text-align: left; |
|
69 | 69 | } |
|
70 | 70 | .reveal.fade { |
|
71 | 71 | opacity: 1; |
|
72 | 72 | } |
|
73 | 73 | .reveal .progress { |
|
74 | 74 | position: static; |
|
75 | 75 | } |
|
76 | 76 | div.input_area { |
|
77 | 77 | padding: 0.06em; |
|
78 | 78 | } |
|
79 | 79 | div.code_cell { |
|
80 | 80 | background-color: transparent; |
|
81 | 81 | } |
|
82 | 82 | div.prompt { |
|
83 | 83 | width: 11ex; |
|
84 | 84 | padding: 0.4em; |
|
85 | 85 | margin: 0px; |
|
86 | 86 | font-family: monospace, sans-serif; |
|
87 | 87 | font-size: 80%; |
|
88 | 88 | text-align: right; |
|
89 | 89 | } |
|
90 | 90 | div.output_area pre { |
|
91 | 91 | font-family: monospace, sans-serif; |
|
92 | 92 | font-size: 80%; |
|
93 | 93 | } |
|
94 | 94 | div.output_prompt { |
|
95 | 95 | /* 5px right shift to account for margin in parent container */ |
|
96 | 96 | margin: 5px 5px 0 0; |
|
97 | 97 | } |
|
98 | 98 | .rendered_html p { |
|
99 | 99 | text-align: inherit; |
|
100 | 100 | } |
|
101 | 101 | </style> |
|
102 | 102 | |
|
103 | 103 | <!-- Custom stylesheet, it must be in the same directory as the html file --> |
|
104 | 104 | <link rel="stylesheet" href="custom.css"> |
|
105 | 105 | |
|
106 | 106 | </head> |
|
107 | 107 | {% endblock header%} |
|
108 | 108 | |
|
109 | 109 | |
|
110 | 110 | {% block body %} |
|
111 | 111 | <body> |
|
112 | 112 | <div class="reveal"> |
|
113 | 113 | <div class="slides"> |
|
114 | 114 | {{ super() }} |
|
115 | 115 | </div> |
|
116 | 116 | </div> |
|
117 | 117 | |
|
118 | 118 | <script src="{{resources.reveal.url_prefix}}/lib/js/head.min.js"></script> |
|
119 | 119 | |
|
120 | 120 | <script src="{{resources.reveal.url_prefix}}/js/reveal.js"></script> |
|
121 | 121 | |
|
122 | 122 | <script> |
|
123 | 123 | |
|
124 | 124 | // Full list of configuration options available here: https://github.com/hakimel/reveal.js#configuration |
|
125 | 125 | Reveal.initialize({ |
|
126 | 126 | controls: true, |
|
127 | 127 | progress: true, |
|
128 | 128 | history: true, |
|
129 | 129 | |
|
130 | 130 | theme: Reveal.getQueryHash().theme, // available themes are in /css/theme |
|
131 | 131 | transition: Reveal.getQueryHash().transition || 'linear', // default/cube/page/concave/zoom/linear/none |
|
132 | 132 | |
|
133 | 133 | // Optional libraries used to extend on reveal.js |
|
134 | 134 | dependencies: [ |
|
135 | 135 | { src: "{{resources.reveal.url_prefix}}/lib/js/classList.js", condition: function() { return !document.body.classList; } }, |
|
136 | 136 | { src: "{{resources.reveal.url_prefix}}/plugin/highlight/highlight.js", async: true, callback: function() { hljs.initHighlightingOnLoad(); } }, |
|
137 | 137 | { src: "{{resources.reveal.url_prefix}}/plugin/notes/notes.js", async: true, condition: function() { return !!document.body.classList; } } |
|
138 | 138 | ] |
|
139 | 139 | }); |
|
140 | 140 | </script> |
|
141 | 141 | |
|
142 | 142 | <!-- MathJax configuration --> |
|
143 | 143 | <script type="text/x-mathjax-config"> |
|
144 | 144 | MathJax.Hub.Config({ |
|
145 | 145 | tex2jax: { |
|
146 | 146 | inlineMath: [ ['$','$'], ["\\(","\\)"] ], |
|
147 | 147 | displayMath: [ ['$$','$$'], ["\\[","\\]"] ] |
|
148 | 148 | }, |
|
149 | 149 | displayAlign: 'left', // Change this to 'center' to center equations. |
|
150 | 150 | "HTML-CSS": { |
|
151 | 151 | styles: {'.MathJax_Display': {"margin": 0}} |
|
152 | 152 | } |
|
153 | 153 | }); |
|
154 | 154 | </script> |
|
155 | 155 | <!-- End of mathjax configuration --> |
|
156 | 156 | |
|
157 | 157 | <script> |
|
158 | 158 | // We wait for the onload function to load MathJax after the page is completely loaded. |
|
159 | 159 | // MathJax is loaded 1 unit of time after the page is ready. |
|
160 | 160 | // This hack prevent problems when you load multiple js files. |
|
161 | 161 | |
|
162 | 162 | window.onload = function () { |
|
163 | 163 | setTimeout(function () { |
|
164 | 164 | var script = document.createElement("script"); |
|
165 | 165 | script.type = "text/javascript"; |
|
166 | 166 | script.src = "https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"; |
|
167 | 167 | document.getElementsByTagName("head")[0].appendChild(script); |
|
168 | 168 | },1) |
|
169 | 169 | } |
|
170 | 170 | </script> |
|
171 | 171 | |
|
172 | 172 | <script> |
|
173 | 173 | Reveal.addEventListener( 'slidechanged', function( event ) { |
|
174 | 174 | window.scrollTo(0,0); |
|
175 | 175 | MathJax.Hub.Rerender(event.currentSlide); |
|
176 | 176 | }); |
|
177 | 177 | </script> |
|
178 | 178 | |
|
179 | 179 | </body> |
|
180 | 180 | {% endblock body %} |
|
181 | 181 | |
|
182 | 182 | {% block footer %} |
|
183 | 183 | </html> |
|
184 | 184 | {% endblock footer %} No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now