-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
27 lines (25 loc) · 1002 Bytes
/
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
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Web Chat samples</title>
<script crossorigin="anonymous" src="https://unpkg.com/core-js@2/client/core.min.js"></script>
<script crossorigin="anonymous" src="https://unpkg.com/markdown-it/dist/markdown-it.min.js"></script>
<script crossorigin="anonymous" src="https://unpkg.com/whatwg-fetch"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link rel="stylesheet" href="index.css" />
<link rel="stylesheet" href="common/markdown.css" />
</head>
<body>
<script>
'use strict';
fetch('INDEX.md')
.then(function (res) { return res.text(); })
.then(function (markdown) {
const element = document.createElement('div');
element.className = 'cheat-sheet__markdown';
element.innerHTML = window.markdownit().render(markdown);
document.body.appendChild(element);
});
</script>
</body>
</html>