-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
27 lines (26 loc) · 894 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">
<head>
<meta charset="utf-8">
<title>EuroRomCom</title>
<meta name="description" content="EuroRomCom">
<meta name="author" content="Philip Richard Kirkbride">
<script type="text/javascript" src="https://cdn.rawgit.com/showdownjs/showdown/1.6.3/dist/showdown.min.js"></script>
</head>
<body id="body">
<script type="text/javascript">
var rawFile = new XMLHttpRequest();
rawFile.open("GET", "README.md", false);
rawFile.onreadystatechange = function () {
if(rawFile.readyState === 4) {
if(rawFile.status === 200 || rawFile.status == 0) {
showdown.setOption('ghCompatibleHeaderId', 'true');
var converter = new showdown.Converter();
document.getElementById('body').innerHTML = converter.makeHtml(rawFile.responseText);
}
}
}
rawFile.send(null);
</script>
</body>
</html>