-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathload-presentation.js
More file actions
37 lines (31 loc) · 885 Bytes
/
load-presentation.js
File metadata and controls
37 lines (31 loc) · 885 Bytes
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
// Place all of your files here
sourceUrls = [
'intro.md',
'content.md',
'questions.md',
];
var xmlhttp = new XMLHttpRequest();
var source = document.getElementById("source")
for (var i = 0; i < sourceUrls.length; i++) {
var sourcefile = sourceUrls[i];
var ignore = false;
if (sourcefile[0] == '-') {
ignore = true;
sourcefile = sourcefile.substring(1, sourcefile.length);
}
xmlhttp.open('GET', sourcefile, false);
xmlhttp.send();
if (i > 0) source.innerHTML += "---\n"
if (ignore) source.innerHTML += 'count: false\n';
var content = xmlhttp.responseText;
if (ignore) content = content.replace('---', '---\ncount: false');
source.innerHTML += "\n" + content;
};
var slideshow = remark.create({
ratio: '16:9',
navigation: {
scroll: false,
touch: true,
click: false
},
});