Skip to content

一分钟搭建影视站,支持Docker等部署方式

重构密码输入框,添加表单提交功能以提升用户体验

developer092ccca81e05
diff --git a/index.html b/index.html
index 8525f83..bbe58a4 100644
--- a/index.html
+++ b/index.html
@@ -317,12 +317,12 @@
</div>
<div class="mb-6">
<p class="text-gray-300 mb-4">请输入密码继续访问</p>
- <input type="password" id="passwordInput" class="w-full bg-[#111] border border-[#333] text-white px-4 py-3 rounded-lg focus:outline-none focus:border-white transition-colors" placeholder="密码..." autocomplete="new-password">
+ <form id="passwordForm" onsubmit="handlePasswordSubmit(); return false;">
+ <input type="password" id="passwordInput" class="w-full bg-[#111] border border-[#333] text-white px-4 py-3 rounded-lg focus:outline-none focus:border-white transition-colors" placeholder="密码..." autocomplete="new-password">
+ <button id="passwordSubmitBtn" type="submit" class="mt-4 w-full bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded">提交</button>
+ </form>
<p id="passwordError" class="text-red-500 mt-2 hidden">密码错误,请重试</p>
</div>
- <button id="passwordSubmitBtn" 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>