forked from airportyh/QuickSlides
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpresentation.html
More file actions
46 lines (39 loc) · 1.25 KB
/
Copy pathpresentation.html
File metadata and controls
46 lines (39 loc) · 1.25 KB
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
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>My Slides</title>
<link rel="stylesheet" type="text/css" media="screen, projection, print"
href="slidy.css" />
<link rel="stylesheet" type="text/css" media="screen, projection, print"
href="style.css" />
<script src="showdown.js"></script>
<script src="slidy.js"></script>
</head>
<body>
<script type=text/markdown>
<!--
Welcome to QuickSlides!
=======================
This is slide one
-----------------------------------------------------
This is slide two
-----------------------------------------------------
-->
</script>
<script>
var scripts = document.getElementsByTagName('script');
for (var i = 0; i < scripts.length; i++){
var script = scripts[i];
if (script.type != 'text/markdown') continue;
var md = script.innerHTML.replace(/^\s<!--*/, '')
.replace(/-->\s*$/, '');
var markup = new Showdown.converter().makeHtml(md);
var slides = markup.split('<hr />');
for (var j = 0; j < slides.length; j++)
document.write('<div class=slide>' + slides[j] + '</div>');
}
w3c_slidy.add_listener(document.body, "touchend", w3c_slidy.mouse_button_click);
</script>
</body>
</html>