chatgpt-plugin/resources/help/help.html
2023-04-01 22:42:11 +08:00

167 lines
No EOL
3.7 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>bangzhu</title>
</head>
<body>
<div class="container">
<div class="title">
ChatGPT-Plugin v2.4.9 帮助
</div>
<div class="chart" id="chart">
<div class="chart-category">
聊天
</div>
<div class="chart-right" id="chart-right">
<div class="block">
<div class="icon">
<img src="../img/icon/chat.png">
</div>
<div class="block-title">
与机器人聊天
</div>
<div class="block-content">
@机器人进行聊天,或者使用前缀#chat
</div>
</div>
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
</div>
</div>
</div>
</body>
</html>
<style>
.container {
width: 830px;
background: #6B84FF;
border-radius: 5px;
background: url("../img/icon/chatgpt.png");
min-height: 1000px;
background-repeat: no-repeat;
background-size: 1500px 1500px;
background-position: -100px 0;
}
.title {
padding-top: 20px;
font-size: 22px;
font-weight: bolder;
font-family: "Josefin Sans", sans-serif;
color: #e7fff4;
text-align: center;
background-image: -webkit-linear-gradient(left, #ffffff, #ecfffd, #d9ffec);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 30px;
}
.chart {
display: flex;
border-radius: 5px;
width: 675px;
margin-left: 75px;
background: inherit;
min-height: 800px;
overflow: hidden;
position: relative;
box-shadow: 0 0 15px 15px #d8e1ff;
/*filter: blur(10px);*/
}
.chart-category {
width: 60px;
font-size: 20px;
color: #ffffff;
text-align: center;
height: 317px;
font-weight: bold;
border-bottom: #b7c7ff solid 2px;
/*border-right: #b7c7ff solid 2px;*/
padding-top: 290px;
/*box-shadow: 0 0 3px 3px #d8e1ff;*/
}
.chart-right {
width: 620px;
position: absolute;
left: 60px;
}
.chart:before {
border-radius: 5px;
content: '';
width: 6360px;
height: 100%;
background: inherit;
position: absolute;
left: 75px;
/*right: 0;*/
top: 100px;
/*bottom: 0;*/
/*opacity: 0.9;*/
/*box-shadow: inset 0 0 0 200px rgba(255,255,255,0.3);*/
filter: blur(10px);
}
.block {
width: 151px;
height: 200px;
border: #b7c7ff solid 2px;
position: absolute;
/*box-shadow: 0 0 3px 3px #d8e1ff;*/
/*border-radius: 2px;*/
}
.icon {
width: 50px;
text-align: center;
margin: auto;
padding-top: 20px;
}
.icon img {
width: 50px;
}
.block-title {
font-size: 18px;
text-align: center;
color: #ffffff;
margin-top: 10px;
font-weight: bold;
}
.block-content {
font-weight: bold;
color: #ffffff;
padding-top: 10px;
width: 90%;
margin: auto;
font-size: 14px;
text-align: center;
}
</style>
<script>
const chart = document.getElementById('chart-right');
const block = chart.querySelectorAll('.block');
const chartWidth = chart.offsetWidth;
const chartHeight = chart.offsetHeight;
const blockWidth = block[0].offsetWidth;
const blockHeight = block[0].offsetHeight;
const blocksPerRow = Math.floor(chartWidth / blockWidth);
const rows = Math.ceil(block.length / blocksPerRow);
for (let i = 0; i < block.length; i++) {
const row = Math.floor(i / blocksPerRow);
const col = i % blocksPerRow;
block[i].style.top = (row * blockHeight) + 'px';
block[i].style.left = (col * blockWidth) + 'px';
}
</script>