|
4 | 4 | <meta charset="utf-8" /> |
5 | 5 | <base href="/" /> |
6 | 6 | <!-- Force all the relative paths to lookup from / --> |
7 | | - <link rel="stylesheet" href="revealjs/css/reveal.css" /> |
| 7 | + <link rel="stylesheet" href="revealjs/dist/reveal.css" /> |
8 | 8 | <link |
9 | 9 | rel="stylesheet" |
10 | 10 | {{if |
11 | 11 | .OriginalTheme}} |
12 | 12 | href="{{.Theme}}" |
13 | 13 | {{else}} |
14 | | - href="revealjs/css/theme/{{.Theme}}" |
| 14 | + href="revealjs/dist/theme/{{.Theme}}" |
15 | 15 | {{end}} |
16 | 16 | id="theme" |
17 | 17 | /> |
18 | | - <link rel="stylesheet" href="revealjs/lib/css/zenburn.css" /> |
19 | | - <!-- If the query includes 'print-pdf', use the PDF print sheet --> |
20 | | - <script> |
21 | | - document.write( |
22 | | - '<link rel="stylesheet" href="revealjs/css/print/' + |
23 | | - (window.location.search.match(/print-pdf/gi) ? "pdf" : "paper") + |
24 | | - '.css" type="text/css" media="print">' |
25 | | - ) |
26 | | - </script> |
27 | | - <!--[if lt IE 9]> |
28 | | - <script src="revealjs/lib/js/html5shiv.js"></script> |
29 | | - <![endif]--> |
| 18 | + <link rel="stylesheet" href="revealjs/plugin/highlight/zenburn.css" /> |
30 | 19 | </head> |
31 | 20 | <body> |
32 | 21 | <div class="reveal"> |
|
46 | 35 | </section> |
47 | 36 | </div> |
48 | 37 | </div> |
49 | | - <script src="revealjs/js/reveal.js"></script> |
| 38 | + <script src="revealjs/dist/reveal.js"></script> |
| 39 | + <script src="revealjs/plugin/markdown/markdown.js"></script> |
| 40 | + <script src="revealjs/plugin/highlight/highlight.js"></script> |
| 41 | + <script src="revealjs/plugin/notes/notes.js"></script> |
50 | 42 | <script> |
51 | 43 | Reveal.initialize({ |
52 | 44 | controls: true, |
53 | 45 | progress: true, |
54 | 46 | history: true, |
55 | 47 | center: true, |
56 | | - theme: Reveal.getQueryHash().theme, // available themes are in /css/theme |
57 | | - transition: Reveal.getQueryHash().transition || '{{.Transition}}', // default/cube/page/concave/zoom/linear/fade/none |
| 48 | + transition: '{{.Transition}}', |
| 49 | + plugins: [RevealMarkdown, RevealHighlight, RevealNotes], |
| 50 | + |
58 | 51 | {{if (ne .Multiplex.Secret "") -}} |
59 | 52 | multiplex: { |
60 | 53 | secret: {{if .Multiplex.IsMaster}}'{{.Multiplex.Secret}}'{{else}}null{{end}}, |
61 | 54 | id: '{{.Multiplex.Identifier}}', |
62 | 55 | url: '/' |
63 | 56 | }, |
64 | 57 | {{end -}} |
65 | | - |
66 | | - // Optional libraries used to extend on reveal.js |
67 | 58 | dependencies: [ |
68 | 59 | {{if (ne .Multiplex.Secret "") -}} |
69 | 60 | { src: 'socketio/socket.io.js', async: true }, |
70 | | - { src: '{{if .Multiplex.IsMaster}}revealjs/plugin/multiplex/master.js{{else}}revealjs/plugin/multiplex/client.js{{end}}', async: true }, |
| 61 | + { src: '{{if .Multiplex.IsMaster}}multiplex/master.js{{else}}multiplex/client.js{{end}}', async: true }, |
71 | 62 | {{end -}} |
72 | | - { src: 'revealjs/lib/js/classList.js', condition: function() { return !document.body.classList; } }, |
73 | | - { src: 'revealjs/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, |
74 | | - { src: 'revealjs/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, |
75 | | - { src: 'revealjs/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }, |
76 | | - { src: 'revealjs/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } }, |
77 | | - { src: 'revealjs/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } } |
78 | 63 | ] |
79 | | - }); |
| 64 | + }) |
80 | 65 | </script> |
81 | 66 | </body> |
82 | 67 | </html> |
0 commit comments