-
Notifications
You must be signed in to change notification settings - Fork 295
Expand file tree
/
Copy pathpopup.html
More file actions
193 lines (167 loc) · 5.44 KB
/
Copy pathpopup.html
File metadata and controls
193 lines (167 loc) · 5.44 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
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,user-scalable=no" />
<meta charset="UTF-8" />
<title></title>
<script src="js/popup.js"></script>
<style>
html,
body,
div,
form,
span,
input,
select,
button,
a {
box-sizing: border-box;
}
body {
margin: 0px;
padding: 4px;
font-size: 14px;
color: #333;
width: 200px;
background: url(bg_off.png);
}
.wrapper {
background: #fff;
padding: 5px 10px;
}
.status {
font-size: 12px;
color: #ccc;
/*background-color: #ccc;*/
padding: 5px 0;
margin-top: 5px;
}
.title {
border-bottom: 1px solid #ccc;
padding: 5px;
font-size: 14px;
font-weight: bold;
margin-bottom: 10px;
text-align: center;
}
.clearfix {}
.clearfix:before,
.clearfix:after {
display: table;
content: " ";
}
.clearfix:after {
clear: both;
}
.help {
position: relative;
top: -3px;
float: right;
}
input {
width: 100%;
}
.open {
line-height: 40px;
width: 100%;
position: relative;
}
.save {
margin: 0 auto;
display: block;
}
.mui-switch {
width: 36px;
height: 24px;
position: absolute;
top: 5px;
right: 0;
border: 1px solid #dfdfdf;
background-color: #fdfdfd;
box-shadow: #dfdfdf 0 0 0 0 inset;
border-radius: 10px;
border-top-left-radius: 12px;
border-top-right-radius: 12px;
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
background-clip: content-box;
display: inline-block;
-webkit-appearance: none;
user-select: none;
outline: none;
}
.mui-switch:before {
content: "";
width: 22px;
height: 22px;
position: absolute;
top: 0px;
left: 0;
border-radius: 12px;
border-top-left-radius: 12px;
border-top-right-radius: 12px;
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
background-color: #fff;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.mui-switch:checked {
border-color: #64bd63;
box-shadow: #64bd63 0 0 0 8px inset;
background-color: #64bd63;
}
.mui-switch:checked:before {
left: 14px;
}
.mui-switch.mui-switch-animbg {
transition: background-color ease 0.4s;
}
.mui-switch.mui-switch-animbg:before {
transition: left 0.3s;
}
.mui-switch.mui-switch-animbg:checked {
box-shadow: #dfdfdf 0 0 0 0 inset;
background-color: #64bd63;
transition: border-color 0.4s, background-color ease 0.4s;
}
.mui-switch.mui-switch-animbg:checked:before {
transition: left 0.3s;
}
.mui-switch.mui-switch-anim {
transition: border cubic-bezier(0, 0, 0, 1) 0.4s, box-shadow cubic-bezier(0, 0, 0, 1) 0.4s;
}
.mui-switch.mui-switch-anim:before {
transition: left 0.3s;
}
.mui-switch.mui-switch-anim:checked {
box-shadow: #64bd63 0 0 0 16px inset;
background-color: #64bd63;
transition: border ease 0.4s, box-shadow ease 0.4s, background-color ease 1.2s;
}
.mui-switch.mui-switch-anim:checked:before {
transition: left 0.3s;
}
</style>
</head>
<body>
<div class="wrapper clearfix">
<div class="title">SocketLog 设置</div>
<form action="">
监听主机: <input type="input" id="address" value="localhost" /> <br /> 监听协议: <input type="input" id="protocol" value="ws" /> <br /> 监听端口: <input type="input" id="port" value="1229" /> <br /> 监听地址:
<input type="input" id="full_address" value="ws://localhost:1229" disabled="" readonly="" /> Client_ID: <input type="input" id="client_id" value="" /> <br />
<div class="open">
开启:<input id="open" class="mui-switch mui-switch-anim" type="checkbox" />
</div>
<button type="button" id="save" class="save">保 存</button>
<div class="status" id="status-div">
状态:<span id="status">正在连接...</span>
<div class="help">
<a href="https://github.com/luofei614/SocketLog" title="帮助" target="_blank"><img width="16" height="16" src="help.png" /></a>
</div>
<!--/help-->
</div>
<!--/status-->
</form>
</div>
</body>
</html>