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