This repository has been archived by the owner on Sep 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
/
index.html
137 lines (120 loc) · 5.21 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<!-- reveal.js CSS theme and local overrides -->
<link rel="stylesheet" href="reveal.js/css/reveal.css"/>
<link rel="stylesheet" href="reveal.js/css/theme/white.css" id="theme"/>
<link rel="stylesheet" href="css/reveal-override.css"/>
<!-- For syntax highlighting -->
<link rel="stylesheet" href="highlight.js/src/styles/github.css" />
<!-- For JavaScript-generated QR codes -->
<link rel="stylesheet" href="css/qrcode.css" />
<!-- If the query includes 'print-pdf', use the PDF print sheet -->
<script>
document.write( '<link rel="stylesheet" href="reveal.js/css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' );
</script>
</head>
<body>
<div class="reveal">
<div class="slides">
<section id="qrcode" data-menu-title="QR code">
<div class="qrcode" id="qrcode-talk"></div>
<p><a href="https://example.com/link/to/this/talk" target="_blank"
id="talk">https://example.com/link/to/this/talk</a></p>
</section>
<section id="intro"
data-markdown="markdown/intro.md"
data-separator="^\n\n\n"
data-separator-vertical="^\n\n"
data-separator-notes="^Note:">
</section>
<section id="main"
data-markdown="markdown/main.md"
data-separator="^\n\n\n"
data-separator-vertical="^\n\n"
data-separator-notes="^Note:">
</section>
<section id="conclusion"
data-markdown="markdown/conclusion.md"
data-separator="^\n\n\n"
data-separator-vertical="^\n\n"
data-separator-notes="^Note:">
</section>
</div>
</div>
<script src="qrcodejs/qrcode.js"></script>
<script>
/* Grab all links and iterate over them */
document.querySelectorAll('a[href]').forEach(function(a) {
/* Find an element named #qrcode-id, and render the QR code there */
document.querySelectorAll('#qrcode-' + a.id).forEach(function(target) {
var qr = new QRCode(target, {
width : 500,
height : 500,
colorDark : "#000000",
colorLight : "rgba(255,255,255,0)",
});
qr.makeCode(a.href);
});
});
</script>
<script src="reveal.js/lib/js/head.min.js"></script>
<script src="reveal.js/js/reveal.js"></script>
<script>
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: false,
progress: false,
history: true,
center: true,
// Parallax background image
parallaxBackgroundImage: 'images/background.jpg',
// Parallax background size
parallaxBackgroundSize: '2100px 900px', // CSS syntax, e.g. "2100px 900px"
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
transition: Reveal.getQueryHash().transition || 'fade', // default/cube/page/concave/zoom/linear/fade/none
menu: {
themes: false,
transitions: false,
openButton: false,
openSlideNumber: true,
markers: true
},
keyboard: {
40: 'next',
38: 'prev'
},
multiplex: {
secret: null,
id: 'insert-id-here',
url: 'https://reveal-js-multiplex-ccjbegmaii.now.sh'
},
// Optional libraries used to extend on reveal.js
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/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
{ src: 'reveal.js/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } },
{ src: '//cdn.socket.io/socket.io-1.3.5.js', async: true },
{ src: 'reveal.js/plugin/multiplex/master.js', async: true },
{ src: 'reveal.js-menu/menu.js', async: true, condition: function() { return !!document.body.classList; } },
]
});
// If we wanted mouse clicks to advance to next / previous slides, this is
// how we'd do it:
// window.addEventListener("mousedown", handleClick, false);
// window.addEventListener("contextmenu", function(e) { e.preventDefault(); }, false);
function handleClick(e) {
e.preventDefault();
if(e.button === 0) Reveal.next();
// if(e.button === 2) Reveal.prev();
}
</script>
</body>
</html>