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