+ 主页添加关于和变更日志
This commit is contained in:
25
index.html
25
index.html
@@ -6,11 +6,28 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||||
<link rel="stylesheet" href="./github.css">
|
<link rel="stylesheet" href="./github.css">
|
||||||
<link rel="stylesheet" href="./theme.css">
|
<link rel="stylesheet" href="./theme.css">
|
||||||
|
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
||||||
|
<script>
|
||||||
|
let url = "https://api.github.com/repos/hbk01/hbk01.github.io/commits?per_page=5";
|
||||||
|
$(document).ready(() => {
|
||||||
|
$.getJSON(url, data => {
|
||||||
|
data.forEach(element => {
|
||||||
|
let message = element.commit.message.replace("\n", "<br>");
|
||||||
|
if (message.startsWith("+")) {
|
||||||
|
message = message.replace("+", "");
|
||||||
|
}
|
||||||
|
let time = element.commit.committer.date.slice(0, 10);
|
||||||
|
$(".changelog").append("<li>" + time + ": " + message + "</li>");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
<title>QC TOOL</title>
|
<title>QC TOOL</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="list">
|
<div class="list">
|
||||||
|
<h4>功能列表</h4>
|
||||||
<div class="item" onclick="window.location.href='./titer.html'">
|
<div class="item" onclick="window.location.href='./titer.html'">
|
||||||
标水
|
标水
|
||||||
</div>
|
</div>
|
||||||
@@ -27,6 +44,14 @@
|
|||||||
设备信息
|
设备信息
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="about">
|
||||||
|
<h4>关于</h4>
|
||||||
|
<p>本项目开源于
|
||||||
|
<a href="https://github.com/hbk01/hbk01.github.io">Github</a> ,并由 <a href="https://docs.github.com/en/pages">Github Pages</a> 提供页面构建及部署服务。</p>
|
||||||
|
</div>
|
||||||
|
<div class="changelog">
|
||||||
|
<h4>变更日志</h4>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user