-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (40 loc) · 1.02 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<html>
<head>
<title>Estnltk</title>
<link rel="stylesheet" type="text/css" href="static/styles.css">
<style>
body {
margin-top:4em;
}
p{
}
img {
display:none
}
</style>
</head>
<!-- README.md inserted here -->
<body>
<div class="row clear pad-top-5 pad-bottom-5">
<div id="mycontent" class="col-8 center main">
</div>
</div>
</body>
<script src="static/marked.js"></script>
<script>
var client = new XMLHttpRequest();
client.open('GET', 'README.md');
client.onreadystatechange = function() {
if (document.readyState === 'complete') {
document.getElementById('mycontent').innerHTML = marked(client.responseText)
}else(
document.onreadystatechange = function(){
if (document.readyState === 'complete') {
document.getElementById('mycontent').innerHTML = marked(client.responseText)
}
}
)
}
client.send()
</script>
</html>