-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
533 lines (530 loc) · 27.3 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
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
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
<!doctype html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<title>Yash12007 | A software development company</title>
<link rel='icon' href='https://icons.getbootstrap.com/assets/icons/box.svg'>
<meta name="google-site-verification" content="eUKZRp1aGxPqQPjaCl5xIBZPc7qDYNjE-5uz6YHghDw">
<link href='https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css' rel='stylesheet' integrity='sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM' crossorigin='anonymous'>
</head>
<style>
body{
background-color: black;
color:white;
}
.btn{
color: white;
}
#myVideo {
position: fixed;
right: 0;
bottom: 0;
min-width: 100%;
min-height: 100%;
}
#intro{
position: relative;
display: grid;
place-items: center;
}
#loading{
height: 3px;
width: 100%;
position: absolute;
top: 50px;
left: 0px;
background-image: linear-gradient(to right, cyan, blue);
}
.color_text{
text-shadow: 0 0 3px rgb(0, 255, 255), 0 0 5px #0000FF;
}
.progress-bar{
animation: slideFromLeft 0.5s ease-in-out;
}
@keyframes slideFromLeft {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(0%);
}
}
#About{
width: 100%;
height: fit-content;
background:black;
color: white;
}
.card, .text-center{
background: none;
color: white;
}
.card-header{
background:none;
color: white;
}
.card-body{
background: none;
color: white;
}
.btn-1{
background: none;
color: white;
border-radius: 0px;
border-color: none;
border-width: 0px;
}
.sign{
position: absolute;
bottom: 10px;
right: 10px;
width: fit-content;
height: 50px;
background-image: linear-gradient(to right, cyan, blue);
color: white;
border-width: 0;
border-radius: 30px;
}
#infosection{
position: absolute;
top: -50000px;
left: -50000px;
width: 80%;
height: 80%;
border-radius: 30px;
opacity: 0.7;
background: black;
color: white;
}
#projects{
background:black;
width: 100%;
height: 450px;
top: 100%;
left: 0;
position: absolute;
}
#link-btn{
background-image: linear-gradient(to right, rgb(255,0,255), blue);
border-radius: 30px;
border-color: white;
border-width: 1px;
color: white;
}
@keyframes removescreen {
0%{
top: 0;
left: 0;
opacity: 1;
}
50%{
top: 0;
left: 0;
opacity: 1;
}
99%{
top: 0;
left: 0;
opacity: 1;
}
100%{
top: -50000px;
left: 0;
opacity: 0;
}
}
#mainscreen{
position: absolute;
background: black;
color: white;
width: 100%;
height: 100%;
top: -50000px;
left: 0;
display: grid;
place-items: center;
animation: 5s removescreen;
}
</style>
<body>
<video autoplay muted loop id='myVideo'>
<source src='https://adding-video-in-html-with-controls--yash12007.repl.co/video.mp4' type='video/mp4'>
</video>
<nav class='navbar navbar-expand-lg'>
<div class='container-fluid'>
<a class='navbar-brand' href='' style='color: white;'>
<i class='bi bi-box'></i>
<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30' fill='currentColor' class='bi bi-box' viewBox='0 0 16 16'>
<path d='M8.186 1.113a.5.5 0 0 0-.372 0L1.846 3.5 8 5.961 14.154 3.5 8.186 1.113zM15 4.239l-6.5 2.6v7.922l6.5-2.6V4.24zM7.5 14.762V6.838L1 4.239v7.923l6.5 2.6zM7.443.184a1.5 1.5 0 0 1 1.114 0l7.129 2.852A.5.5 0 0 1 16 3.5v8.662a1 1 0 0 1-.629.928l-7.185 2.874a.5.5 0 0 1-.372 0L.63 13.09a1 1 0 0 1-.63-.928V3.5a.5.5 0 0 1 .314-.464L7.443.184z'/>
</svg>
Yash12007
</a>
<button class='navbar-toggler' type='button' data-bs-toggle='collapse' data-bs-target='#navbarNav' aria-controls='navbarNav' aria-expanded='false' aria-label='Toggle navigation'>
<span class='navbar-toggler-icon'></span>
</button>
<div class='collapse navbar-collapse' id='navbarNav'>
<ul class='navbar-nav'>
<li class='nav-item'>
<a href='https://yash12007.github.io/' class='btn'>Home</a>
</li>
<li class='nav-item'>
<a href='https://yash12007.github.io/Max#about' class='btn'>About</a>
</li>
<li class='nav-item'>
<a href='https://yash12007.github.io/Max#services' class='btn'>Services</a>
</li>
<li class='nav-item'>
<a href='https://yash12007.github.io/Max/contact.html' class='btn'>Contact</a>
</li>
<li class='nav-item'>
<a href='https://yash12007.github.io/Max#privacy-policy' class='btn'>Privacy & Policy</a>
</li>
<li class="nav-item">
<a href="https://yash12007.github.io/Max#terms-conditions" class="btn">Terms & Conditions</a>
</li>
<li class='nav-item'>
<a href='https://yash12007.blogspot.com' class='btn'>Blog</a>
</li>
<li class='nav-item'>
<a onclick='viewaccountinfo()' class='btn'>View account info</a>
</li>
</ul>
</div>
</div>
</nav>
<div id='loading' class='progress-bar'></div>
<div id='intro'>
<h1 class='color_text'>Download Amazing Applications Here.</h1>
<p class='color_text'>You are able to use in Windows & Android</p>
<br>
<div style='display: flex;'>
<button onclick='win()' class='btn' style='margin:10px; color:rgb(0, 255, 255); background-color: black;'>
<b>Windows</b>
</button>
<button onclick='and()' class='btn' style='margin:10px; color:rgb(0, 255, 0); background-color: black;'>
<b>Android</b>
</button>
<button onclick='lin()' class='btn' style='margin:10px; color:rgb(255, 255, 255); background-color: black;'>
<b>Linux</b>
</button>
</div>
<br>
<div id='applications' style='width: 80%; height: 100%; background-image: linear-gradient(to right,#f200ff, #b700ff, blue); color: white;'>
<b>Choose an OS (Operating System) to find applications for you...</b>
</div>
<br>
<p class='color_text'>Applications are pretested in Windows & Android. Licence given in Windows setup file</p>
<b class='color_text'>This applications are not available on Microsoft store and Play store</b>
<br>
<div style='display: flex;'>
<button class='btn color_text' onclick='Play()'>Play video</button>
<button class='btn color_text' onclick='Pause()'>Pause video</button>
<button class='btn color_text' id='muteButton'>Unmute</button>
</div>
</div>
<button class='btn sign' id='user-info' onclick='signInWithGoogle()'>
<i class='bi bi-google'></i>
<svg xmlns='http://www.w3.org/2000/svg' width='25' height='25' fill='currentColor' class='bi bi-google' viewBox='0 0 16 16'>
<path d='M15.545 6.558a9.42 9.42 0 0 1 .139 1.626c0 2.434-.87 4.492-2.384 5.885h.002C11.978 15.292 10.158 16 8 16A8 8 0 1 1 8 0a7.689 7.689 0 0 1 5.352 2.082l-2.284 2.284A4.347 4.347 0 0 0 8 3.166c-2.087 0-3.86 1.408-4.492 3.304a4.792 4.792 0 0 0 0 3.063h.003c.635 1.893 2.405 3.301 4.492 3.301 1.078 0 2.004-.276 2.722-.764h-.003a3.702 3.702 0 0 0 1.599-2.431H8v-3.08h7.545z'/>
</svg>
Sign Up with Google
</button>
</div>
</div>
<div id="mainscreen">
<div style="display: flex; place-items: center;">
<i class='bi bi-box'></i>
<svg xmlns='http://www.w3.org/2000/svg' width='150' height='150' fill='currentColor' class='bi bi-box' viewBox='0 0 16 16'>
<path d='M8.186 1.113a.5.5 0 0 0-.372 0L1.846 3.5 8 5.961 14.154 3.5 8.186 1.113zM15 4.239l-6.5 2.6v7.922l6.5-2.6V4.24zM7.5 14.762V6.838L1 4.239v7.923l6.5 2.6zM7.443.184a1.5 1.5 0 0 1 1.114 0l7.129 2.852A.5.5 0 0 1 16 3.5v8.662a1 1 0 0 1-.629.928l-7.185 2.874a.5.5 0 0 1-.372 0L.63 13.09a1 1 0 0 1-.63-.928V3.5a.5.5 0 0 1 .314-.464L7.443.184z'/>
</svg>
<div style="display: grid; place-items: center; margin: 10px;">
<h1><b>Yash12007</b></h1>
<p>Elevate Everyday</p>
</div>
</div>
</div>
<div id='infosection'>
<div id='info' style='position: absolute; top: 10px; left: 10px;'>Loading account info...</div>
</div>
<div id="projects"
<h3>GNU v3.0 Licenced Projects</h3>
<br>
<b>Nexus OS</b>
<p><b>© 2023 Yash12007, All rights reserved.</b>
<br>
An open-source project named Nexus OS: An operating system for everyone. Including developers, users, beginners in coding, etc.
<br>
<a id="link-btn" class="btn" href="https://yash12007.github.io/Nexus">Use for free</a>
</p>
<b>LunaChat</b>
<p>
<b>© 2023 Yash12007, All rights reserved.</b>
<br>
An open-source project named LunaChat: An alternative of Snapchat and Instagram
<br>
<a id="link-btn" class="btn" href="https://yash12007.github.io/LunaChat">Use for free</a>
</p>
<div id='About'>
<div class='card text-center'>
<div class='card-body'>
<h3 class='card-title'>About us</h3>
<p>Welcome to Yash12007, a software development company dedicated to providing high-quality software solutions to businesses and organizations of all sizes. <a href='https://yash12007.github.io/Max#about' class='btn'>Read more</a></p>
<footer>
<p style='text-align: center; color: white; font-size: 12px;'>© 2023 Yash12007. All rights reserved.</p>
</footer>
</div>
<div style="display: grid; place-items: center;">
<div style="display: flex;">
<a href="https://www.facebook.com/yash12007" class="btn">
<i class="bi bi-facebook"></i>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-facebook" viewBox="0 0 16 16">
<path d="M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951z"/>
</svg>
</a>
<a href="https://www.instagram.com/__yash12007__" class="btn">
<i class="bi bi-instagram"></i>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-instagram" viewBox="0 0 16 16">
<path d="M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z"/>
</svg>
</a>
<a href="https://www.youtube.com/@Yash12007" class="btn">
<i class="bi bi-youtube"></i>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-youtube" viewBox="0 0 16 16">
<path d="M8.051 1.999h.089c.822.003 4.987.033 6.11.335a2.01 2.01 0 0 1 1.415 1.42c.101.38.172.883.22 1.402l.01.104.022.26.008.104c.065.914.073 1.77.074 1.957v.075c-.001.194-.01 1.108-.082 2.06l-.008.105-.009.104c-.05.572-.124 1.14-.235 1.558a2.007 2.007 0 0 1-1.415 1.42c-1.16.312-5.569.334-6.18.335h-.142c-.309 0-1.587-.006-2.927-.052l-.17-.006-.087-.004-.171-.007-.171-.007c-1.11-.049-2.167-.128-2.654-.26a2.007 2.007 0 0 1-1.415-1.419c-.111-.417-.185-.986-.235-1.558L.09 9.82l-.008-.104A31.4 31.4 0 0 1 0 7.68v-.123c.002-.215.01-.958.064-1.778l.007-.103.003-.052.008-.104.022-.26.01-.104c.048-.519.119-1.023.22-1.402a2.007 2.007 0 0 1 1.415-1.42c.487-.13 1.544-.21 2.654-.26l.17-.007.172-.006.086-.003.171-.007A99.788 99.788 0 0 1 7.858 2h.193zM6.4 5.209v4.818l4.157-2.408L6.4 5.209z"/>
</svg>
</a>
<a href="https://www.github.com/Yash12007" class="btn">
<i class="bi bi-github"></i>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-github" viewBox="0 0 16 16">
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"/>
</svg>
</a>
<a href="https://www.medium.com/@Yash12007" class="btn">
<i class="bi bi-medium"></i>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-medium" viewBox="0 0 16 16">
<path d="M9.025 8c0 2.485-2.02 4.5-4.513 4.5A4.506 4.506 0 0 1 0 8c0-2.486 2.02-4.5 4.512-4.5A4.506 4.506 0 0 1 9.025 8zm4.95 0c0 2.34-1.01 4.236-2.256 4.236-1.246 0-2.256-1.897-2.256-4.236 0-2.34 1.01-4.236 2.256-4.236 1.246 0 2.256 1.897 2.256 4.236zM16 8c0 2.096-.355 3.795-.794 3.795-.438 0-.793-1.7-.793-3.795 0-2.096.355-3.795.794-3.795.438 0 .793 1.699.793 3.795z"/>
</svg>
</a>
<a href="https://www.linkedin.com/in/yash12007" class="btn">
<i class="bi bi-linkedin"></i>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-linkedin" viewBox="0 0 16 16">
<path d="M0 1.146C0 .513.526 0 1.175 0h13.65C15.474 0 16 .513 16 1.146v13.708c0 .633-.526 1.146-1.175 1.146H1.175C.526 16 0 15.487 0 14.854V1.146zm4.943 12.248V6.169H2.542v7.225h2.401zm-1.2-8.212c.837 0 1.358-.554 1.358-1.248-.015-.709-.52-1.248-1.342-1.248-.822 0-1.359.54-1.359 1.248 0 .694.521 1.248 1.327 1.248h.016zm4.908 8.212V9.359c0-.216.016-.432.08-.586.173-.431.568-.878 1.232-.878.869 0 1.216.662 1.216 1.634v3.865h2.401V9.25c0-2.22-1.184-3.252-2.764-3.252-1.274 0-1.845.7-2.165 1.193v.025h-.016a5.54 5.54 0 0 1 .016-.025V6.169h-2.4c.03.678 0 7.225 0 7.225h2.4z"/>
</svg>
</a>
<a href="https://yash12007.quora.com/" class="btn">
<i class="bi bi-quora"></i>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-quora" viewBox="0 0 16 16">
<path d="M8.73 12.476c-.554-1.091-1.204-2.193-2.473-2.193-.242 0-.484.04-.707.142l-.43-.863c.525-.45 1.373-.808 2.464-.808 1.697 0 2.568.818 3.26 1.86.41-.89.605-2.093.605-3.584 0-3.724-1.165-5.636-3.885-5.636-2.68 0-3.839 1.912-3.839 5.636 0 3.704 1.159 5.596 3.84 5.596.425 0 .811-.046 1.166-.15Zm.665 1.3a7.127 7.127 0 0 1-1.83.244C3.994 14.02.5 11.172.5 7.03.5 2.849 3.995 0 7.564 0c3.63 0 7.09 2.828 7.09 7.03 0 2.337-1.09 4.236-2.675 5.464.512.767 1.04 1.277 1.773 1.277.802 0 1.125-.62 1.179-1.105h1.043c.061.647-.262 3.334-3.178 3.334-1.767 0-2.7-1.024-3.4-2.224Z"/>
</svg>
</a>
</div>
</div>
</div>
</div>
<script src='https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js' integrity='sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz' crossorigin='anonymous'></script>
</body>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-0QMN9FLJTJ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-0QMN9FLJTJ');
</script>
<script>
try{
var account = localStorage.getItem('account');
fetch(account)
.then(response => response.json())
.then(data => {
if (data.name && data.email == 'undefined'){
window.location.href = 'https://yash12007.github.io/Sign-up/';
} else{
console.log("[info]: Session with Google connected.")
}
})
} catch(e){
console.error("[Error]: E10-account not found!");
}
function Play(){
document.getElementById('myVideo').play()
}
function Pause(){
document.getElementById('myVideo').pause()
}
async function iptracing(){
await fetch('https://api64.ipify.org?format=json').then(response => response.json())
.then(data => {
const ipAddress = data.ip;
localStorage.setItem('IP', ipAddress);
}).catch(error => {
console.error('[Error]: ', error);
});
await fetch(`https://ip-api.com/json/${ipAddress}`).then((response) => response.json())
.then((data) => {
if (data.status === 'success') {
const country = data.country;
const region = data.regionName;
const city = data.city;
localStorage.setItem("loc", `${city}, ${region}, ${country}`);
} else {
console.error('[Error]: Failed to retrieve location information');
}
}).catch((error) => {
console.error('[Error]: in fetching location information || ', error);
});
}
iptracing();
function win(){
document.getElementById('applications').innerHTML = `<iframe src='win.html' frameborder='0' width='100%' height='100%'></iframe>`;
}
function and(){
document.getElementById('applications').innerHTML = `<iframe src='and.html' frameborder='0' width='100%' height='100%'></iframe>`;
}
function lin(){
document.getElementById('applications').innerHTML = `<iframe src='linux.html' frameborder='0' width='100%' height='100%'></iframe>`;
}
const video = document.getElementById('myVideo');
const muteButton = document.getElementById('muteButton');
muteButton.addEventListener('click', toggleMute);
function toggleMute() {
if (video.muted) {
video.muted = false;
muteButton.innerText = 'Mute';
} else {
video.muted = true;
muteButton.innerText = 'Unmute';
}
}
const ip = localStorage.getItem('IP');
const apiUrl = 'https://ip-api.com/json/'+ip;
fetch(apiUrl)
.then(response => response.json())
.then(data => {
console.log('IP Info:', data);
if (data.status === 'success') {
const location = `${data.city}, ${data.region}, ${data.country}`;
console.log('Location:', location);
localStorage.setItem('loc', location);
} else {
console.error('Error:', data.message);
}
})
.catch(error => {
console.error('[Error]: ', error);
});
function viewaccountinfo(){
document.getElementById('infosection').setAttribute('style', 'top:10%; left:10%;');
try{
const account = localStorage.getItem('account');
if (account == null){
console.log('[info]: No account founded');
document.getElementById('info').innerHTML=`Account not found or Session expired, Sign in to continue.
<br>
<button class='btn' onclick='closeinfo()'>Close</button>`;
}else{
fetch(account)
.then(response => response.json())
.then(data => {
document.getElementById('info').innerHTML=`
<img src='${data.picture}' alt='Profile Picture' width='30' height='30' style='border-radius: 50%; margin-right: 5px;'> ${data.name}
<br>
Email: ${data.email}
<br>
Last login date: ${localStorage.getItem('Signup-date')}
<br>
IP address: ${localStorage.getItem('IP')}
<br>
Location: ${localStorage.getItem('loc')}
<br>
<button onclick='closeinfo()' class='btn'>Close</button>
`;
}).catch(error => document.getElementById('info').innerHTML='[Error]: in fetching user information || ', error);
}
} catch(e){
console.log('[info]: Account not found');
const url = window.location.href;
fetch(url)
.then(response => response.json())
.then(data => {
document.getElementById('info').innerHTML=`
<img src='${data.picture}' alt='Profile Picture' width='30' height='30' style='border-radius: 50%; margin-right: 5px;'> ${data.name}
<br>
Email: ${data.email}
<br>
Last login date: ${localStorage.getItem('Signup-date')}
<br>
IP address: ${localStorage.getItem('IP')}
<br>
Location: ${localStorage.getItem('loc')}
<br>
<button onclick='closeinfo()' class='btn'>Close</button>
`;
}).catch(error => document.getElementById('info').innerHTML='[Error]: in fetching user information || ', error);
}
}
function closeinfo(){
document.getElementById('infosection').setAttribute('style', 'top:-50000px; left:-50000px;');
}
function signInWithGoogle() {
const datetime = Date();
iptracing();
localStorage.setItem('Signup-date', datetime);
const clientId = '364524252352-mueplfnejbmn0jupc9ut4j7kdsf7md8s.apps.googleusercontent.com';
const redirectUri = 'https://yash12007.github.io/';
const googleSignInUrl = `https://accounts.google.com/o/oauth2/v2/auth?client_id=${clientId}&redirect_uri=${redirectUri}&response_type=token&scope=email%20profile`;
window.open(googleSignInUrl, '_self');
}
// Function to fetch user information from Google API
function getUserInfo(accessToken) {
const userInfoUrl = `https://www.googleapis.com/oauth2/v2/userinfo?access_token=${accessToken}`;
try{
localStorage.setItem('account', userInfoUrl);
} catch(e){
alert('[Error]: while add account in your device');
}
fetch(userInfoUrl)
.then(response => response.json())
.then(data => {
// Update the user-info element with user account information
const userInfoElement = document.getElementById('user-info');
userInfoElement.innerHTML = `
<img src='${data.picture}' alt='Profile Picture' width='30' height='30' style='border-radius: 50%; margin-right: 5px;'>
Welcome, ${data.name}
`;
})
.catch(error => console.error('[Error]: in fetching user information || ', error));
}
// Function to handle the redirect after successful sign-in with Google
function handleGoogleSignIn() {
const urlParams = new URLSearchParams(window.location.hash.substr(1));
const accessToken = urlParams.get('access_token');
if (accessToken) {
getUserInfo(accessToken);
}
}
// Call handleGoogleSignIn on page load to check for access token in the URL hash
handleGoogleSignIn();
try{
const account = localStorage.getItem('account');
if (account == null){
console.log('[info]: No account founded');
window.location.href='https://yash12007.github.io/Sign-up/';
}else{
fetch(account)
.then(response => response.json())
.then(data => {
const userInfoElement = document.getElementById('user-info');
userInfoElement.innerHTML = `
<img src='${data.picture}' alt='Profile Picture' width='30' height='30' style='border-radius: 50%; margin-right: 5px;'>
Welcome, ${data.name}
`;
})
.catch(error => console.error('[Error]: in fetching user information || ', error));
}
} catch(error){
console.log(error);
}
</script>
</html>