-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb50.html
389 lines (373 loc) · 13.4 KB
/
web50.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
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
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="shortcut icon"
type="image/x-icon"
href="https://blobs.officehome.msocdn.com/images/content/images/favicon-8f211ea639.ico"
/>
<title>3S - 50GB</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/mdui/0.4.3/css/mdui.min.css"
/>
<!-- <script src="https://recaptcha.net/recaptcha/api.js" async defer></script> -->
<style>
@media screen and (max-width: 600px) {
.mdui-toolbar > img {
margin: auto;
}
.hero > .mdui-typo-display-3 {
font-size: 27px;
}
.hero > .mdui-typo-title-opacity {
font-size: 15px;
}
.enroll {
padding: 40px 15px !important;
}
.email {
display: block !important;
}
}
@media screen and (min-width: 600px) {
.enroll {
padding: 50px 40px !important;
}
}
.enroll-mdui-dialog {
max-width: inherit;
overflow-x: hidden;
overflow-y: scroll;
}
.hero-bg {
background: url(https://media.istockphoto.com/photos/purple-pink-black-abstract-background-picture-id1148136785?b=1&k=20&m=1148136785&s=170667a&w=0&h=HQqkJKwJFwhQ6W_jUv_juaxFk186pgwOxcP14dIMyPI=)
no-repeat;
background-size: cover;
height: 100vh;
overflow: scroll;
}
.hero-btn {
width: 120px;
height: 45px;
}
.enroll {
background-color: #fff;
position: absolute;
color: #000;
padding: 60px 60px 100px 60px;
display: none;
}
.code,
.email {
display: flex;
align-items: flex-end;
justify-content: space-between;
}
</style>
</head>
<body>
<div class="mdui-dialog" id="notice">
<div class="mdui-dialog-title">Thông báo</div>
<div class="mdui-dialog-content">${notice}</div>
<div class="mdui-dialog-actions">
<button class="mdui-btn mdui-ripple" mdui-dialog-confirm>
Đồng ý
</button>
</div>
</div>
<div class="mdui-dialog" id="usernameExists">
<div class="mdui-dialog-title">Không tạo được...</div>
<div class="mdui-dialog-content">Tên người dùng đã tồn tại, vui lòng thử lại!</div>
<div class="mdui-dialog-actions">
<button class="mdui-btn mdui-ripple" mdui-dialog-confirm>
Xác nhận
</button>
</div>
</div>
<div class="mdui-dialog" id="wrongRecaptcha">
<div class="mdui-dialog-title">Không tạo được...</div>
<div class="mdui-dialog-content">LỖI CAPTCHA!</div>
<div class="mdui-dialog-actions">
<button class="mdui-btn mdui-ripple" mdui-dialog-confirm>
Xác nhận
</button>
</div>
</div>
<div class="mdui-dialog" id="invalidCode">
<div class="mdui-dialog-title">Không tạo được ...</div>
<div class="mdui-dialog-content">Mã kích hoạt không hợp lệ!</div>
<div class="mdui-dialog-actions">
<button class="mdui-btn mdui-ripple" mdui-dialog-confirm>
Xác nhận
</button>
</div>
</div>
<div class="mdui-appbar">
<div class="mdui-toolbar" style="width: 85%; margin: auto">
<img
class="mdui-img-fluid"
src="https://gcdnb.pbrd.co/images/3nqxmXsGpLOT.png?o=1"
alt=""
/>
<span class="mdui-typo-display-1 mdui-hidden-xs">|</span>
<a href="https://bqt0.3steam.workers.dev">3S-1GB</a>
<span class="mdui-typo-display-1 mdui-hidden-xs">|</span>
<a href="https://bqt.3steam.workers.dev">3S-50GB</a>
<span class="mdui-typo-display-1 mdui-hidden-xs">|</span>
<a href="https://bqt1.3steam.workers.dev">3S-500GB</a>
<div class="mdui-toolbar-spacer mdui-hidden-xs"></div>
<a
class="mdui-typo-title mdui-hidden-xs"
href="https://www.facebook.com/nvnptit"
><i class="mdui-icon material-icons">account_circle</i></a
>
</div>
</div>
<div class="hero-bg mdui-typo mdui-text-color-white-text mdui-valign">
<div class="hero mdui-col-xs-10 mdui-col-offset-xs-1 mdui-text-center">
<div class="mdui-center mdui-typo-display-3">${line1}</div>
<div class="mdui-typo-title-opacity">${line2}</div>
<br />
<button
class="mdui-btn mdui-btn-raised mdui-ripple mdui-color-red mdui-m-a-1 hero-btn"
id="getOffice"
>
ĐĂNG KÝ
</button>
<button
class="mdui-btn mdui-btn-raised mdui-ripple mdui-color-white mdui-m-a-1 hero-btn"
onclick="window.location.href='https://portal.office.com/'"
>
ĐĂNG NHẬP
</button>
</div>
<div
class="enroll-mdui-dialog mdui-dialog enroll mdui-col-xs-10 mdui-col-offset-xs-1 mdui-col-md-8 mdui-col-offset-md-2 mdui-shadow-8"
id="enroll"
>
<div class="mdui-typo-title">ĐĂNG KÝ</div>
<hr />
<br />
<form>
<div
class="mdui-col-md-6 mdui-col-offset-md-3 mdui-col-xs-12"
style="display: none"
id="createdAccount"
>
// RESULT
<textarea style="width: 297px; height: 100px;" id="account"></textarea>
<!-- <div class="mdui-textfield">
<i class="mdui-icon material-icons mdui-text-color-pink">email</i>
<p>Email: </p>
<input
class="mdui-textfield-input"
type="email"
value=""
id="email"
/>
</div>
<div class="mdui-textfield">
<i class="mdui-icon material-icons mdui-text-color-pink">lock</i>
<p>Mật khẩu:</p>
<input
class="mdui-textfield-input"
type="text"
value=""
id="password"
/>
</div> -->
<br />
<br />
<a
class="mdui-btn mdui-btn-raised mdui-ripple mdui-text-color-yellow mdui-color-pink"
href="https://portal.office.com"
target="_blank"
style="float: right"
>ĐĂNG NHẬP</a
>
<div style="clear: both"></div>
</div>
<div class="mdui-progress" style="display: none">
<div class="mdui-progress-indeterminate"></div>
</div>
<div class="mdui-col-xs-12 mdui-col-md-6" id="accountInfo">
<div class="mdui-typo-subheading">Thông tin tài khoản:</div>
<br />
<div class="mdui-col-xs-12">
<span>Gói: </span>
<select
class="mdui-select"
name="subscription"
mdui-select
id="subscription"
>
${subscriptions}
</select>
</div>
<div
class="mdui-textfield mdui-textfield-floating-label mdui-col-xs-12"
>
<label class="mdui-textfield-label">Tên</label>
<input
class="mdui-textfield-input"
type="text"
maxlength="20"
id="displayname"
name="displayname"
/>
<div class="mdui-textfield-error">Tên người dùng chỉ bằng tiếng Anh / Số</div>
<div class="mdui-textfield-helper">Tên tài khoản được hiển thị</div>
</div>
<div class="email mdui-col-xs-12">
<div
class="mdui-textfield mdui-textfield-floating-label"
style="width: 100%"
>
<label class="mdui-textfield-label">Tên tài khoản</label>
<input
class="mdui-textfield-input"
type="text"
maxlength="20"
id="username"
name="username"
pattern="^[A-Za-z0-9.]+$"
/>
<div class="mdui-textfield-error">Chỉ sử dụng tiếng anh/số</div>
<div class="mdui-textfield-helper">Username @ Domain</div>
</div>
<span class="mdui-hidden-xs"> </span>
<select
class="mdui-select"
mdui-select
style="margin-bottom: 28px; color: black"
name="domain"
id="domain"
>
${domains}
</select>
</div>
<div style="clear: both"></div>
<br />
<br />
</div>
<div
class="mdui-col-xs-12 mdui-col-md-5 mdui-col-offset-md-1"
id="activation"
>
<div class="mdui-typo-subheading">Thông tin kích hoạt: </div>
<div class="mdui-col-xs-12 code">
<div
class="mdui-textfield mdui-textfield-floating-label"
style="width: 100%"
>
<label class="mdui-textfield-label">Mã kích hoạt</label>
<input
class="mdui-textfield-input"
type="text"
id="code"
name="code"
/>
<div class="mdui-textfield-error">Yêu cầu</div>
</div>
<span> </span>
<button
class="mdui-btn mdui-color-pink mdui-ripple"
style="margin-bottom: 28px; padding: 0"
onclick="window.open('${code_store_link}')"
>
Nhận mã kích hoạt
</button>
</div>
<div class="mdui-col-xs-12">
<br />
<!-- <div
class="g-recaptcha"
data-sitekey="${recaptcha_sitekey}"
></div>
<br /> -->
<input
type="submit"
class="mdui-col-xs-12 mdui-btn mdui-ripple mdui-color-pink hero-button"
style="float: right"
id="submit"
/>
</div>
</div>
</form>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mdui/0.4.3/js/mdui.min.js"></script>
<script>
var $$ = mdui.JQ;
$$(document).ready(function () {
"" != $$("#notice>.mdui-dialog-content").html() &&
new mdui.Dialog("#notice", { history: false }).open();
});
var enroll = new mdui.Dialog("#enroll", { modal: !0 });
$$("#getOffice").on("click", function (e) {
enroll.open();
}),
$$("form").on("submit", function (e) {
e.preventDefault();
var a = {
subscription: $$("#subscription").val(),
displayname: $$("#displayname").val().trim(),
username: $$("#username").val().trim(),
domain: $$("#domain").val(),
code: $$("#code").val().trim(),
};
$$("#accountInfo, #activation").hide(),
$$(".mdui-progress").show(),
$$(".enroll").height("auto"),
$$("hr").hide(),
mdui.mutation(),
$$.ajax({
method: "POST",
url: "/mscreate",
data: JSON.stringify(a),
contentType: "application/json",
success: function (e) {
var a = JSON.parse(e);
switch (
($$(".mdui-progress").hide(), $$("hr").show(), a.stat)
) {
case "success":
$$("#createdAccount").show(),
// $$("#email").val(a.email),
// $$("#password").val(a.password),
// RESULT
$$("#account").val("Thông tin tài khoản 3STEAM - 50GB \nEmail: "+ a.email +"\nMật khẩu: "+a.password +"\n\nBạn đăng nhập vào portal.office.com verify số điện thoại và email để sau này có thể tự lấy lại pass nếu quên. Hướng dẫn login và verify: https://www.facebook.com/groups/3s.top1/posts/1302783120485546"),
$$("#accountInfo, #activation").show();
break;
case "username exists":
$$("#accountInfo, #activation").show(),
enroll.close(),
new mdui.Dialog("#usernameExists").open();
break;
case "wrong recaptcha":
$$("#accountInfo, #activation").show(),
enroll.close(),
new mdui.Dialog("#wrongRecaptcha").open();
break;
case "invalid code":
$$("#accountInfo, #activation").show(),
enroll.close(),
new mdui.Dialog("#invalidCode").open();
break;
default:
enroll.close(), mdui.alert(e);
}
$$("#displayname").val(""),
$$("#username").val(""),
$$("#code").val(""),
// grecaptcha.reset(),
$$(".enroll").height("auto");
},
});
});
</script>
</body>
</html>