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