##// END OF EJS Templates
Added social button.
damianavila -
Show More
@@ -0,0 +1,12
1 // We wait for the onload function to load MathJax after the page is completely loaded.
2 // MathJax is loaded 1 unit of time after the page is ready.
3 // This hack prevent problems when you use social button from addthis.
4 //
5 window.onload = function () {
6 setTimeout(function () {
7 var script = document.createElement("script");
8 script.type = "text/javascript";
9 script.src = "https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS_HTML";
10 document.getElementsByTagName("head")[0].appendChild(script);
11 },1)
12 } No newline at end of file
@@ -1,17 +1,17
1 init_mathjax = function() {
1 reveal_mathjax = function() {
2 if (window.MathJax) {
2 if (window.MathJax) {
3 // MathJax loaded
3 // MathJax loaded
4 MathJax.Hub.Config({
4 MathJax.Hub.Config({
5 tex2jax: {
5 tex2jax: {
6 inlineMath: [ ['$','$'], ["\\(","\\)"] ],
6 inlineMath: [ ['$','$'], ["\\(","\\)"] ],
7 displayMath: [ ['$$','$$'], ["\\[","\\]"] ]
7 displayMath: [ ['$$','$$'], ["\\[","\\]"] ]
8 },
8 },
9 displayAlign: 'center', // Change this to 'center' to center equations.
9 displayAlign: 'center', // Change this to 'center' to center equations.
10 "HTML-CSS": {
10 "HTML-CSS": {
11 styles: {'.MathJax_Display': {"margin": 0}}
11 styles: {'.MathJax_Display': {"margin": 0}}
12 }
12 }
13 });
13 });
14 MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
14 MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
15 }
15 }
16 }
16 }
17 init_mathjax(); No newline at end of file
17 reveal_mathjax(); No newline at end of file
@@ -1,56 +1,67
1
1
2 <meta charset="utf-8" />
2 <meta charset="utf-8" />
3 <meta http-equiv="X-UA-Compatible" content="chrome=1">
3 <meta http-equiv="X-UA-Compatible" content="chrome=1">
4
4
5 <meta name="apple-mobile-web-app-capable" content="yes" />
5 <meta name="apple-mobile-web-app-capable" content="yes" />
6 <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
6 <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
7
7
8 <link rel="stylesheet" href="reveal/css/reveal.css">
8 <link rel="stylesheet" href="reveal/css/reveal.css">
9 <link rel="stylesheet" href="reveal/css/theme/simple.css" id="theme">
9 <link rel="stylesheet" href="reveal/css/theme/simple.css" id="theme">
10
10
11 <!-- For syntax highlighting -->
11 <!-- For syntax highlighting -->
12 <link rel="stylesheet" href="reveal/lib/css/zenburn.css">
12 <link rel="stylesheet" href="reveal/lib/css/zenburn.css">
13
13
14 <!-- If the query includes 'print-pdf', use the PDF print sheet -->
14 <!-- If the query includes 'print-pdf', use the PDF print sheet -->
15 <script>
15 <script>
16 document.write( '<link rel="stylesheet" href="reveal/css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' );
16 document.write( '<link rel="stylesheet" href="reveal/css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' );
17 </script>
17 </script>
18
18
19 <!--[if lt IE 9]>
19 <!--[if lt IE 9]>
20 <script src="reveal/lib/js/html5shiv.js"></script>
20 <script src="reveal/lib/js/html5shiv.js"></script>
21 <![endif]-->
21 <![endif]-->
22
22
23 %slides%
23 %slides%
24
24
25 <!-- Social buttons -->
26 <div class="addthis_toolbox addthis_floating_style addthis_32x32_style" style="left:20px;top:20px;">
27 <a class="addthis_button_twitter"></a>
28 <a class="addthis_button_google_plusone_share"></a>
29 <a class="addthis_button_linkedin"></a>
30 <a class="addthis_button_facebook"></a>
31 <a class="addthis_button_more"></a>
32 </div>
33 <!-- End of social buttons -->
34
25 <script src="reveal/lib/js/head.min.js"></script>
35 <script src="reveal/lib/js/head.min.js"></script>
26
36
27 <script src="reveal/js/reveal.min.js"></script>
37 <script src="reveal/js/reveal.min.js"></script>
28
38
29 <script>
39 <script>
30
40
31 // Full list of configuration options available here: https://github.com/hakimel/reveal.js#configuration
41 // Full list of configuration options available here: https://github.com/hakimel/reveal.js#configuration
32 Reveal.initialize({
42 Reveal.initialize({
33 controls: true,
43 controls: true,
34 progress: true,
44 progress: true,
35 history: true,
45 history: true,
36
46
37 theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
47 theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
38 transition: Reveal.getQueryHash().transition || 'linear', // default/cube/page/concave/zoom/linear/none
48 transition: Reveal.getQueryHash().transition || 'linear', // default/cube/page/concave/zoom/linear/none
39
49
40 // Optional libraries used to extend on reveal.js
50 // Optional libraries used to extend on reveal.js
41 dependencies: [
51 dependencies: [
42 { src: 'reveal/lib/js/classList.js', condition: function() { return !document.body.classList; } },
52 { src: 'reveal/lib/js/classList.js', condition: function() { return !document.body.classList; } },
43 { src: 'reveal/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
53 { src: 'reveal/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
44 { src: 'reveal/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
54 { src: 'reveal/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
45 { src: 'notes/notes.js', async: true, condition: function() { return !!document.body.classList; } },
55 { src: 'notes/notes.js', async: true, condition: function() { return !!document.body.classList; } },
46 { src: 'https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS_HTML', async: true },
56 { src: 'http://s7.addthis.com/js/300/addthis_widget.js', async: true},
47 { src: 'js/revealmathjax.js', async: true}
57 { src: 'js/revealmathjax.js', async: true},
58 { src: 'js/mathjax-onload.js', async: true}
48 ]
59 ]
49 });
60 });
50 </script>
61 </script>
51
62
52 <script>
63 <script>
53 Reveal.addEventListener( 'slidechanged', function( event ) {
64 Reveal.addEventListener( 'slidechanged', function( event ) {
54 MathJax.Hub.Rerender(event.currentSlide);
65 MathJax.Hub.Rerender(event.currentSlide);
55 });
66 });
56 </script> No newline at end of file
67 </script>
General Comments 0
You need to be logged in to leave comments. Login now