-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·283 lines (262 loc) · 10.7 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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Join DebianCN Telegram Group</title>
<meta http-equiv="x-dns-prefetch-control" content="on">
<meta http-equiv="X-UA-Compatible" content="IE=Edge, chrome=1">
<meta name="format-detection" content="telephone=no">
<link rel="icon" href="./logo_main.jpg" type="image/x-icon">
<meta name="description" content="Join DebianCN Telegram Group - Debian 中文社区">
<meta content=webkit name=renderer>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#fafafa">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]">
<meta property="og:title" content="Join DebianCN Telegram Group">
<meta property="og:image" content="">
<meta property="og:url" content="https://telegram.debiancn.org">
<meta property="og:site_name" content="Join DebianCN Telegram Group">
<meta property="og:description" content="Join DebianCN Telegram Group - Debian 中文社区">
<meta name="twitter:card" content="summary">
<style>
html {
font-size: 20px;
height: 100%;
}
body {
width: 100%;
color: #3b4351;
background-color: #f3f3f3;
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
font-size: .8rem;
overflow-x: hidden;
text-rendering: optimizeLegibility;
display: flex;
flex-direction: column;
min-height: 100%;
}
#main {
text-align: center;
flex-grow: 1;
display: flex;
justify-content: center;
align-items: center;
}
.group-block-div {
display: inline-block;
margin: 1em 0;
}
.header {
width: 100%;
color: #FFF;
background: #d24c72;
text-decoration: none;
}
.header a {
display: block;
font-size: .8rem;
line-height: 100%;
color: #FFF;
background: #d24c72;
padding: 2px 15px 0 16px;
height: 45px;
line-height: 2.15rem;
text-align: center;
}
.logo-div {
margin: 0 auto;
width: 128px;
}
.logo-img {
width: 128px;
height: 128px;
border-radius: 64px;
background: #eaeaea;
-webkit-box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12) !important;
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12) !important;
}
.content-div {
max-width: 19rem;
text-align: center;
margin: 0 auto;
}
.content-div .title {
font-size: 1.3rem;
line-height: 1.6rem;
font-weight: bold;
text-align: center;
max-width: 17rem;
padding: 0 10px;
margin: 16px auto 10px;
color: #333;
overflow: hidden;
text-overflow: ellipsis;
}
.content-div p {
display: -webkit-box;
-webkit-line-clamp: 5;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
max-height: 125px;
word-break: break-word;
font-size: .7rem;
line-height: 1.25rem;
text-align: center;
max-width: 17rem;
padding: 0 10px;
margin: 0 auto 26px;
}
.action-div {
margin: 16px auto 0;
}
.action-div .button {
-webkit-box-box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12);
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12);
position: relative;
display: inline-block;
min-width: 200px;
height: 36px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
padding: 0 16px;
margin: 0;
overflow: hidden;
font-size: .7rem;
font-weight: 500;
line-height: 1.8rem;
text-align: center;
text-decoration: none;
text-transform: uppercase;
letter-spacing: .04em;
white-space: nowrap;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
zoom: 1;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background: #d24c72;
color: #fff;
border: none;
border-radius: 24px;
outline: 0;
-webkit-transition: all .2s cubic-bezier(.4, 0, .2, 1), -webkit-box-shadow .2s cubic-bezier(.4, 0, 1, 1);
transition: all .2s cubic-bezier(.4, 0, .2, 1), -webkit-box-shadow .2s cubic-bezier(.4, 0, 1, 1);
transition: all .2s cubic-bezier(.4, 0, .2, 1), box-shadow .2s cubic-bezier(.4, 0, 1, 1);
transition: all .2s cubic-bezier(.4, 0, .2, 1), box-shadow .2s cubic-bezier(.4, 0, 1, 1), -webkit-box-shadow .2s cubic-bezier(.4, 0, 1, 1);
will-change: box-shadow;
-webkit-user-drag: none;
}
.action-div .link {
color: #d24c72;
text-decoration: underline;
height: 36px;
padding: 0 16px;
font-size: .8rem;
font-weight: 500;
line-height: 1.8rem;
text-align: center;
}
.action-div .button:hover {
-webkit-box-shadow: 0 2px 4px -1px rgba(0, 0, 0, .2), 0 4px 5px 0 rgba(0, 0, 0, .14), 0 1px 10px 0 rgba(0, 0, 0, .12);
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, .2), 0 4px 5px 0 rgba(0, 0, 0, .14), 0 1px 10px 0 rgba(0, 0, 0, .12);
opacity: .85;
}
.action-div .button[disabled] {
background-color: rgba(0, 0, 0, .12) !important;
-webkit-box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12) !important;
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12) !important;
color: rgba(0, 0, 0, .382) !important;
cursor: default !important;
opacity: 1 !important;
}
.footer {
}
.footer p {
padding: 20px;
margin: 0;
font-size: .65rem;
line-height: 1.2rem;
color: #808080;
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
}
</style>
</head>
<body>
<div class="header">
<a href="https://telegram.org" target="_blank" rel="external noopener noreferrer">还没有 <strong>Telegram</strong>?马上试试!</a>
</div>
<div id="main">
<div class="group-blocks">
<div class="group-block-div">
<div class="logo-div">
<img class="logo-img" src="./logo_main.jpg">
</div>
<div class="content-div">
<h1 class="title">Debian 中文</h1>
<p>Debian 中文社区 Telegram 讨论组</p>
</div>
<div class="action-div">
<a id="tgActionMain" class="button">加入 Telegram 群组</a>
<br>
<a id="tgLinkMain" class="link" rel="external noopener noreferrer">群组链接</a>
</div>
</div>
<div class="group-block-div">
<div class="logo-div">
<img class="logo-img" src="./logo_offtopic.jpg">
</div>
<div class="content-div">
<h1 class="title">Debian 中文离题组</h1>
<p>Debian 中文社区 Telegram 离题讨论组</p>
</div>
<div class="action-div">
<a id="tgActionOt" class="button">加入 Telegram 群组</a>
<br>
<a id="tgLinkOt" class="link" rel="external noopener noreferrer">群组链接</a>
</div>
</div>
</div>
</div>
<div class="footer">
<p>如果你安装了 <strong>Telegram</strong> ,你可以使用按钮加入群组。如果按钮不起作用的话,使用群组链接加入。</p>
</div>
<script>
window.TG_GROUP_TYPE = 'private'; // Can be 'public', 'private' or 'disabled'
window.TG_GROUP_MAIN_LINK = 'xKdrA76gYXk1MWE9'; // t.me/{slug} or t.me/joinchat/{slug}. Depends on the group type.
window.TG_GROUP_OT_LINK = 'xUSHlvXAGcY3YTBl';
</script>
<script>
(function () {
var tgLink, tgAction;
if (window.TG_GROUP_TYPE === 'public') {
tgLink = 'https://t.me/' + window.TG_GROUP_LINK;
tgAction = 'tg://resolve?domain=' + window.TG_GROUP_LINK;
document.getElementById('tgAction').setAttribute('href', tgAction);
document.getElementById('tgLink').setAttribute('href', tgLink);
} else if (window.TG_GROUP_TYPE === 'private') {
tgLinkMain = 'https://t.me/joinchat/' + window.TG_GROUP_MAIN_LINK;
tgActionMain = 'tg://join?invite=' + window.TG_GROUP_MAIN_LINK;
tgLinkOt = 'https://t.me/joinchat/' + window.TG_GROUP_OT_LINK;
tgActionOt = 'tg://join?invite=' + window.TG_GROUP_OT_LINK;
document.getElementById('tgActionMain').setAttribute('href', tgActionMain);
document.getElementById('tgLinkMain').setAttribute('href', tgLinkMain);
document.getElementById('tgActionOt').setAttribute('href', tgActionOt);
document.getElementById('tgLinkOt').setAttribute('href', tgLinkOt);
} else if (window.TG_GROUP_TYPE === 'disabled') {
document.getElementById('tgAction').setAttribute('disabled', '');
document.getElementById('tgAction').innerHTML = 'The Group Is Not Opened Yet'
document.getElementById('tgLink').style.display = 'none';
} else {
window.alert('There must be something wrong with the page configuration!')
}
})();
</script>
</body>
</html>