##// 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 2 if (window.MathJax) {
3 3 // MathJax loaded
4 4 MathJax.Hub.Config({
5 5 tex2jax: {
6 6 inlineMath: [ ['$','$'], ["\\(","\\)"] ],
7 7 displayMath: [ ['$$','$$'], ["\\[","\\]"] ]
8 8 },
9 9 displayAlign: 'center', // Change this to 'center' to center equations.
10 10 "HTML-CSS": {
11 11 styles: {'.MathJax_Display': {"margin": 0}}
12 12 }
13 13 });
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
@@ -1,56 +1,67
1 1
2 2 <meta charset="utf-8" />
3 3 <meta http-equiv="X-UA-Compatible" content="chrome=1">
4 4
5 5 <meta name="apple-mobile-web-app-capable" content="yes" />
6 6 <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
7 7
8 8 <link rel="stylesheet" href="reveal/css/reveal.css">
9 9 <link rel="stylesheet" href="reveal/css/theme/simple.css" id="theme">
10 10
11 11 <!-- For syntax highlighting -->
12 12 <link rel="stylesheet" href="reveal/lib/css/zenburn.css">
13 13
14 14 <!-- If the query includes 'print-pdf', use the PDF print sheet -->
15 15 <script>
16 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 17 </script>
18 18
19 19 <!--[if lt IE 9]>
20 20 <script src="reveal/lib/js/html5shiv.js"></script>
21 21 <![endif]-->
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>
28 38
29 39 <script>
30 40
31 41 // Full list of configuration options available here: https://github.com/hakimel/reveal.js#configuration
32 42 Reveal.initialize({
33 43 controls: true,
34 44 progress: true,
35 45 history: true,
36 46
37 47 theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
38 48 transition: Reveal.getQueryHash().transition || 'linear', // default/cube/page/concave/zoom/linear/none
39 49
40 50 // Optional libraries used to extend on reveal.js
41 51 dependencies: [
42 52 { src: 'reveal/lib/js/classList.js', condition: function() { return !document.body.classList; } },
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