Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
68 lines (65 loc) · 2.72 KB
/
Copy pathindex.html
File metadata and controls
68 lines (65 loc) · 2.72 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 lang="zh-Hans" class="dark">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ヾ(=・ω・=)o< - 技术分享类</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" type="text/css" media="screen" href="assets/css/main.css">
<link crossorigin="anonymous" integrity="sha384-Mmxa0mLqhmOeaE8vgOSbKacftZcsNYDjQzuCOm6D02luYSzBG8vpaOykv9lFQ51Y"
href="https://lib.baomitu.com/font-awesome/5.8.0/css/all.min.css" rel="stylesheet">
</head>
<body>
<div class="profile">
<header>
<img class="avatar" src="assets/image/avatar.png" alt="avatar">
</header>
<section class="quote">
<span class="content">加载中...</span>
<span class="from"></span>
</section>
<section class="block links">
<a href="https://github.com/Cyrus97" target="_blank">
<span><i class="fab fa-github" aria-hidden="true"></i></span>
<span>Github</span>
</a>
<a href="https://blog.liuxingran.cn" target="_blank">
<span><i class="far fa-sticky-note"></i></span>
<span>Blog</span>
</a>
<a href="https://weibo.com/u/5653871155" target="_blank">
<span><i class="fab fa-weibo" aria-hidden="true"></i></span>
<span>WeiBo</span>
</a>
<a href="https://twitter.com/liuxingran97" target="_blank">
<span><i class="fab fa-twitter"></i></span>
<span>Twitter</span>
</a>
</section>
</div>
<footer>
<div>ヾ(=・ω・=)o< © <span id="footer-year"></span> Made With ❤ </div>
<div>
<a href="https://beian.miit.gov.cn/" target="_blank">赣ICP备19003259号-1</a>
<span> | </span>
<span>本网站由</span>
<a href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral" target="_blank"><img
src="assets/image/upyun.png" style="height: 28px; margin-bottom: -8px;" /></a>
<span>提供CDN加速</span>
</div>
</footer>
</body>
<script>
fetch('https://v1.hitokoto.cn')
.then(res => res.json())
.then(data => {
document.getElementsByClassName('content')[0].innerText = data.hitokoto
document.getElementsByClassName('from')[0].innerText = `From - ${data.from}`
})
.catch(error => {
console.log(error)
})
document.getElementById("footer-year").innerText = `2019-${new Date().getFullYear()}`
</script>
</html>