一分钟搭建影视站,支持Docker等部署方式
微调UI,恢复 sync 文件 (add sync.yml for repo sync automatically (https://github.com/bestZwei/LibreTV/pull/61) 增加同步工作流文件) (#69)
Zweieab0767c7efe
diff --git a/index.html b/index.htmlindex 4514f3e..e0d7738 100644--- a/index.html+++ b/index.html@@ -89,7 +89,7 @@<div class="toggle-dot absolute w-5 h-5 bg-white rounded-full top-0.5 left-0.5 transition-transform duration-300 ease-in-out"></div></div></div>- <p class="text-xs text-gray-500 mt-1">过滤分类包含"伦理片"、"色情片"等成人内容</p>+ <p class="text-xs text-gray-500 mt-1">过滤"伦理片"等成人内容</p></div><!-- 添加广告过滤开关 -->@@ -148,12 +148,7 @@<div id="recentSearches" class="mt-4 flex flex-wrap gap-2" aria-label="最近搜索记录"><!-- 这里会动态插入最近的搜索记录 --></div>- <!-- 添加清除历史按钮 -->- <div id="clearHistoryBtn" class="mt-2 text-center">- <button onclick="clearSearchHistory()" class="text-gray-500 text-xs hover:text-white transition-colors" aria-label="清除搜索历史">- 清除搜索历史- </button>- </div>+ <!-- 清除历史按钮已移至搜索历史标题行 --></div></div>diff --git a/js/app.js b/js/app.jsindex c65a118..8d122b2 100644--- a/js/app.js+++ b/js/app.js@@ -347,7 +347,7 @@ async function search() {const yellowFilterEnabled = localStorage.getItem('yellowFilterEnabled') === 'true';let results = data.list;if (yellowFilterEnabled) {- const banned = ['伦理片', '色情片','福利视频','福利片'];+ const banned = ['伦理片', '色情片','同性片','福利视频','福利片'];results = results.filter(item => {const typeName = item.type_name || '';return !banned.some(keyword => typeName.includes(keyword));diff --git a/js/ui.js b/js/ui.jsindex a1ee355..ecf991f 100644--- a/js/ui.js+++ b/js/ui.js@@ -191,7 +191,16 @@ function renderSearchHistory() {return;}- historyContainer.innerHTML = '<div class="text-gray-500 w-full mb-2">最近搜索:</div>';+ // 创建一个包含标题和清除按钮的行+ historyContainer.innerHTML = `+ <div class="flex justify-between items-center w-full mb-2">+ <div class="text-gray-500">最近搜索:</div>+ <button id="clearHistoryBtn" class="text-gray-500 hover:text-white transition-colors"+ onclick="clearSearchHistory()" aria-label="清除搜索历史">+ 清除搜索历史+ </button>+ </div>+ `;history.forEach(item => {const tag = document.createElement('button');