-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
191 lines (171 loc) · 5.61 KB
/
index.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>论坛群聊信息</title>
<link rel="stylesheet" href="https://cdn.bytedance.com/bootstrap/4.6.2/css/bootstrap.min.css">
<script src="https://cdn.bytedance.com/bootstrap/4.6.2/js/bootstrap.min.js"></script>
<style>
body,
html {
height: 100%;
background-color: #f0f0f3;
}
.container {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
min-height: 100vh;
}
.table-container {
width: 100%;
max-width: 600px;
background: #ffffff;
border-radius: 15px;
box-shadow: 3px 3px 6px #cbced1, -3px -3px 6px #ffffff;
padding: 20px;
margin-top: 40px;
margin-bottom: 40px;
}
h3 {
text-align: center;
width: 100%;
margin-bottom: 20px;
}
.table thead th,
.table tbody td {
text-align: center;
vertical-align: middle;
}
.footer-buttons .btn {
margin: 20px;
box-shadow: 2px 2px 4px #cbced1, -2px -2px 4px #ffffff;
}
.footer {
text-align: center;
padding: 20px 0;
margin-top: auto;
background-color: #ffffff;
width: 100%;
box-shadow: 0px -3px 6px #cbced1, 0px 3px 6px #ffffff;
}
.footer p {
margin: auto;
}
</style>
</head>
<body>
<div class="container">
<div>
<div class="table-container mb-5" id="group-list">
<h3>官方群聊</h3>
<hr />
<table class="table table-hover">
<thead>
<tr>
<th>群名称</th>
<th>群号</th>
<th>状态</th>
<th>链接</th>
</tr>
</thead>
<tbody id="official-group-table-body"></tbody>
</table>
</div>
<div class="table-container mb-5" id="section-list">
<h3>板块群聊</h3>
<hr />
<table class="table table-hover">
<thead>
<tr>
<th>群名称</th>
<th>群号</th>
<th>状态</th>
<th>链接</th>
</tr>
</thead>
<tbody id="section-group-table-body"></tbody>
</table>
</div>
<div class="table-container mb-5" id="qq-channel-list">
<h3>QQ频道</h3>
<hr />
<table class="table table-hover">
<thead>
<tr>
<th>频道名称</th>
<th>频道号</th>
<th>状态</th>
<th>链接</th>
</tr>
</thead>
<tbody id="qq-channel-table-body"></tbody>
</table>
</div>
</div>
</div>
<footer class="footer">
<p>Written by <a href="https://klpbbs.com/?1082463" style="color:Violet;" target="_blank">雪球</a> <a href="https://github.com/TeamVastsea" style="color:LightGray;" target="_blank">(TeamVastsea)</a> with Love ❤️</p>
</footer>
<script>
const officialGroups = [
{ name: '①群', number: '598120166', status: '火热', link: 'https://qm.qq.com/q/E1nPLb4Shq' },
{ name: '②群', number: '151083999', status: '火热', link: 'https://qm.qq.com/q/9ZNXs86nt0' },
{ name: '③群', number: '131200488', status: '火热', link: 'https://qm.qq.com/q/P77D2RXwoU' },
{ name: '⑤群', number: '964085979', status: '爆满', link: 'https://qm.qq.com/q/b3AMQ1kolq' },
{ name: '⑥群', number: '494820425', status: '火热', link: 'https://qm.qq.com/q/n54rT21T3M' },
{ name: '⑦群', number: '538497540', status: '火热', link: 'https://qm.qq.com/q/HFFjmSVDmS' },
{ name: '⑧群', number: '838923614', status: '空闲', link: 'https://qm.qq.com/q/aMBvcEF9ya' },
{ name: '⑨群', number: '916037204', status: '爆满', link: 'https://qm.qq.com/q/WGor6BRDA4' },
{ name: '⑩群', number: '210044288', status: '爆满', link: 'https://qm.qq.com/q/7JLEj4jw4M' },
{ name: '⑪群', number: '904281052', status: '空闲', link: 'https://qm.qq.com/q/PNXSsnGHE4' }
];
const sectionGroups = [
{ name: '内群', number: '隐藏', status: '需申请', link: 'https://klpbbs.com/thread-78494-1-1.html' },
{ name: '皮肤创作交流群', number: '隐藏', status: '需申请', link: 'https://klpbbs.com/thread-104739-1-1.html' },
{ name: '创意港湾版块交流群', number: '隐藏', status: '需申请', link: 'https://klpbbs.com/thread-129402-1-1.html' },
{ name: '游戏资讯版块催审群', number: '隐藏', status: '需申请', link: 'https://klpbbs.com/thread-109342-1-1.html' },
{ name: 'Java版资源创作交流群', number: '332359582', status: '空闲', link: 'https://qm.qq.com/q/UNOvOTOlwc' }
];
const qqChannels = [
{ name: 'QQ频道', number: 'ia4j9i7295', status: '空闲', link: 'https://pd.qq.com/s/h8gkvbpzy' }
];
function getStatusColor(status) {
switch (status) {
case '火热':
return 'warning';
case '爆满':
return 'danger';
case '空闲':
return 'success';
case '需申请':
return 'info';
default:
return 'secondary';
}
}
function populateTable(groups, tableBodyId) {
const tableBody = document.getElementById(tableBodyId);
groups.forEach(group => {
const row = document.createElement('tr');
row.innerHTML = `
<td>${group.name}</td>
<td>${group.number}</td>
<td><span class="badge badge-${getStatusColor(group.status)}">${group.status}</span></td>
<td>
<a href="${group.link}" target="_blank" class="btn btn-outline-secondary btn-sm"><b>点击加入</b></a>
</td>
`;
tableBody.appendChild(row);
});
}
document.addEventListener('DOMContentLoaded', function () {
populateTable(officialGroups, 'official-group-table-body');
populateTable(sectionGroups, 'section-group-table-body');
populateTable(qqChannels, 'qq-channel-table-body');
});
</script>
</body>
</html>