-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathapp.html
111 lines (99 loc) · 2.84 KB
/
app.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="renderer" content="webkit" />
<meta http-equiv="x-dns-prefetch-control" content="on" />
<meta name="format-detection" content="telephone=no,email=no" />
<meta name="google" value="notranslate" />
<meta http-equiv="Cache-Control" content="no-cache,no-store,must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<title>Monero Nodes</title>
<style>
*, ::after, ::before {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body, html {
min-width: 100vw;
min-height: 100vh;
padding: 0;
margin: 0;
}
.content {
min-height: 100vh;
word-break : normal;
word-wrap: break-word;
overflow: hidden;
padding: 6vw;
}
.loading {
min-height: 88vh;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
</style>
</head>
<body>
<div class="content" id="content">
<div class="loading"><span>Loading...</span></div>
</div>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script>
function createXMLHttpObject() {
var xmlhttp = false;
var XMLHttpFactories = [
function() {
return new XMLHttpRequest();
},
function() {
return new window.ActiveXObject('Msxml2.XMLHTTP');
},
function() {
return new window.ActiveXObject('Msxml3.XMLHTTP');
},
function() {
return new window.ActiveXObject('Microsoft.XMLHTTP');
}
];
for (var i = 0, len = XMLHttpFactories.length; i < len; i++) {
try {
xmlhttp = XMLHttpFactories[i]();
} catch (e) {
continue;
}
break;
}
return xmlhttp;
}
function reqMarkdown(url, cb) {
var xhr = createXMLHttpObject();
if (!xhr) {
return;
}
xhr.open('GET', url, true);
xhr.responseType = 'text';
xhr.onreadystatechange = function() {
if ((xhr.readyState === 4) && (xhr.status === 200)) {
return cb && cb(xhr.responseText);
}
};
xhr.send(null);
}
var timestamp = (new Date()).getTime();
reqMarkdown('./README.md?_t=' + timestamp, function(readMe, err) {
document.getElementById('content').innerHTML = marked(readMe);
});
</script>
</body>
</html>