-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
41 lines (38 loc) · 1.31 KB
/
index.html
File metadata and controls
41 lines (38 loc) · 1.31 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
<html>
<head>
<link rel="stylesheet" href="static/enginetribe.min.css">
<script src="static/marked.min.js"></script>
<link rel="icon" type="image/x-icon" href="favicon.ico">
<script>
var language = (navigator.language || navigator.browserLanguage).toLowerCase()
if (language.indexOf('zh') != -1) {
document.title = '引擎部落'
}
else if (language.indexOf('en') != -1) {
document.title = 'Engine Tribe'
}
else {
document.title = 'Engine Tribe'
}
</script>
</head>
<body>
<div id="markdown"><p>Loading...</p></div>
<script>
var xhr = new XMLHttpRequest
xhr.open('GET','https://raw.githubusercontent.com/EngineTribe/EngineTribe/main/README.md')
xhr.send()
xhr.onreadystatechange = () => {
let mdText = xhr.responseText
mdText = mdText.replace(
"https://img.shields.io/badge/QQ%20Group-723483890-faad01?logo=tencentqq",
"/static/qq_badge.svg"
).replace(
"https://img.shields.io/badge/Telegram-Channel-28a8ea?logo=telegram",
"/static/telegram_badge.svg"
)
document.getElementById("markdown").innerHTML=marked.parse(mdText)
}
</script>
</body>
</html>