-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
70 lines (63 loc) · 2.12 KB
/
index.html
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>reveal.js</title>
<link rel="stylesheet" href="dist/reset.css">
<link rel="stylesheet" href="dist/reveal.css">
<link rel="stylesheet" href="dist/theme/black.css">
<!-- Theme used for syntax highlighted code -->
<link rel="stylesheet" href="plugin/highlight/monokai.css">
<style>
:root{--r-main-font-size: 24px;}
:root{--r-heading1-size: 50px;}
</style>
<style>
</style>
</head>
<body>
<div class="reveal">
<div class="slides">
<section data-markdown="slides/session1.md">
</section>
<section data-markdown="slides/session2.md">
</section>
<section data-markdown="slides/session3.md">
</section>
<section data-markdown="slides/session4.md">
</section>
</div>
</div>
<script src="dist/reveal.js"></script>
<script src="plugin/notes/notes.js"></script>
<script src="plugin/markdown/markdown.js"></script>
<script src="plugin/highlight/highlight.js"></script>
<script>
// More info about initialization & config:
// - https://revealjs.com/initialization/
// - https://revealjs.com/config/
Reveal.initialize({
hash: true,
autoAnimate: true,
// Learn about plugins: https://revealjs.com/plugins/
plugins: [ RevealMarkdown, RevealHighlight, RevealNotes ]
});
Reveal.on('ready', (event) => {
//Modify all the PRE>CODE tags so they have line numbers
let preCodeNodes = document.querySelectorAll('pre code')
preCodeNodes.forEach(function (item) {
item.dataset.lineNumbers = true
}, this)
//Add a fragment class to all list items by default
let fragmentNodes = document.querySelectorAll(
'.slide li, .slide section > p, .slide pre code:not(.has-highlights),.slide embed, .slide iframe:not(data-allowfullscreen), .slide table:not(.hljs-ln), .slide canvas'
)
fragmentNodes.forEach(function (item) {
//also animate them from the leftf
item.classList.add('fragment', 'fade-left')
}, this)
});
</script>
</body>
</html>