-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·55 lines (47 loc) · 1.77 KB
/
index.html
File metadata and controls
executable file
·55 lines (47 loc) · 1.77 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
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html>
<head>
<title>Slidedown</title>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" href="lib/solarized_dark.css" />
<link rel="stylesheet" type="text/css" href="lib/slidedown.build.css" />
<script type="text/javascript" src="lib/hammer.js"></script>
<script type="text/javascript" src="lib/slidedown.build.js"></script>
<style type="text/css">
#slides {
height: 100%;
}
</style>
<script>
function parseQuery(querystring) {
// remove any preceding url and split
querystring = querystring.substring(querystring.indexOf('?')+1).split('&');
var params = {}, pair, d = decodeURIComponent;
// march and parse
for (var i = querystring.length - 1; i >= 0; i--) {
pair = querystring[i].split('=');
params[d(pair[0])] = d(pair[1]);
}
return params;
};
// console.log(document.location);
var mdSource = parseQuery(document.location.search).src || 'md/slidedown.md';
Slidedown.fromXHR(mdSource).to('#slides');
</script>
</head>
<body>
<a id="github-ribbon" href="https://github.com/slidedown/slidedown">
<img
style="position: fixed; top: 0; left: 0; border: 0; z-index: 1;"
src="https://s3.amazonaws.com/github/ribbons/forkme_left_darkblue_121621.png"
alt="Fork me on GitHub" />
</a>
<div id="slides"></div>
<script>
document.getElementById('github-ribbon').addEventListener('click', function(e) {
e.stopPropagation();
});
</script>
</body>
</html>