-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxieyi.html
129 lines (118 loc) · 3.53 KB
/
xieyi.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>欢迎使用整合包</title>
<style>
/*全局去除默认样式*/
*{
padding:0;
margin:0;
box-sizing: border-box;
font-size: 14px;
}
.大背景 {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
position: relative;
}
.大背景::before{
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url(https://user-assets.sxlcdn.com/images/590080/lu_UfrPzBkSXFDgqUF2C2YA1i2eX.png?imageMogr2/strip/auto-orient/thumbnail/1920x9000%3E/quality/90!/format/png);
background-size: cover;
background-repeat: no-repeat;
filter: brightness(70%);
}
body {
margin: 0;
font-family: Arial, sans-serif;
}
#modal {
display: none;
position: absolute;
left: 0;
top: 10%;
width: 100%;
height: 80vh;
background-color: rgba(0, 0, 0, 0.5);
justify-content: center;
align-items: flex-start;
}
#modalContent {
background-color: white;
padding: 20px;
border-radius: 5px;
text-align: center;
width: 90%;
max-width: 400px;
height: 100%; /* 固定高度 */
display: flex;
flex-direction: column;
justify-content: flex-start;
overflow: auto; /* 隐藏溢出的内容 */
}
button {
margin-top: 20px;
padding: 10px 20px;
font-size: 18px;
background-color: gray;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
#拒绝按钮 {
margin-top: 20px;
padding: 10px 20px;
font-size: 18px;
background-color: gray;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
</style>
</head>
<body>
<div class="大背景">
<div id="modal">
<div id="modalContent">
<!--网站协议记得改!!!-->
<div class="标题">
<h1>协议</h1>
<h2>请翻到底</h2>
本整合包为地球村服务器专属,请勿外传,谢谢
<!--额外的文本-->
</p>
let countdown = 10;
const countdownElement = document.getElementById('countdown');
const button2 = document.getElementById('button2');
const timer = setInterval(function() {
countdown--;
countdownElement.textContent = countdown;
if (countdown <= 0) {
clearInterval(timer);
button2.disabled = false;
button2.textContent = "同意";
button2.style.backgroundColor = "#0000ff"; // 变成蓝色
button2.onclick = function() {
window.location.href = 'https://qm.qq.com/q/VMe5h5yvia';
};
}
}, 1000);
};
document.getElementById('拒绝按钮').onclick = function() {
alert('你因为不同意此协议,所以无法加入群聊,将跳转回主页');
window.location.href = './index.html';
};
</script>
</body>
</html>