This repository was archived by the owner on Sep 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpresentation.html
67 lines (55 loc) · 2.45 KB
/
presentation.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>ASP.NET Core: From 0 to overkill</title>
<link rel="stylesheet" href="../css/reveal.css">
<!-- <link rel="stylesheet" href="../css/theme/black.css"> -->
<link rel="stylesheet" href="../css/theme/customized-black.css">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="../lib/css/zenburn.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match(/print-pdf/gi) ? '../css/print/pdf.css' : '../css/print/paper.css';
document.getElementsByTagName('head')[0].appendChild(link);
</script>
</head>
<body>
<div class="reveal">
<div id="episode-placeholder">
</div>
</div>
<script src="../lib/js/head.min.js"></script>
<script src="../js/reveal.js"></script>
<script>
const urlParams = new URLSearchParams(window.location.search);
const episode = urlParams.get('episode');
const episodeFile = new XMLHttpRequest();
episodeFile.onreadystatechange = () => {
if (episodeFile.readyState === 4) {
if (episodeFile.status === 200 || episodeFile.status == 0) {
const allText = episodeFile.responseText;
document.getElementById('episode-placeholder').innerHTML = allText;
// More info about config & dependencies:
// - https://github.com/hakimel/reveal.js#configuration
// - https://github.com/hakimel/reveal.js#dependencies
Reveal.initialize({
dependencies: [
{ src: '../plugin/markdown/marked.js' },
{ src: '../plugin/markdown/markdown.js' },
{ src: '../plugin/notes/notes.js', async: true },
{ src: '../plugin/highlight/highlight.js', async: true, callback: function () { hljs.initHighlightingOnLoad(); } }
]
});
}
}
}
episodeFile.open("GET", `./presentations/${episode}.html`, false);
episodeFile.send();
</script>
</body>
</html>