-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
239 lines (215 loc) · 6.96 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>简易订阅链接生成后台</title>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<style type="text/css">
* {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-font-smoothing: antialiased;
-moz-font-smoothing: antialiased;
-o-font-smoothing: antialiased;
font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
body {
font-family: "Open Sans", Helvetica, Arial, sans-serif;
font-weight: 300;
font-size: 12px;
line-height: 30px;
color: #777;
background: #0CF;
}
.container {
max-width: 400px;
width: 100%;
margin: 0 auto;
position: relative;
}
#contact input[type="Number"],
#contact input[type="time"],
#contact input[type="date"],
#contact textarea,
#contact button[type="submit"] {
font: 400 12px/16px "Open Sans", Helvetica, Arial, sans-serif;
}
#contact {
background: #F9F9F9;
padding: 25px;
margin: 5px 0;
}
#contact h3 {
color: #F96;
display: block;
font-size: 30px;
font-weight: 400;
}
#contact h4 {
margin: 5px 0 15px;
display: block;
font-size: 13px;
}
fieldset {
border: medium none !important;
margin: 0 0 10px;
min-width: 100%;
padding: 0;
width: 100%;
}
#contact input[type="Number"],
#contact input[type="time"],
#contact input[type="date"],
textarea {
width: 100%;
border: 1px solid #CCC;
background: #FFF;
margin: 0 0 5px;
padding: 10px;
}
#contact input[type="Number"]:hover,
#contact input[type="time"]:hover,
#contact input[type="date"]:hover,
textarea:hover {
-webkit-transition: border-color 0.3s ease-in-out;
-moz-transition: border-color 0.3s ease-in-out;
transition: border-color 0.3s ease-in-out;
border: 1px solid #AAA;
}
textarea {
height: 100px;
max-width: 100%;
resize: none;
}
#contact button[type="submit"] {
cursor: pointer;
width: 100%;
border: none;
background: #0CF;
color: #FFF;
margin: 0 0 5px;
padding: 10px;
font-size: 15px;
}
#contact button[type="submit"]:hover {
background: #09C;
-webkit-transition: background 0.3s ease-in-out;
-moz-transition: background 0.3s ease-in-out;
transition: background-color 0.3s ease-in-out;
}
#contact button[type="submit"]:active {
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}
#contact input:focus,
#contact textarea:focus {
outline: 0;
border: 1px solid #999;
}
::-webkit-input-placeholder {
color: #888;
}
:-moz-placeholder {
color: #888;
}
::-moz-placeholder {
color: #888;
}
:-ms-input-placeholder {
color: #888;
}
.Setting_On {
background-color: green;
}
.Setting_Off {
background-color: red;
}
.Setting_btn {
border-radius: 50%;
width: 20px;
height: 20px;
border: none;
margin: 0 auto;
vertical-align: middle;
}
</style>
</head>
<body>
<div class="container">
<div>
<form id="contact" action="" onsubmit="return checkForm()" target="iframe">
<h3>订阅生成后台</h3>
<h4>本代码(包括后台)版权归涛之雨所有</h4>
<fieldset>
<input id="id" placeholder="用户id(QQ号)" title="用户id(QQ号)" type="Number" tabindex="1" required="" autofocus="" min="10000" max="1000000000000000">
</fieldset>
<fieldset>
<input id="n" placeholder="获取节点的数量" title="获取节点的数量" type="Number" tabindex="2" required="" min="1" max="999999">
</fieldset>
<fieldset>
<input id="date" placeholder="VIP过期的日期" title="VIP过期的日期" type="date" tabindex="3" required="">
<input id="time" placeholder="VIP过期的时间" title="VIP过期的时间" type="time" tabindex="4" required="">
</fieldset>
<fieldset>
<input id="k" placeholder="校验码" title="请输入校验码" type="Number" tabindex="5" required="">
</fieldset>
<fieldset>
<div style="vertical-align: middle;"><label style="font-size: 20px;vertical-align: middle;font-family: Tahoma;" title="是否开启短连接"><span>短连接</span><input id="u" type="button" class="Setting_btn Setting_On"></label></div>
</fieldset>
<fieldset>
<button type="submit" tabindex="7" id="submit">生成</button>
</fieldset>
</form>
<iframe id="iframe" name="iframe" style="display:none;"></iframe>
<fieldset>
<textarea id="url" placeholder="" tabindex="-1" style="display: none;"></textarea>
</fieldset>
</div>
<script type="text/javascript">
$("#u").on('click',function(e){
var IsOpen=!!!$(e.target).attr("class").match(/Setting_On/g);
$(e.target).addClass(!IsOpen?"Setting_Off":"Setting_On");
$(e.target).removeClass(!IsOpen?"Setting_On":"Setting_Off");
});
function checkForm() {
$.ajax({
type: 'get',
url: '/s.php',
dataType: 'text',
data: {
"i": $("#id").val(),
"n": $("#n").val(),
"e": new Date($("#date").val().replace(/-/g, '/') + " " + $("#time").val()).getTime() / 1000,
"k": $("#k").val(),
"u": !!$("#u").attr("class").match(/Setting_On/g)?"1":"0",
},
success: function(data) {
$("#url").show();
$("#url").val(data);
},
error: function() {
$("#url").show();
$("#url").val("服务器错误!");
}
});
return false;
}
$("#url").click(function() {
copyToClip($("#url").val(), "已复制到您的剪贴板");
});
function copyToClip(content, message) {
var aux = document.createElement("input");
aux.setAttribute("value", content);
document.body.appendChild(aux);
aux.select();
document.execCommand("copy");
document.body.removeChild(aux);
alert(message);
}
</script>
</div>
</body>
</html>