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