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