2021-09-27 22:53:42 +08:00
|
|
|
<!DOCTYPE html>
|
2022-10-15 23:32:33 +08:00
|
|
|
<html lang="zh-cmn-Hans">
|
2021-10-22 20:00:32 +08:00
|
|
|
|
2021-09-27 22:53:42 +08:00
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
2022-07-16 00:43:41 +08:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
2022-07-17 23:08:46 +08:00
|
|
|
<link rel="stylesheet" href="./github.css">
|
|
|
|
|
<link rel="stylesheet" href="./theme.css">
|
2022-07-21 13:21:06 +08:00
|
|
|
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
|
|
|
|
<script>
|
2022-10-15 23:32:33 +08:00
|
|
|
let url = "https://api.github.com/repos/hbk01/hbk01.github.io/commits?per_page=10";
|
2022-08-08 01:19:45 +08:00
|
|
|
|
|
|
|
|
let functions = [
|
|
|
|
|
{
|
|
|
|
|
"name": "标水",
|
|
|
|
|
"location": "./titer.html"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "干燥失重",
|
|
|
|
|
"location": "./lod.html"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "炽灼残渣",
|
|
|
|
|
"location": "./roi.html"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "进样序列",
|
|
|
|
|
"location": "./injection-sequence.html"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "设备信息",
|
|
|
|
|
"location": "./equipment.html"
|
2022-10-15 23:32:33 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "L414-5KR 相关物质计算",
|
|
|
|
|
"location": "./L414-5KR-impurities.html"
|
2022-08-08 01:19:45 +08:00
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
2022-07-21 13:21:06 +08:00
|
|
|
$(document).ready(() => {
|
2022-08-08 01:19:45 +08:00
|
|
|
|
2022-10-15 23:32:33 +08:00
|
|
|
var getRandomColor = () => '#' + (Math.random() * 0xffffff << 0).toString(16)
|
|
|
|
|
|
2022-08-08 01:19:45 +08:00
|
|
|
// 加载功能列表
|
|
|
|
|
functions.forEach(value => {
|
|
|
|
|
let div = `<div class="item" onclick="window.location.href='${value.location}'">${value.name}</div>`;
|
|
|
|
|
$(".list").append(div);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// 加载最近的 commit 记录
|
2022-07-21 13:21:06 +08:00
|
|
|
$.getJSON(url, data => {
|
2022-10-15 23:32:33 +08:00
|
|
|
let color1 = getRandomColor()
|
|
|
|
|
let color2 = getRandomColor()
|
|
|
|
|
let changeColor = false
|
2022-07-21 13:21:06 +08:00
|
|
|
data.forEach(element => {
|
2022-10-15 23:41:08 +08:00
|
|
|
let message = element.commit.message.replaceAll("\n", "<br>");
|
2022-07-21 13:21:06 +08:00
|
|
|
if (message.startsWith("+")) {
|
2022-10-15 23:32:33 +08:00
|
|
|
message = message.replace("+", "<br> •");
|
2022-07-21 13:21:06 +08:00
|
|
|
}
|
2022-10-15 23:41:08 +08:00
|
|
|
message = message.replaceAll("+", " •")
|
2022-07-21 13:21:06 +08:00
|
|
|
let time = element.commit.committer.date.slice(0, 10);
|
2022-10-15 23:32:33 +08:00
|
|
|
changeColor = !changeColor
|
|
|
|
|
let msg = `<span style="color: ${changeColor ? color1 : color2}">${time}: ${message}</span><br>`
|
|
|
|
|
$(".changelog").append(msg);
|
2022-07-21 13:21:06 +08:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
2021-09-27 22:53:42 +08:00
|
|
|
<title>QC TOOL</title>
|
|
|
|
|
</head>
|
2021-10-22 20:00:32 +08:00
|
|
|
|
2021-09-27 22:53:42 +08:00
|
|
|
<body>
|
2022-08-08 01:19:45 +08:00
|
|
|
<h4>功能列表</h4>
|
|
|
|
|
<div class="list"></div>
|
|
|
|
|
<h4>关于</h4>
|
2022-07-21 13:21:06 +08:00
|
|
|
<div class="about">
|
2022-10-15 23:32:33 +08:00
|
|
|
<p>建议使用系统自带浏览器,以完善使用体验!</p>
|
2022-08-08 01:19:45 +08:00
|
|
|
本项目开源于
|
|
|
|
|
<a href="https://github.com/hbk01/hbk01.github.io">Github</a> ,并由
|
|
|
|
|
<a href="https://docs.github.com/en/pages">Github Pages</a> 提供页面构建及部署服务。
|
2022-07-21 13:21:06 +08:00
|
|
|
</div>
|
2022-08-08 01:19:45 +08:00
|
|
|
<h4>变更日志</h4>
|
|
|
|
|
<div class="changelog"></div>
|
2021-09-27 22:53:42 +08:00
|
|
|
</body>
|
2021-10-22 20:00:32 +08:00
|
|
|
|
2021-09-27 22:53:42 +08:00
|
|
|
</html>
|