一分钟搭建影视站,支持Docker等部署方式
fix
developerffb8012b8543
diff --git a/about.html b/about.htmlindex 4996c9b..268c8e0 100644--- a/about.html+++ b/about.html@@ -32,7 +32,7 @@若您是版权方或相关权利人,发现本站搜索结果中存在侵犯您合法权益的内容,请通过以下渠道向我们反馈:</p><div class="bg-[#1a1a1a] p-4 rounded-md mb-4 text-left">- <p class="text-gray-300"><span class="font-semibold">投诉邮箱:</span><a href="mailto:[email protected]" class="text-blue-400 hover:underline">[email protected]</a></p>+ <p class="text-gray-300"><span class="font-semibold">投诉邮箱:</span><a href="mailto:[email protected]" class="text-blue-400 hover:underline">[email protected]</a></p></div><p class="text-gray-300 text-left">请在投诉邮件中提供:您的身份证明、权利证明、侵权内容的具体链接及相关说明。我们将在收到投诉后尽快处理,对于确认侵权的内容,将立即断开相关链接,停止展示侵权内容,并将处理结果反馈给您。diff --git a/index.html b/index.htmlindex 98ee79b..95dbedd 100644--- a/index.html+++ b/index.html@@ -234,29 +234,6 @@</div></footer>- <!-- 免责声明弹窗 -->- <div id="disclaimerModal" class="fixed inset-0 bg-black/95 hidden flex items-center justify-center z-[60] transition-opacity duration-300">- <div class="bg-[#111] p-8 rounded-lg w-11/12 max-w-2xl border border-[#333] max-h-[90vh] flex flex-col">- <div class="flex justify-between items-center mb-4 flex-none">- <h2 class="text-xl font-bold gradient-text">免责声明</h2>- <button onclick="closeDisclaimerModal()" class="text-gray-400 hover:text-white text-2xl transition-colors flex-shrink-0">×</button>- </div>- <div class="overflow-auto flex-1 min-h-0 text-gray-300">- <div class="space-y-4">- <p>欢迎使用 LibreTV,请您在使用本站前仔细阅读以下内容:</p>- <p>1. LibreTV 仅提供视频搜索服务,不直接提供、存储或上传任何视频内容。所有搜索结果均来自第三方公开接口。</p>- <p>2. 用户在使用本站服务时,须遵守相关法律法规,不得利用搜索结果从事侵权行为,如下载、传播未经授权的作品等。</p>- <p>3. 若您发现搜索结果中存在侵犯您合法权益的内容,请通过邮箱 [email protected] 向我们反馈,我们将及时处理。</p>- </div>- <div class="mt-6 flex justify-center">- <button onclick="acceptDisclaimer()" class="px-6 py-2 bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 text-white font-medium rounded-lg hover:opacity-90 transition-opacity">- 我已阅读并同意- </button>- </div>- </div>- </div>- </div>-<!-- 详情模态框 --><div id="modal" class="fixed inset-0 bg-black/95 hidden flex items-center justify-center transition-opacity duration-300"><div class="bg-[#111] p-8 rounded-lg w-11/12 max-w-4xl border border-[#333] max-h-[90vh] flex flex-col">@@ -271,6 +248,32 @@</div></div>+ <!-- 版权声明弹窗 -->+ <div id="disclaimerModal" class="fixed inset-0 bg-black/90 hidden items-center justify-center z-[60]">+ <div class="bg-[#111] p-8 rounded-lg border border-[#333] w-11/12 max-w-2xl max-h-[90vh] overflow-y-auto">+ <h2 class="text-2xl font-bold gradient-text mb-6 text-center">使用声明</h2>+ <div class="text-gray-300 space-y-4">+ <p>+ 欢迎使用 LibreTV。在开始使用前,请您了解并同意以下条款:+ </p>+ <p>+ <strong class="text-blue-400">服务性质:</strong> LibreTV 仅提供视频搜索服务,不直接提供、存储或上传任何视频内容。所有搜索结果均来自第三方公开接口。+ </p>+ <p>+ <strong class="text-blue-400">用户责任:</strong> 用户在使用本站服务时,须遵守相关法律法规,不得利用搜索结果从事侵权行为,如下载、传播未经授权的作品等。+ </p>+ <p>+ <strong class="text-blue-400">侵权投诉:</strong> 若您是版权方或相关权利人,发现搜索结果中存在侵犯您合法权益的内容,请通过 <a href="mailto:[email protected]" class="text-blue-400 hover:underline">[email protected]</a> 向我们反馈。我们将在收到投诉后尽快核实处理。+ </p>+ </div>+ <div class="mt-6 flex justify-center">+ <button id="acceptDisclaimerBtn" class="px-6 py-3 bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 text-white font-semibold rounded-lg hover:shadow-lg transition-all duration-300">+ 我已了解并接受+ </button>+ </div>+ </div>+ </div>+<!-- 错误提示框 --><div id="toast" class="fixed top-4 left-1/2 -translate-x-1/2 bg-red-500 text-white px-6 py-3 rounded-lg shadow-lg transform transition-all duration-300 opacity-0 -translate-y-full"><p id="toastMessage"></p>@@ -304,5 +307,28 @@<script src="js/ui.js"></script><script src="js/api.js"></script><script src="js/app.js"></script>++ <!-- 弹窗显示脚本 -->+ <script>+ // 在页面加载完成后检查用户是否首次访问+ document.addEventListener('DOMContentLoaded', function() {+ // 检查用户是否已经看过声明+ const hasSeenDisclaimer = localStorage.getItem('hasSeenDisclaimer');++ if (!hasSeenDisclaimer) {+ // 显示弹窗+ const disclaimerModal = document.getElementById('disclaimerModal');+ disclaimerModal.style.display = 'flex';++ // 添加接受按钮事件+ document.getElementById('acceptDisclaimerBtn').addEventListener('click', function() {+ // 保存用户已看过声明的状态+ localStorage.setItem('hasSeenDisclaimer', 'true');+ // 隐藏弹窗+ disclaimerModal.style.display = 'none';+ });+ }+ });+ </script></body></html>\ No newline at end of filediff --git a/js/app.js b/js/app.jsindex e8fba1f..40139fa 100644--- a/js/app.js+++ b/js/app.js@@ -56,9 +56,6 @@ document.addEventListener('DOMContentLoaded', function() {// 初始检查成人API选中状态setTimeout(checkAdultAPIsSelected, 100);-- // 检查并显示免责声明弹窗- checkAndShowDisclaimer();});// 初始化API复选框@@ -262,6 +259,9 @@ function editCustomApi(index) {// 替换表单按钮操作const buttonContainer = form.querySelector('div:last-child');buttonContainer.innerHTML = `+ <button onclick="updateCustomApi(${index})" class="bg-blue-600 hover:bg-blue-700 text-white px-3 py-1 rounded text-xs">更新</button>+ <button onclick="cancelEditCustomApi()" class="bg-[#444] hover:bg-[#555] text-white px-3 py-1 rounded text-xs">取消</button>+ `;}}