-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
192 lines (185 loc) · 8.13 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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>原神好句API</title>
<meta name="KEYWords" contect="原神好句API">
<meta name="Author" contect="ymh0000123">
<meta name="description" content="免费开源的原神好句API">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" type="image/ico" href="https://xiaofeishu-picture.pages.dev/ico.png">
<!-- 引入 layui.css -->
<link href="https://unpkg.com/[email protected]/dist/css/layui.css" rel="stylesheet">
<!-- 引入 layui.js -->
<script src="https://unpkg.com/[email protected]/dist/layui.js"></script>
<!-- 引入Bootstrap的CSS库 -->
<link href="https://unpkg.com/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/font/bootstrap-icons.css">
<!-- 引入Bootstrap的JavaScript库 -->
<script src="https://unpkg.com/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:image" content="https://dochub-picture.pages.dev/list/yshj.webp">
<style>
.center {
text-align: center;
margin-top: 10px;
}
.div {
margin-top: 20px;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-sm navbar-dark bg-dark sticky-top">
<div class="container">
<a class="navbar-brand" href="https://ymh0000123.github.io/Genshin-Good-words/"><img src="https://xiaofeishu-picture.pages.dev/ico.png" alt="Bootstrap" width="30" height="30">小废鼠的原神好句API</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="https://ymh0000123.github.io/">主页</a>
</li>
<li class="nav-item ml-auto">
<a class="nav-link" href="https://ymh0000123.pages.dev/">关于小废鼠</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://xiaofeishu-boke.netlify.app/">博客</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="center">
<h1>原神好句API</h1>
<h2><span class="layui-badge layui-bg-blue">免费</span> <span class="layui-badge layui-bg-blue">开源</span></h2>
</div>
<div class="container py-4">
<div class="card">
<div class="card-body">
<p id="ys"><span class="placeholder" style="width: 25%;"></span></p>
<button type="button" class="layui-btn layui-btn-normal layui-btn-radius"
onclick="location.reload()">换一句</button>
</div>
</div>
</div>
<div class="container py-4">
<div class="row align-items-md-stretch">
<div class="col-md-6">
<div class="h-100 p-5 text-bg-dark rounded-3">
<h2>API免费开源</h2>
<p>全部来自游戏《原神》</p>
<a href="https://github.com/ymh0000123/Genshin-Good-words" class="btn btn-outline-light" type="button">查看GitHub仓库</a>
</div>
</div>
<div class="col-md-6">
<div class="card text-bg-light mb-3">
<div class="card-header"><h2>其他分支&Rebuild</h2></div>
<div class="card-body">
<h5 class="card-title"><p>这些是没用的小废鼠认可的版本</p></h5>
<p class="card-text">以下为列表</p>
</div>
<ul class="list-group list-group-flush">
<a class="list-group-item" href="https://blog.linyun.link/RandomGenshin/">wuyuhanzijin/RandomGenshin</a>
<a class="list-group-item"href="https://ymh0000123.github.io/404"><span class="placeholder" style="width: 80%;"></span></a>
<a class="list-group-item"href="https://ymh0000123.github.io/404"><span class="placeholder" style="width: 80%;"></span></a>
</ul>
</div>
</div>
</div>
</div>
<div class="container py-4">
<fieldset class="layui-elem-field">
<legend>
<h2>如何使用这个api</h2>
</legend>
<div class="layui-field-box">
<h4><span class="layui-badge layui-bg-blue">国内外推荐使用</span>通过GIthub Pages引入</h4>
<hr>
<pre class="layui-code code-demo" lay-options="{theme: 'dark'}">
<!--放到你想放的位置-->
<span id="ys"></span>
<!--放到body底部-->
<script src="https://ymh0000123.github.io/Genshin-Good-words/script.js"></script>
</pre>
<h4><span class="layui-badge layui-bg-blue">国内推荐使用</span>通过github.moeyy.xyz引入</h4>
<hr>
<pre class="layui-code code-demo" lay-options="{theme: 'dark'}">
<!--放到你想放的位置-->
<span id="ys"></span>
<!--放到body底部-->
<script src="https://github.moeyy.xyz/https://raw.githubusercontent.com/ymh0000123/Genshin-Good-words/main/script_moeyy.js"></script>
</pre>
<h4><span class="layui-badge layui-bg-blue">国内外推荐使用</span>通过jsdeliv引入</h4>
<hr>
<pre class="layui-code code-demo" lay-options="{theme: 'dark'}">
<!--放到你想放的位置-->
<span id="ys"></span>
<!--放到body底部-->
<script src="https://cdn.jsdelivr.net/gh/ymh0000123/Genshin-Good-words@master/script_jsdeliv.js"></script>
</pre>
<h4><span class="layui-badge layui-bg-blue">历史</span>更新日志</h4>
<hr>
<ul>
<div class="layui-timeline">
<div class="layui-timeline-item">
<i class="layui-icon layui-anim layui-anim-rotate layui-anim-loop layui-timeline-axis"></i>
<div class="layui-timeline-content layui-text">
<div class="layui-timeline-title">API的故事还在发生</div>
</div>
<div class="layui-timeline-item">
<i class="layui-icon layui-timeline-axis layui-icon-fire"></i>
<div class="layui-timeline-content layui-text">
<div class="layui-timeline-title">2023-11-24 , 我们修改了仓库名称改成了Genshin-Good-words。
</div>
</div>
</div>
<div class="layui-timeline-item">
<i class="layui-icon layui-timeline-axis layui-icon-fire"></i>
<div class="layui-timeline-content layui-text">
<div class="layui-timeline-title">2023-11-11 , 我们对API进行重构,方便我们维护API和方便用户使用更好的镜像,并且这次更新对已经安装的网站没有影响。
</div>
</div>
</div>
<div class="layui-timeline-item">
<i class="layui-icon layui-timeline-axis layui-icon-circle"></i>
<div class="layui-timeline-content layui-text">
<div class="layui-timeline-title">2023-8-11 , API首次亮相,没有太多人关注。</div>
</div>
</div>
</div>
</div>
</div>
</fieldset>
</div>
<div class="container">
<footer class="d-flex flex-wrap justify-content-between align-items-center py-3 my-4 border-top">
<div class="col-md-4 d-flex align-items-center">
<a href="/" class="mb-3 me-2 mb-md-0 text-muted text-decoration-none lh-1">
<svg class="bi" width="30" height="24"><use xlink:href="#bootstrap"/></svg>
</a>
<span class="mb-3 mb-md-0 text-muted"><span id="year"></span></span>
</div>
<ul class="nav col-md-4 justify-content-end list-unstyled d-flex">
</ul>
</footer>
</div>
<script src="script.js"></script>
<script>
layui.use(function () {
// code
layui.code({
elem: '.code-demo'
});
})
</script>
<script>
// 使用JavaScript获取当前年份
const currentYear = new Date().getFullYear();
// 将年份显示在页面上
document.getElementById('year').innerText = '2023—' + currentYear ;
</script>
</body>
</html>