git.iko.soy/typeable/pandoc
on master help sign in
update template for reveal.js 4.0.0 (#6390)
1b3ce80Salim B
data/templates/default.revealjs+21−28
@@ -16,30 +16,19 @@ $endif$
16 <meta name="apple-mobile-web-app-capable" content="yes">
16 <meta name="apple-mobile-web-app-capable" content="yes">
17 <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
17 <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
18 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
18 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
19− <link rel="stylesheet" href="$revealjs-url$/css/reset.css">
19+ <link rel="stylesheet" href="$revealjs-url$/dist/reset.css">
20− <link rel="stylesheet" href="$revealjs-url$/css/reveal.css">
20+ <link rel="stylesheet" href="$revealjs-url$/dist/reveal.css">
21 <style>
21 <style>
22 $styles.html()$
22 $styles.html()$
23 </style>
23 </style>
24$if(theme)$
24$if(theme)$
25− <link rel="stylesheet" href="$revealjs-url$/css/theme/$theme$.css" id="theme">
25+ <link rel="stylesheet" href="$revealjs-url$/dist/theme/$theme$.css" id="theme">
26$else$
26$else$
27− <link rel="stylesheet" href="$revealjs-url$/css/theme/black.css" id="theme">
27+ <link rel="stylesheet" href="$revealjs-url$/dist/theme/black.css" id="theme">
28$endif$
28$endif$
29$for(css)$
29$for(css)$
30 <link rel="stylesheet" href="$css$"/>
30 <link rel="stylesheet" href="$css$"/>
31$endfor$
31$endfor$
32− <!-- Printing and PDF exports -->
33− <script>
34− var link = document.createElement( 'link' );
35− link.rel = 'stylesheet';
36− link.type = 'text/css';
37− link.href = window.location.search.match( /print-pdf/gi ) ? '$revealjs-url$/css/print/pdf.css' : '$revealjs-url$/css/print/paper.css';
38− document.getElementsByTagName( 'head' )[0].appendChild( link );
39− </script>
40− <!--[if lt IE 9]>
41− <script src="$revealjs-url$/lib/js/html5shiv.js"></script>
42− <![endif]-->
43$if(math)$
32$if(math)$
44 $math$
33 $math$
45$endif$
34$endif$
@@ -78,12 +67,20 @@ $body$
78 </div>
67 </div>
79 </div>
68 </div>
80
69
81− <script src="$revealjs-url$/js/reveal.js"></script>
70+ <script src="$revealjs-url$/dist/reveal.js"></script>
71+
72+ // reveal.js plugins
73+ <script src="$revealjs-url$/plugin/notes/notes.js"></script>
74+ <script src="$revealjs-url$/plugin/search/search.js"></script>
75+ <script src="$revealjs-url$/plugin/zoom/zoom.js"></script>
76+$if(mathjax)$
77+ <script src="$revealjs-url$/plugin/math/math.js"></script>
78+$endif$
82
79
83 <script>
80 <script>
84
81
85 // Full list of configuration options available at:
82 // Full list of configuration options available at:
86− // https://github.com/hakimel/reveal.js#configuration
83+ // https://revealjs.com/config/
87 Reveal.initialize({
84 Reveal.initialize({
88$if(controls)$
85$if(controls)$
89 // Display controls in the bottom right corner
86 // Display controls in the bottom right corner
@@ -147,7 +144,7 @@ $if(rtl)$
147 rtl: $rtl$,
144 rtl: $rtl$,
148$endif$
145$endif$
149$if(navigationMode)$
146$if(navigationMode)$
150− // see https://github.com/hakimel/reveal.js/#navigation-mode
147+ // see https://revealjs.com/vertical-slides/#navigation-mode
151 navigationMode: '$navigationMode$',
148 navigationMode: '$navigationMode$',
152$endif$
149$endif$
153$if(shuffle)$
150$if(shuffle)$
@@ -341,18 +338,14 @@ $if(mathjax)$
341 },
338 },
342$endif$
339$endif$
343
340
344− // Optional reveal.js plugins
341+ // reveal.js plugins
345− dependencies: [
342+ plugins: [
346− { src: '$revealjs-url$/lib/js/classList.js', condition: function() { return !document.body.classList; } },
347− { src: '$revealjs-url$/plugin/zoom-js/zoom.js', async: true },
348−$if(notes-server)$
349− { src: '$revealjs-url$/socket.io/socket.io.js', async: true },
350− { src: '$revealjs-url$/plugin/notes-server/client.js', async: true },
351−$endif$
352$if(mathjax)$
343$if(mathjax)$
353− { src: '$revealjs-url$/plugin/math/math.js', async: true },
344+ RevealMath,
354$endif$
345$endif$
355− { src: '$revealjs-url$/plugin/notes/notes.js', async: true }
346+ RevealNotes,
347+ RevealSearch,
348+ RevealZoom
356 ]
349 ]
357 });
350 });
358 </script>
351 </script>