-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathppt-index.js
46 lines (43 loc) · 1.28 KB
/
ppt-index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//包含 css 文件
import 'reveal.js/css/theme/black.css'; // 配置 PPT 主题,只需替换 css 文件名即可,详见 https://www.npmjs.com/package/reveal.js#theming
import 'reveal.js/lib/css/monokai.css'; // 配置 highlight 风格,详见 https://www.npmjs.com/package/reveal.js#code-syntax-highlighting
Reveal.initialize ({
width: 960,
height: 700,
margin: 0,
minScale: 0.9,
controls: true,
progress: true,
history: true,
transition: 'slide',
dependencies: [
{
src: 'reveal.js/lib/js/classList.js',
condition: function () {
return !document.body.classList;
},
},
{
src: 'reveal.js/plugin/markdown/marked.js',
condition: function () {
return !!document.querySelector ('[data-markdown]');
},
},
{
src: 'reveal.js/plugin/markdown/markdown.js',
condition: function () {
return !!document.querySelector ('[data-markdown]');
},
},
{
src: 'reveal.js/plugin/highlight/highlight.js',
async: true,
callback: function () {
hljs.initHighlightingOnLoad ();
},
},
{src: 'reveal.js/plugin/search/search.js', async: true},
{src: 'reveal.js/plugin/zoom-js/zoom.js', async: true},
{src: 'reveal.js/plugin/notes/notes.js', async: true},
],
});