Skip to content

Commit

Permalink
修复
Browse files Browse the repository at this point in the history
  • Loading branch information
ymh0000123 committed Nov 11, 2023
1 parent 326e812 commit 4381245
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
12 changes: 3 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
<!--
* @Date: 2023-11-11 18:37:07
* @LastEditors: Please set LastEditors
* @LastEditTime: 2023-11-11 20:20:29
* @LastEditTime: 2023-11-11 20:45:31
* @FilePath: \undefinedd:\hc\Genshin-Impact-Good-words-and-sentences\index.html
-->
<!--
* @Date: 2023-11-11 18:37:07
* @LastEditors: Please set LastEditors
* @LastEditTime: 2023-11-11 19:57:05
* @FilePath: \Genshin-Impact-Good-words-and-sentences\index.html
-->
<!DOCTYPE html>
<html lang="zh-CN">

Expand Down Expand Up @@ -47,7 +41,7 @@ <h2><span class="layui-badge layui-bg-blue">免费</span> <span class="layui-bad
<div class="container py-4">
<div class="card">
<div class="card-body">
<p id="yshj"></p>
<p id="ys"></p>
<button type="button" class="layui-btn layui-btn-normal layui-btn-radius" onclick="location.reload()">换一句</button>
</div>
</div>
Expand Down Expand Up @@ -84,7 +78,7 @@ <h4><span class="layui-badge layui-bg-blue">历史</span>更新日志</h4>
<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 class="layui-timeline-title">2023-11-11 , 我们对API进行重构,方便我们维护API和方便用户使用更好的镜像,并且这次更新对已经安装的网站没有影响</div>
</div>
</div>
<div class="layui-timeline-item">
Expand Down
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ fetch('https://github.moeyy.xyz/https://raw.githubusercontent.com/ymh0000123/Gen
const lines = data.split('\n');
// 随机选择一行并显示在页面上
const randomLine = lines[Math.floor(Math.random() * lines.length)];
document.getElementById('yshj').innerText = randomLine;
document.getElementById('ys').innerText = randomLine;
})
.catch(error => {
console.error('Error fetching yshj:', error);
console.error('Error fetching ys:', error);
});
2 changes: 1 addition & 1 deletion script_jsdeliv.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ fetch('https://cdn.jsdelivr.net/gh/ymh0000123/Genshin-Impact-Good-words-and-sent
const lines = data.split('\n');
// 随机选择一行并显示在页面上
const randomLine = lines[Math.floor(Math.random() * lines.length)];
document.getElementById('yshj').innerText = randomLine;
document.getElementById('ys').innerText = randomLine;
})
.catch(error => {
console.error('Error fetching yshj:', error);
Expand Down

0 comments on commit 4381245

Please sign in to comment.