-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpair.html
More file actions
313 lines (284 loc) · 8.58 KB
/
pair.html
File metadata and controls
313 lines (284 loc) · 8.58 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NOTHING | PAIR WEB V2</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<style>
body {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
height: 100vh;
margin: 0;
background-image: url("https://cdn.apis-nothing.xyz/file/oa3jra.jpg"); /* Set the background image */
background-repeat: no-repeat;
background-position: center;
background-size: cover;
font-family: Arial, sans-serif;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
}
.box {
width: 300px;
height: 330px;
padding: 20px;
position: relative;
text-align: center;
background-color: rgba(255, 255, 255, 0.5);
border-radius: 10px;
transform: perspective(1000px) rotateY(0deg);
box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}
#text {
color: #000; /* Set the text color to black (#000) */
}
.input-container input {
color: #000; /* Set the text color to black (#000) */
}
.centered-text {
color: #000; /* Set the text color to black (#000) */
}
.input-container {
display: flex;
background: white;
border-radius: 1rem;
background: linear-gradient(45deg, #c5c5c5 0%, #ffffff 100%);
box-shadow: 20px 20px 20px #d8d8d8, -10px -10px 20px #f8f8f8;
padding: 0.3rem;
gap: 0.3rem;
max-width: 300px;
width: 100%;
}
.input-container input {
border-radius: 0.8rem 0 0 0.8rem;
background: #e8e8e8;
box-shadow: inset 13px 13px 10px #dcdcdc, inset -13px -13px 10px #f4f4f4;
width: 89%;
flex-basis: 75%;
padding: 1rem;
border: none;
border-left: 2px solid #0004ff;
color: #5e5e5e;
transition: all 0.2s ease-in-out;
}
.input-container input:focus {
border-left: 2px solid #0004ff;
outline: none;
box-shadow: inset 13px 13px 10px #ffe1e1, inset -13px -13px 10px #f4f4f4;
}
.input-container button {
flex-basis: 25%;
padding: 1rem;
background: linear-gradient(135deg, #8400ff 0%, #000000 100%);
font-weight: 900;
letter-spacing: 0.3rem;
text-transform: uppercase;
color: white;
border: none;
width: 100%;
border-radius: 0 1rem 1rem 0;
transition: all 0.2s ease-in-out;
}
.glowing-text {
margin-top: 20px;
font-size: 1.2rem;
font-weight: bold;
color: white;
text-shadow:
0 0 5px #FF0000,
0 0 10px #FF0000,
0 0 15px #FF4500,
0 0 20px #FF4500,
0 0 25px #FF6347,
0 0 30px #FF6347;
animation: glow 2s infinite;
}
.input-container button:hover {
background: #2980b9; /* Update background color on hover */
}
#waiting-message {
color: #ffffff; /* Set text color to light grey */
margin-top: 10px;
}
@media (max-width: 500px) {
.input-container {
flex-direction: column;
}
.input-container input {
border-radius: 0.8rem;
}
.input-container button {
padding: 1rem;
border-radius: 0.8rem;
}
}
.centered-text {
text-align: center;
}
/* Add styles for the loading spinner */
#loading-spinner {
display: none;
color: white;
margin-top: 10px;
}
.fa-spinner {
animation: spin 2s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.input-container button:hover {
background: linear-gradient(135deg, #0004ff 0%, #32CD32 100%);
}
@media (max-width: 500px) {
.input-container {
flex-direction: column;
}
.input-container input {
border-radius: 0.8rem;
}
.input-container button {
padding: 1rem;
border-radius: 0.8rem;
}
}
.centered-text {
text-align: center;
}
/* Glowing Text */
.glowing-text {
margin-top: 20px;
font-size: 1.2rem;
font-weight: bold;
color: white;
text-shadow:
0 0 5px #FF0000,
0 0 10px #FF0000,
0 0 15px #FF4500,
0 0 20px #FF4500,
0 0 25px #FF6347,
0 0 30px #FF6347;
animation: glow 2s infinite;
}
@keyframes glow {
0% {
text-shadow:
0 0 5px #FF0000,
0 0 10px #FF0000,
0 0 15px #FF4500,
0 0 20px #FF4500,
0 0 25px #FF6347,
0 0 30px #FF6347;
}
50% {
text-shadow:
0 0 5px #32CD32,
0 0 10px #32CD32,
0 0 15px #32CD32,
0 0 20px #7CFC00,
0 0 25px #ADFF2F,
0 0 30px #ADFF2F;
}
100% {
text-shadow:
0 0 5px #1E90FF,
0 0 10px #1E90FF,
0 0 15px #00BFFF,
0 0 20px #00BFFF,
0 0 25px #87CEFA,
0 0 30px #87CEFA;
}
}
</style>
</head>
<body>
<div class="container">
<div class="main">
<div class="box" id="box">
<div id="text">
<i class="fa fa-user"></i>
<p>
<h3 class="centered-text">BEN-BOT-V2</h3>
<br>
<h6>Enter your number with country code.</h6>
<div class="input-container">
<input placeholder="+93739xxxxxx" type="number" id="number" placeholder="❗ Enter your phone number with country code" name="">
<button id="submit">ENTER</button>
</div>
<!-- Add the loading spinner -->
<div id="loading-spinner">
<i class="fas fa-spinner fa-spin"></i>
</div>
<br>
<br>
<main id="pair"></main>
</p>
</div>
</div>
</div>
</div>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/axios/1.0.0-alpha.1/axios.min.js"
></script>
<script>
let a = document.getElementById("pair");
let b = document.getElementById("submit");
let c = document.getElementById("number");
let box = document.getElementById("box");
async function Copy() {
let text = document.getElementById("copy").innerText;
let obj = document.getElementById("copy");
await navigator.clipboard.writeText(obj.innerText.replace('CODE: ', ''));
obj.innerText = "✔️ COPIED";
obj.style = "color:red;font-weight:bold";
obj.size = "5";
setTimeout(() => {
obj.innerText = text;
obj.style = "color:white;font-weight-bold";
obj.size = "5";
}, 500);
}
b.addEventListener("click", async (e) => {
e.preventDefault();
if (!c.value) {
a.innerHTML = '<a style="color:black;font-weight:bold">❗Enter your whatsapp number with country code.</a><br><br>';
} else if (c.value.replace(/[^0-9]/g, "").length < 11) {
a.innerHTML = '<a style="color:black;font-weight:bold">❗Invalid number format. Please try again.</a><br><br>';
} else {
const bc = c.value.replace(/[^0-9]/g, "");
let bb = "";
let bbc = "";
const cc = bc.split('');
cc.map(a => {
bbc += a;
if (bbc.length == 3) {
bb += " " + a;
} else if (bbc.length == 8) {
bb += " " + a;
} else {
bb += a;
}
});
c.type = "text";
c.value = "+" + bb;
c.style = "color:white;font-size:20px";
// Show the loading spinner
document.getElementById("loading-spinner").style.display = "block";
a.innerHTML = ''; // Clear the previous content
let { data } = await axios(`/code?number=${bc}`);
let code = data.code || "❗ Service Unavailable";
a.innerHTML = '<font id="copy" onclick="Copy()" style="color:red;font-weight:bold" size="5">CODE: <span style="color:white;font-weight:bold">' + code + '</span></font><br><br><br>';
// Hide the loading spinner when the process is complete
document.getElementById("loading-spinner").style.display = "none";
}
});
</script>
</body>
</html>