Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Commit 7e2916e

Browse files
authored
Add files via upload
1 parent 6a6cded commit 7e2916e

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

prompt.html

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
layout: default
3-
title: prompt
4-
description: "「LangBot专线」"
3+
title: 文件下载中心
4+
description: "「侵权专线」"
55
header-img: "img/bg-download.jpg"
66
header-mask: 0.3
77
---
88

99
<div class="container">
1010
<div class="row">
1111
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
12-
<h1 class="my-4">开源prompt文件下载中心</h1>
12+
<h1 class="my-4">软件资源库</h1>
1313

1414
<div class="search-box">
1515
<input type="text" id="searchInput" class="form-control"
@@ -25,6 +25,7 @@ <h1 class="my-4">开源prompt文件下载中心</h1>
2525
<th>版本</th>
2626
<th>作者</th>
2727
<th>发布时间</th>
28+
<th>文件类型</th>
2829
<th>操作</th>
2930
</tr>
3031
</thead>
@@ -61,9 +62,10 @@ <h1 class="my-4">开源prompt文件下载中心</h1>
6162
<td>${file.vin}</td>
6263
<td>${file.wrt}</td>
6364
<td>${file.time}</td>
65+
<td>${file.format}</td>
6466
<td>
65-
<a href="${file.url}" class="btn btn-primary btn-sm btn-download">
66-
<i class="fa fa-download"></i>
67+
<a href="${file.url}" class="btn btn-primary btn-sm btn-download" download>
68+
<i class="fa fa-download"></i>
6769
<span>下载</span>
6870
</a>
6971
</td>
@@ -78,7 +80,8 @@ <h1 class="my-4">开源prompt文件下载中心</h1>
7880
searchInput.addEventListener('input', function(e) {
7981
const keyword = e.target.value.toLowerCase();
8082
const filtered = files.filter(file =>
81-
file.ds.toLowerCase().includes(keyword)
83+
file.ds.toLowerCase().includes(keyword) ||
84+
file.name.toLowerCase().includes(keyword)
8285
);
8386

8487
renderTable(filtered);
@@ -90,7 +93,7 @@ <h1 class="my-4">开源prompt文件下载中心</h1>
9093
function highlightKeyword(keyword) {
9194
if (!keyword) return;
9295

93-
const cells = document.querySelectorAll('td:nth-child(2)');
96+
const cells = document.querySelectorAll('td:nth-child(1), td:nth-child(2)');
9497
cells.forEach(cell => {
9598
const text = cell.innerText;
9699
const regex = new RegExp(`(${keyword})`, 'gi');
@@ -131,4 +134,4 @@ <h1 class="my-4">开源prompt文件下载中心</h1>
131134
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
132135
color: #fff; /* 悬浮保持白色 */
133136
}
134-
</style>
137+
</style>

0 commit comments

Comments
 (0)