<!-- 本DIY代码来自于 https://diy.zhongzhipian.top -->
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>公告弹窗</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #3A3A3A;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.popup {
background-color: #F3F6E7;
border-radius: 20px;
width: 90%;
max-width: 400px;
padding: 20px;
text-align: center;
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}
.popup img {
width: 80px;
margin-bottom: 10px;
}
.popup h2 {
margin: 0;
font-size: 24px;
color: #5B7553;
}
.popup p {
color: #666666;
font-size: 14px;
margin: 10px 0;
line-height: 1.6;
}
.popup button {
width: 100%;
padding: 10px;
margin: 5px 0;
border: none;
border-radius: 10px;
font-size: 16px;
cursor: pointer;
}
.popup button.close {
background-color: #C7D4A7;
color: #5B7553;
}
.popup button.join {
background-color: #A8C8A6;
color: #5B7553;
}
.popup button.no-remind {
background-color: #DCE1C5;
color: #5B7553;
}
</style>
</head>
<body>
<div class="popup">
<img src="http://1.t60.top/wolf.png" alt="公告图标">
<div>
<h1 id="title"></h1>
<p id="notice"></p >
<div class="code">
<input type="text" name="code" id="code" pattern="^[a-zA-Z0-9_-]{1,16}$" placeholder="请输入你的激活码">
<button type="submit" onclick="Call_Verify(code.value);" ontouchstart="mStart(this)" ontouchend="mUp(this)">激活</button>
</div>
</div>
<p class="info" id="notice"></p>
<button id="Pay" type="submit" class="join" onclick="Call_Pay();">购买卡密</button>
</div>
<script>
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>
</html>
<!-- 本DIY代码来自于 https://diy.zhongzhipian.top -->