-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
60 lines (56 loc) · 2.09 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
<!--
Identity by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Dreamy.NSV</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<noscript>
<link rel="stylesheet" href="assets/css/noscript.css" />
</noscript>
</head>
<body class="is-preload">
<div id="wrapper">
<section id="main">
<header>
<span class="avatar"><img width="122px" src="https://q1.qlogo.cn/g?b=qq&nk=982231672&s=0" alt="" /></span>
<h1>Dreamy.NSV</h1>
<p>一条有着远大理想的咸鱼</p>
</header>
<footer>
<ul class="icons">
<li><a href="https://github.com/nsv2051" class="icon brands fa-github">GitHub</a></li>
<li><a href="https://nnn.cx" class="icon brands fa-blogger-b">Blog</a></li>
<li><a href="https://t.me/nsv_2051" class="icon brands fa-telegram-plane">Telegram</a></li>
</ul>
</footer>
</section>
<div style="max-width:70%;margin-top:15px;">
<span class="hitokoto-content" style="color: white;cursor: default;"></span>
<span class="hitokoto-author" style="cursor: default;float: right; color: white"></span>
</div>
<footer id="footer">
<ul class="copyright">
<li>Copyright © 2025 Dreamy.NSV</li>
<li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
</ul>
</footer>
</div>
<script>
if ('addEventListener' in window) {
window.addEventListener('load', function () { document.body.className = document.body.className.replace(/\bis-preload\b/, ''); });
document.body.className += (navigator.userAgent.match(/(MSIE|rv:11\.0)/) ? ' is-ie' : '');
}
(async () => {
let api = await (await fetch("https://v1.hitokoto.cn/?c=a&encode=json")).json();
document.querySelector(".hitokoto-content").textContent = "「 " + api.hitokoto + " 」";
document.querySelector(".hitokoto-author").textContent = "— " + api.from;
})();
</script>
</body>
</html>