Skip to content

Commit adcd99d

Browse files
committed
增加验证按钮的悬停提示
1 parent 679a7a6 commit adcd99d

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

index.html

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,21 @@
249249
.verify-btn.yellow:hover {
250250
background-color: #e0a800;
251251
}
252+
.verify-btn::after {
253+
content: attr(data-tooltip); /* 获取 data-tooltip 属性的值作为提示文本 */
254+
visibility: hidden;
255+
opacity: 0;
256+
position: absolute;
257+
background-color: #333;
258+
color: #fff;
259+
padding: 5px 10px;
260+
border-radius: 3px;
261+
transition: opacity 0.3s;
262+
}
263+
.verify-btn:hover::after {
264+
visibility: visible;
265+
opacity: 1;
266+
}
252267

253268
.model-filter-container {
254269
display: flex;
@@ -830,13 +845,13 @@ <h3>(适配 oneapi/newapi 等中转格式)</h3>
830845
if (r.model.startsWith('gpt-') || r.model.startsWith('claude-')) {
831846
let officialButtonClass = results.awaitOfficialVerification.some(item => item.model === r.model) ? "green" : "yellow";
832847
verifyButtons =
833-
'<button class="verify-btn blue" onclick="verifyTemperature(\'' +
848+
'<button class="verify-btn blue" data-tooltip="低温度参数下预测序列下一个值,将发起4次请求" onclick="verifyTemperature(\'' +
834849
r.model +
835850
"')\">温度验证</button>" +
836851
(r.model.startsWith('gpt-') ?
837852
'<button class="verify-btn ' +
838853
officialButtonClass +
839-
'" onclick="verifyOfficial(\'' +
854+
'" data-tooltip="相同种子参数下校验回复相似性和系统指纹,将发起4次请求" onclick="verifyOfficial(\'' +
840855
r.model +
841856
"')\">官转验证</button>" : '');
842857
}

0 commit comments

Comments
 (0)