This repository has been archived by the owner on Jun 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
68 lines (68 loc) · 2.49 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>oier-kecheng</title>
<link rel="stylesheet" type="text/css" href="/css/main.css">
<link rel="stylesheet" type="text/css" href="/font-awesome/css/font-awesome.min.css">
</head>
<body>
<nav>
<img class="logo" src="/favicon.ico"></img>
<li>
<a href="/">
<i class="fa fa-home" aria-hidden="true"></i>
<p>主页</p>
</a>
</li>
<li>
<a href="/post">
<i class="fa fa-file" aria-hidden="true"></i>
<p>文章</p>
</a>
</li>
<li>
<a href="https://github.com/qz-cqy/oier-kecheng">
<i class="fa fa-github" aria-hidden="true"></i>
<p>仓库</p>
</a>
</li>
<li>
<a href="https://github.com/qz-cqy/oier-kecheng/blob/master/CONTRIBUTION.md">
<i class="fa fa-pencil-square-o" aria-hidden="true"></i>
<p>贡献</p>
</a>
</li>
</nav>
<div class="bd">
<h1 class="tt">线索列表</h1>
<ol id="list1"></ol>
<script>
window.onload = function() {
var url = "data.json";
var request = new XMLHttpRequest();
request.open("get", url);
request.send(null);
request.onload = function() {
if(request.status == 200) {
var json = JSON.parse(request.responseText);
//console.log(json);
var pos = document.getElementById("list1");
json.links.map(links => {
var liPos = document.createElement("li");
liPos.innerHTML = `<a href="${links.href}">${links.title} - From: ${links.from}</a>`;
pos.append(liPos);
});
}
}
}
</script>
<hr>
<p>本站访问量:</p>
<a href="https://flagcounter.me/details/b82">
<img src="https://flagcounter.me/b82/" alt="Flag Counter">
</a>
</div>
<!-- -->
</body>
</html>