##// 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,4 +1,4
1 init_mathjax = function() {
1 reveal_mathjax = function() {
2 2 if (window.MathJax) {
3 3 // MathJax loaded
4 4 MathJax.Hub.Config({
@@ -14,4 +14,4 init_mathjax = function() {
14 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
@@ -22,6 +22,16
22 22
23 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 35 <script src="reveal/lib/js/head.min.js"></script>
26 36
27 37 <script src="reveal/js/reveal.min.js"></script>
@@ -43,14 +53,15
43 53 { src: 'reveal/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
44 54 { src: 'reveal/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
45 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 },
47 { src: 'js/revealmathjax.js', async: true}
56 { src: 'http://s7.addthis.com/js/300/addthis_widget.js', async: true},
57 { src: 'js/revealmathjax.js', async: true},
58 { src: 'js/mathjax-onload.js', async: true}
48 59 ]
49 60 });
50 61 </script>
51 62
52 63 <script>
53 Reveal.addEventListener( 'slidechanged', function( event ) {
64 Reveal.addEventListener( 'slidechanged', function( event ) {
54 65 MathJax.Hub.Rerender(event.currentSlide);
55 66 });
56 67 </script> No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now