-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathpopup.html
More file actions
370 lines (318 loc) · 9.09 KB
/
popup.html
File metadata and controls
370 lines (318 loc) · 9.09 KB
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
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>IP代理助手</title>
<script src="./js/jquery.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap" rel="stylesheet">
<link href="./css/switch.css" rel="stylesheet">
<link href="./css/bottom-buttons.css" rel="stylesheet">
<style>
:root {
--main-font-family: "Noto Sans SC", "Source Han Sans SC", "Source Han Sans CN", "思源黑体", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", "微软雅黑", sans-serif;
}
</style>
</head>
<body>
<div class="box">
<div class="logo">
<img src="./img/logo.png" alt="logo" />
<div class="settings-container">
<button title="设置" class="filter">
<svg viewBox="0 0 512 512" height="1em">
<path
d="M0 416c0 17.7 14.3 32 32 32l54.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48L480 448c17.7 0 32-14.3 32-32s-14.3-32-32-32l-246.7 0c-12.3-28.3-40.5-48-73.3-48s-61 19.7-73.3 48L32 384c-17.7 0-32 14.3-32 32zm128 0a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zM320 256a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm32-80c-32.8 0-61 19.7-73.3 48L32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l246.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48l54.7 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-54.7 0c-12.3-28.3-40.5-48-73.3-48zM192 128a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm73.3-64C253 35.7 224.8 16 192 16s-61 19.7-73.3 48L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l86.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48L480 128c17.7 0 32-14.3 32-32s-14.3-32-32-32L265.3 64z"
></path>
</svg>
</button>
</div>
</div>
<div class="init_box">
<div class="txt">
您还没有添加代理
</div>
<div class="add_btn">
+ 添加新代理
</div>
<!-- 底部按钮区域 -->
<div class="bottom-buttons">
<!-- 左侧悬浮提示按钮 -->
<div class="hover-container">
<a href="https://discord.com/invite/RMsffEx277" target="_blank" class="hover-me">NoBiggie社区</a>
<div class="tooltip">
<p>加入我们吧!👋</p>
</div>
</div>
<!-- 右侧X按钮 -->
<a href="https://x.com/DevilflasherX" target="_blank" class="button x">
<svg viewBox="0 0 16 16" class="bi bi-twitter-x" fill="currentColor" height="16" width="16" xmlns="http://www.w3.org/2000/svg">
<path d="M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z"></path>
</svg>
@ devilflasher
</a>
</div>
</div>
<div class="set_box">
<div class="set_box_top">
<div class="open_1">
<div class="set_box_tip">
<div class="red_dian"></div>未连接任何代理
</div>
</div>
<div class="open_2" style="display: none;">
<div class="connection-info">
<div class="set_box_tip">
<div class="blur_dian"></div>
<span class="open_user"></span>
</div>
<div class="open_ip"></div>
</div>
<div class="button-container">
<button class="button">断开连接</button>
</div>
</div>
</div>
<div class="set_box_user">
<div class="set_box_user_title">选择代理</div>
<div class="set_box_user_list">
</div>
<div class="set_box_user_bottom">
<!-- 底部按钮区域 -->
<div class="bottom-buttons list-bottom-buttons">
<!-- 左侧悬浮提示按钮 -->
<div class="hover-container">
<a href="https://discord.com/invite/RMsffEx277" target="_blank" class="hover-me">NoBiggie社区</a>
<div class="tooltip">
<p>加入我们吧!👋</p>
</div>
</div>
<!-- 右侧X按钮 -->
<a href="https://x.com/DevilflasherX" target="_blank" class="button x">
<svg viewBox="0 0 16 16" class="bi bi-twitter-x" fill="currentColor" height="16" width="16" xmlns="http://www.w3.org/2000/svg">
<path d="M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z"></path>
</svg>
@ devilflasher
</a>
</div>
</div>
</div>
</div>
</div>
</body>
<script type="text/javascript" src="./js/popup.js"></script>
<style>
h1 {
padding: 0;
margin: 0;
font-size: 14px;
margin-left: 20px;
}
html,
body {
padding: 0;
margin: 0;
text-align: center;
font-size: 14px;
border-radius: 16px;
font-family: var(--main-font-family);
}
.box {
width: 350px;
overflow: visible;
}
.logo {
display: flex;
align-items: center;
width: 330px;
height: 70px;
background-color: #212121;
color: #fff;
padding-left: 20px;
position: relative;
}
.settings-container {
position: absolute;
right: 25px;
top: 50%;
transform: translateY(-50%);
}
.filter {
width: 36px;
height: 36px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid rgba(255, 255, 255, 0.3);
cursor: pointer;
box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.1);
transition: all 0.3s;
background-color: rgb(59, 59, 59);
}
.filter svg {
height: 16px;
fill: white;
transition: all 0.3s;
}
.filter:hover {
box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
background-color: rgb(240, 240, 240);
border: 1px solid rgba(0, 0, 0, 0.192);
}
.filter:hover svg {
fill: rgb(77, 77, 77);
}
.txt {
width: 218px;
font-size: 20px;
line-height: 18.486px;
letter-spacing: 0px;
color: #120f34;
margin: 0 auto;
margin-top: 45px;
}
.add_btn {
width: 217px;
height: 43px;
line-height: 43px;
background-color: #4164f5;
border-radius: 4px;
margin: 0 auto;
margin-top: 20px;
font-size: 16px;
font-weight: 600;
color: #ffffff;
cursor: pointer;
}
.init_box {
display: none;
}
.set_box {
width: 100%;
overflow: visible;
}
.set_box_top {
width: 350px;
height: 79px;
background-color: #212121;
display: flex;
align-items: center;
overflow: visible;
position: relative;
justify-content: space-between;
padding: 0 25px 0 25px;
box-sizing: border-box;
}
.red_dian {
width: 8px;
height: 8px;
background-color: #e01213;
border-radius: 50%;
font-size: 14px;
font-weight: 600;
color: #ffffff;
margin-right: 10px;
}
.blur_dian {
width: 8px;
height: 8px;
background-color: #4164f5;
border-radius: 50%;
margin-right: 10px;
}
.set_box_tip {
display: flex;
align-items: center;
font-size: 14px;
font-weight: 600;
color: #ffffff;
margin-left: 0;
}
.set_box_user {
width: 330px;
margin: 0 auto;
text-align: left;
padding: 0 15px;
box-sizing: border-box;
}
.set_box_user_title {
font-size: 14px;
font-weight: 600;
color: #333333;
margin-top: 26px;
padding-left: 15px;
}
.set_box_user_box {
width: 300px;
height: 66px;
background-color: #ffffff;
border-radius: 8px;
border: solid 1px #d9d9d9;
margin: 0 auto;
margin-top: 14px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 15px;
box-sizing: border-box;
}
.set_box_user_bottom {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 14px;
font-weight: 600;
color: #dd1214;
margin-top: 30px;
margin-bottom: 40px;
width: 100%;
padding: 0;
}
.set_box_user_bottom>div {
cursor: pointer;
}
.name_txt {
width: 200px;
font-weight: 600;
}
.ip_txt {
width: 200px;
color: #999;
}
.open_2 {
display: flex;
align-items: center;
overflow: visible;
width: 100%;
justify-content: space-between;
}
.connection-info {
text-align: left;
}
.button-container {
margin-right: 0;
overflow: visible;
}
.open_ip {
width: 180px;
font-size: 14px;
color: #ffffff;
margin-left: 18px;
text-align: left;
}
.box .bg1 {
background-color: #d9e6fe;
}
.box .bg2 {
background-color: #fff;
}
.nobiggie {
cursor: pointer;
}
/* 确保底部按钮与代理列表项对齐 */
.list-bottom-buttons {
width: 300px;
margin: 0 auto;
}
</style>
</html>