forked from DanKottke/midas
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
67 lines (62 loc) · 1.34 KB
/
index.html
File metadata and controls
67 lines (62 loc) · 1.34 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
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Midas</title>
<link href='static/highlight.min.css' rel='stylesheet'>
<style>
html, body {
background: white;
font-family: sans-serif;
}
.content {
margin: 40px auto;
padding: 0 2em;
max-width: 800px;
margin-bottom: 50px;
line-height: 1.6em;
}
.content img {
max-width: 100%;
}
img[alt="Build Status"],
img[alt="Dependency Status"] {
display: none;
}
</style>
</head>
<body>
<div id='content' class='content'></div>
<script src='static/corslite.js'></script>
<script src='static/highlight.min.js'></script>
<script src='static/marked.js'></script>
<script>
var content = document.getElementById('content');
marked.setOptions({
gfm: true,
tables: true,
breaks: false,
pedantic: false,
sanitize: false,
smartLists: true,
langPrefix: 'language-',
highlight: function (code, lang) {
if (!lang) return code;
// Aliases
if (lang === 'js') lang = 'javascript';
try {
return hljs.highlight(lang, code).value;
} catch(e) {
return hljs.highlightAuto(code).value;
}
}
});
function load() {
corslite('README.md', function(err, resp) {
if (resp && resp.responseText) content.innerHTML = marked(resp.responseText);
});
}
load();
</script>
</body>
</html>