<!-- 本DIY代码来自于 https://diy.zhongzhipian.top -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>验证页面</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background-color: #f0f0f5;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
background: #fff;
border-radius: 12px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
width: 100%; /* 设置宽度为100%以匹配父容器 */
max-width: 400px; /* 设定最大宽度 */
padding: 20px;
box-sizing: border-box;
height: 280px; /* 设置高度为280px */
overflow: auto; /* 如果内容超出容器,高度会添加滚动条 */
display: flex;
flex-direction: column;
justify-content: center; /* 垂直居中 */
align-items: center; /* 水平居中 */
}
h1 {
font-size: 24px;
font-weight: 600;
color: #333;
margin: 0;
}
p {
font-size: 16px;
color: #666;
margin: 10px 0 20px;
text-align: center; /* 使文本居中对齐 */
}
input[type="text"] {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 8px;
font-size: 16px;
box-sizing: border-box;
margin-bottom: 20px;
}
button {
width: 100%;
padding: 15px;
font-size: 16px;
font-weight: 600;
color: #fff;
background-color: #007bff;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s;
}
button:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<div class="container">
<h1 id="title">验证页面</h1>
<p id="msg">请输入验证码以继续</p>
<input type="text" placeholder="请输入验证码" id="code">
<button onclick="Call_Verify(code.value);">确定</button>
</div>
<script>
// Original logic
document.getElementById("title").innerHTML = PanGolin.GetTitle();
document.getElementById("notice").innerHTML = PanGolin.GetNotice();
document.getElementById("Query_Trial").innerHTML = PanGolin.Is_Trial() ? "试用" : "查码";
document.getElementById("Pay").style.display = PanGolin.Is_Pay() ? "block" : "none";
function Call_Verify(data) {
PanGolin.Verify(data);
}
function Call_Query_Trial(data) {
if (PanGolin.Is_Trial()) PanGolin.Trial();
else PanGolin.Query(data);
}
function Call_Pay() {
PanGolin.Pay();
}
function mStart(obj) {
obj.style.opacity = "0.8";
}
function mUp(obj) {
obj.style.opacity = "1";
}
</script>
</body>
</html>
<!-- 本DIY代码来自于 https://diy.zhongzhipian.top -->