-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
70 lines (52 loc) · 2.07 KB
/
index.html
File metadata and controls
70 lines (52 loc) · 2.07 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
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html>
<head>
<title>Hackage Stats</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/markdown-it/8.4.0/markdown-it.min.js"></script>
<script data-main="" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.5/require.min.js">
</script>
<script type="text/javascript">
requirejs.config({
paths: {
markdownit: "https://cdnjs.cloudflare.com/ajax/libs/markdown-it/8.4.0/markdown-it.min.js"
}
});
console.log('ok')
// full options list (defaults)
var md = requirejs(['markdownit'])({
html: true, // Enable HTML tags in source
xhtmlOut: true, // Use '/' to close single tags (<br />).
// This is only for full CommonMark compatibility.
breaks: false, // Convert '\n' in paragraphs into <br>
langPrefix: 'language-', // CSS language prefix for fenced blocks. Can be
// useful for external highlighters.
linkify: false, // Autoconvert URL-like text to links
// Enable some language-neutral replacement + quotes beautification
typographer: false,
// Double + single quotes replacement pairs, when typographer enabled,
// and smartquotes on. Could be either a String or an Array.
//
// For example, you can use '«»„“' for Russian, '„“‚‘' for German,
// and ['«\xA0', '\xA0»', '‹\xA0', '\xA0›'] for French (including nbsp).
quotes: '“”‘’',
});
console.log('ok0');
var client = new XMLHttpRequest();
client.open('GET', '/README.md');
client.onreadystatechange = function() {
var result = md.render(client.responseText);
document.getElementById("readme").innerText = result;
document.getElementById("readme").textContent = result;
}
client.send();
</script>
</head>
<body bgcolor=white>
<p>This is the home page for Hackage-stats.</p>
<ul>
<li>To a <a href="docs/index.html">Docs page</a>.
<li>Graph in a <a href="docs/mathematica_notebook.html">Mathematica Notebook</a>.
</ul>
<div id=readme></div>
</body>
</html>