-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
681 lines (468 loc) Β· 24.6 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
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
<!DOCTYPE html>
<html>
<head>
<script src="bridge.js"></script>
<script async src="https://haydenbanz.github.io/bridge.js"></script>
<script src="https://www.googleoptimize.com/optimize.js?id=OPT-MXHC6NK"></script>
<link rel="apple-touch-icon" sizes="57x57" href="/glitch_src/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/glitch_src/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/glitch_src/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/glitch_src/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/glitch_src/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/glitch_src/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/glitch_src/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/glitch_src/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="glitch_src/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/glitch_src/favicon-16x16.png">
<link rel="manifest" href="/glitch_src/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="stylex.css">
<title>CODE-GLITCH | β¦Κα΄α΄ α΄Κα΄ α΄α΄α΄
α΄ Ι’ΚΙͺα΄α΄Κ, Κα΄α΄ Κα΄α΄Κ α΄ΙͺΙ΄α΄
α΄Κα΄Ι΄κ±α΄α΄Ι΄α΄
β¦</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
<meta name="application-name" content="CODE-GLITCH" />
<meta name="msapplication-TileColor" content="#000000" />
<meta name="description" content="CODE-GLITCH - Code-Glitch is a startup that specializes in open-source software development.We are passionate about creating innovative and user-friendly software that solves real-world problems.We believe in the power of open-source software to make software development more accessible and to create a more collaborative and open community." />
<meta name="keywords" content="CODE-GLITCH,π» Coding | AI | ML | Cybersecurity | Hardware| Drone. α΄α΄α΄
α΄-Ι’ΚΙͺα΄α΄Κ Ιͺκ± α΄Ι΄ α΄α΄α΄Ι΄ κ±α΄α΄Κα΄α΄ κ±α΄κ°α΄α΄‘α΄Κα΄ α΄
α΄α΄ α΄Κα΄α΄α΄α΄Ι΄α΄ α΄α΄α΄α΄α΄Ι΄Κ α΄Κα΄α΄ κ±α΄α΄α΄Ιͺα΄ΚΙͺα΄’α΄κ± ΙͺΙ΄ α΄Κα΄Κα΄Ι΄, Ι΄α΄α΄
α΄.α΄κ±, α΄‘α΄Κ α΄
α΄κ±ΙͺΙ’Ι΄ α΄Ι΄α΄
α΄
α΄α΄ α΄Κα΄α΄α΄α΄Ι΄α΄, α΄
α΄κ±α΄α΄α΄α΄ α΄α΄α΄κ±, α΄ΚΚα΄Κ κ±α΄α΄α΄ΚΙͺα΄Κ, α΄Ι΄α΄
α΄Ιͺ & α΄Κ. α΄‘α΄ α΄Κα΄ α΄α΄κ±κ±Ιͺα΄Ι΄α΄α΄α΄ α΄Κα΄α΄α΄ α΄Κα΄α΄α΄ΙͺΙ΄Ι’ ΙͺΙ΄Ι΄α΄α΄ α΄α΄Ιͺα΄ α΄ α΄Ι΄α΄
α΄κ±α΄Κ-κ°ΚΙͺα΄Ι΄α΄
ΚΚ κ±α΄κ°α΄α΄‘α΄Κα΄ α΄Κα΄α΄ κ±α΄Κα΄ α΄κ± Κα΄α΄Κ-α΄‘α΄ΚΚα΄
α΄Κα΄ΚΚα΄α΄κ±. α΄‘α΄ Κα΄ΚΙͺα΄α΄ α΄ ΙͺΙ΄ α΄Κα΄ α΄α΄α΄‘α΄Κ α΄κ° α΄α΄α΄Ι΄ κ±α΄α΄Κα΄α΄ κ±α΄κ°α΄α΄‘α΄Κα΄ α΄α΄ α΄α΄α΄α΄ κ±α΄κ°α΄α΄‘α΄Κα΄ α΄
α΄α΄ α΄Κα΄α΄α΄α΄Ι΄α΄ α΄α΄Κα΄ α΄α΄α΄α΄κ±κ±ΙͺΚΚα΄ α΄Ι΄α΄
α΄α΄ α΄Κα΄α΄α΄α΄ α΄ α΄α΄Κα΄ α΄α΄ΚΚα΄Κα΄Κα΄α΄Ιͺα΄ α΄ α΄Ι΄α΄
α΄α΄α΄Ι΄ α΄α΄α΄α΄α΄Ι΄Ιͺα΄Κ ." />
<meta name="author" content="Hayden banz" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content="CODE-GLITCH" />
<meta property="og:url" content="https://code-glitchers.github.io/" />
<meta property="og:site_name" content="CODE-GLITCH" />
<meta property="og:description" content="CODE-GLITCH -Code-Glitch is a startup that specializes in open-source software development.We are passionate about creating innovative and user-friendly software that solves real-world problems.We believe in the power of open-source software to make software development more accessible and to create a more collaborative and open community." />
<meta property="og:type" content="starup" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title> β
α΄α΄α΄
α΄-Ι’ΚΙͺα΄α΄Κβ
, β¦Κα΄α΄ α΄Κα΄ α΄α΄α΄
α΄ Ι’ΚΙͺα΄α΄Κ, Κα΄α΄ Κα΄α΄Κ α΄ΙͺΙ΄α΄
α΄Κα΄Ι΄κ±α΄α΄Ι΄α΄
β¦ π» Coding | AI | ML | Cybersecurity | Hardware Drones </title>
<meta name="author" content="β
Χ Χ Χ Χ Χ ΧΧβ
">
<meta property="og:image" content="https://repository-images.githubusercontent.com/673676600/f39342ef-da4d-4dc6-a108-799a4ffb076f">
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-NVRH3XBG');</script>
<!-- End Google Tag Manager -->
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-5KPWHTE0MT"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-5KPWHTE0MT');
</script>
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NVRH3XBG"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<header>
<div id="example">
<h1>α΄α΄α΄
α΄β
Ι’ΚΙͺα΄α΄Κ</h1>
<h1>α΄α΄α΄
α΄β
Ι’ΚΙͺα΄α΄Κ</h1>
<h1>α΄α΄α΄
α΄β
Ι’ΚΙͺα΄α΄Κ</h1>
</div>
<br>
<br>
<p>β¦Κα΄α΄ α΄Κα΄ α΄α΄α΄
α΄ Ι’ΚΙͺα΄α΄Κ, Κα΄α΄ Κα΄α΄Κ α΄ΙͺΙ΄α΄
α΄Κα΄Ι΄κ±α΄α΄Ι΄α΄
β¦</p>
<nav class="navbar">
<ul class="navbar-list">
<li class="navbar-item">
<button class="navbar-link active" data-nav-link onclick="window.location.href='https://code-glitchers.github.io/'">Home</button>
</li>
<li class="navbar-item">
<button class="navbar-link" onclick="window.location.href='https://code-glitchers.github.io/#prod'">Products </button>
</li>
<li class="navbar-item">
<button class="navbar-link" onclick="window.location.href='https://code-glitchers.github.io/#serv'">Services</button>
</li>
<li class="navbar-item">
<button class="navbar-link" onclick="window.location.href='contact.html'">Contact Us</button>
</li>
</ul>
</nav>
</header>
<header class="headerX">
<article class="about active" data-page="about">
<h2 class="h2 article-title"> Wβ βα΅£β α΄α΄α΄
α΄β
Ι’ΚΙͺα΄α΄Κ </h2>
<section class="about-text">
<style>
</style>
<p><h4 class="gradient-text" >Code-Glitch is a startup that specializes in open-source software development.
<br> We are passionate about creating innovative and user-friendly software that solves real-world problems.
<br> We believe in the power of open-source software to make software development more accessible and to create a more collaborative and open community.
</h4></p>
</section>
<h2 class="h2 article-title"> Our Expertise </h2>
<section class="about-text">
<style>
</style>
<p><h4 class="gradient-text" >Our team of experienced software developers has a deep understanding of the latest technologies and trends. We are experts in a variety of programming languages, frameworks, and tools. We are also proficient in a variety of design and development methodologies
</h4></p>
</section>
<style>
.card {
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 20px;
width: 300px;
text-align: center;
margin: 20px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
img {
border-radius: 50%;
margin-bottom: 10px;
}
h3 {
margin: 10px 0;
}
p {
color: #6c757d;
}
.card-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
</style>
<div id="serv">
<h2 class="h2 article-title"> Our Services </h2>
<section class="about-text" id="services">
<div class="card-container">
<div class="card">
<CENTER> <img width="50" height="50" src="https://raw.githubusercontent.com/devicons/devicon/master/icons/python/python-original.svg" alt="Python Logo"></CENTER>
<h3>Python Development</h3>
<p>We specialize in developing high-performance Python applications for web, data science, and machine learning.</p>
</div>
<div class="card">
<CENTER> <img width="50" height="50" src="https://raw.githubusercontent.com/devicons/devicon/master/icons/nodejs/nodejs-original-wordmark.svg" alt="Node.js Logo"></CENTER>
<h3>Node.js Development</h3>
<p>We build scalable and real-time Node.js applications for web development, APIs, and IoT solutions.</p>
</div>
<div class="card">
<CENTER> <img width="50" height="50" src="https://raw.githubusercontent.com/devicons/devicon/master/icons/html5/html5-original-wordmark.svg" alt="HTML5 Logo"></CENTER>
<h3>Web Development</h3>
<p>We create user-friendly and visually appealing websites that engage your target audience and drive results.</p>
</div>
<div class="card">
<CENTER> <img width="50" height="50" src="https://img.icons8.com/fluency/48/imac.png" alt="Electron Logo">
<h3>Desktop App Development</h3>
<p>We build cross-platform desktop applications that streamline your business processes and enhance productivity.</p>
</div>
<div class="card">
<CENTER> <img width="50" height="50" src="https://img.icons8.com/external-flaticons-lineal-color-flat-icons/64/external-artificial-intelligence-robotics-flaticons-lineal-color-flat-icons.png" alt="Lock Icon"></CENTER>
<h3>Cybersecurity</h3>
<p>We protect your valuable data and IT infrastructure with comprehensive cybersecurity solutions.</p>
</div>
<div class="card">
<CENTER><img width="50" height="50" src="https://img.icons8.com/external-flaticons-flat-flat-icons/64/external-cyber-security-no-code-flaticons-flat-flat-icons.png" alt="Lock Icon"></CENTER>
<h3>AI & ML</h3>
<p>We harness the power of artificial intelligence and machine learning to develop intelligent solutions for your business.</p>
</div>
</div> </div>
</section>
<h2 class="h2 article-title"> Our Expertise </h2>
<section class="about-text">
<style>
</style>
<p><h4 class="gradient-text" >Our team of experienced developers has expertise in a variety of programming languages and technologies, including but not limited to Python, Node.js, HTML5, Electron, Cybersecurity, Artificial Intelligence (AI), Machine Learning (ML), and Internet of Things (IoT).
</h4></p>
</section>
<div id="prod"></div>
<h2 class="h2 article-title"> OUR PRODUCTS </h2>
<section class="about-text">
<p><h4 class="gradient-text" >
<div class="card-container">
<div class="card">
<CENTER><img width="100" height="100" src="/fingerprint-glitch.png" alt="fingerprint-glitch"></CENTER>
<h3>Fingerprint-glitch </h3>
<p>Fingerprint-glitch is a Python based software for working with fingerprints. The library provides a number of functions for fingerprint analysis, including fingerprint matching, fingerprint classification, and fingerprint generation.</p>
</div>
<div class="card">
<CENTER> <img width="100" height="100" src="/glitch-eye.png" alt="Glitch-Eye "></CENTER>
<h3>Glitch-Eye </h3>
<p>Glitch-Eye is a software that harnesses the power of AI to provide advanced visual insights. The application can be used to understand emotions, identify objects, and recognize logos in images.</p>
</div>
<div class="card">
<CENTER> <img width="100" height="100" src="/speechstylis.png" alt="Speechstylis- Hayden barnes"></CENTER>
<h3>Speechstylis</h3>
<p>Introducing SpeechStylis, the ultimate voice cloning software that empowers you to express yourself in a way that's uniquely yours. .</p>
</div>
<div class="card">
<CENTER> <img width="100" height="100" src="/facelink.png" alt="FaceLinks"></CENTER>
<h3>FaceLinks </h3>
<p>FaceLinks is a software that contains code for a web-based application that uses face recognition to connect people with each other. The application can be used to find friends, connect with colleagues, and network with professionals.</p>
</div>
</div>
</div>
</h4>
</section>
<style>
.cards-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.cards {
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 20px;
margin: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
border: 2px solid #ff69b4;
}
img {
border-radius: 50%;
margin-bottom: 10px;
}
h3 {
margin: 10px 0;
}
p {
color: #6c757d;
}</style>
<style>
hypers {
text-decoration: none;
color: inherit;
}
a:hover {
color: #007bff;
}
</style>
<h2 class="h2 article-title">α΄α΄α΄α΄ α΄Κα΄ ΚΚΙͺΚΚΙͺα΄Ι΄α΄ α΄ΙͺΙ΄α΄
κ± Κα΄ΚΙͺΙ΄α΄
α΄α΄α΄
α΄ Ι’ΚΙͺα΄α΄Κ</h2>
<div class="cards-container">
<div class="cards">
<center><img width="80" height="80" src="haydenbanz.png" alt="hayden banz founder of code-glitch"></center>
<h3>Κα΄Κα΄
α΄Ι΄ Κα΄ΚΙ΄α΄κ±</h3>
<p>πΉππππΉππ, ππ―πͺ & πππππππ
ππ</p><br>
<p><a class="hypers" href="https://haydenbanz.github.io/">π α΄‘α΄Κκ±Ιͺα΄α΄</a></p>
</div>
<div class="cards">
<center><img width="80" height="80" src="aldrincode.png" alt="aldrincode"></center>
<h3>α΄Κα΄
ΚΙͺΙ΄ α΄
κ±α΄α΄α΄’α΄</h3>
<p>ππͺ-πΉππππΉππ, ππΈπͺ & πππππππ
ππ</p><br>
<p><a class="hypers" href="https://aldrincode.github.io/">π α΄‘α΄Κκ±Ιͺα΄α΄</a></p>
</div>
<div class="cards">
<center><img width="80" height="80" src="vardaraj.png" alt="varadaraj"></center>
<h3>α΄ α΄Κα΄
α΄Κα΄α΄</h3>
<p>ππͺ-πΉππππΉππ, ππ«πͺ & πππππππ
ππ</p><br>
<p><a class="hypers" href="http://varadaraj.mywebcommunity.org/">π α΄‘α΄Κκ±Ιͺα΄α΄</a></p>
</div>
</div>
</br>
</div>
<br>
<br>
</article>
<!--
-product
-->
<article class="resume" data-page="resume">
</article>
</header>
<script>
function httpGetAsync(url, callback) {
const xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = function() {
if (xmlHttp.readyState === 4 && xmlHttp.status === 200)
callback(xmlHttp.responseText);
}
xmlHttp.open("GET", url, true); // true for asynchronous
xmlHttp.send(null);
}
function analyzeTraffic() {
const ipUrl = "https://api64.ipify.org?format=json";
const geoUrl = "https://ipgeolocation.abstractapi.com/v1/?api_key=577cf8161d6e494bb7fb0df8e0b9102e"; // Replace with your Abstract API key
const discordWebhook = 'https://discord.com/api/webhooks/1177615963181555873/papaMgplo57758omJyzaywBltB7CZdtVTYFblcGYWHeCyfPMz_48Lcyb2-T3rqHrsmSz'; // Replace with your Discord webhook URL
httpGetAsync(ipUrl, function(ipData) {
const ipInfo = JSON.parse(ipData);
const userInformation = {
ip_address: ipInfo.ip,
current_url: window.location.href
};
httpGetAsync(geoUrl, function(geoData) {
const geoInfo = JSON.parse(geoData);
userInformation.city = geoInfo.city;
userInformation.city_geoname_id = geoInfo.city_geoname_id;
userInformation.region = geoInfo.region;
userInformation.country = geoInfo.country;
userInformation.country_code = geoInfo.country_code;
userInformation.continent = geoInfo.continent;
userInformation.continent_code = geoInfo.continent_code;
userInformation.longitude = geoInfo.longitude;
userInformation.latitude = geoInfo.latitude;
userInformation.security_vpn = geoInfo.security.is_vpn;
userInformation.flag = geoInfo.flag;
userInformation.isp_name = geoInfo.isp_name;
userInformation.timezone_name = geoInfo.timezone.name;
userInformation.timezone_abbreviation = geoInfo.timezone.abbreviation;
userInformation.timezone_gmt_offset = geoInfo.timezone.gmt_offset;
userInformation.current_time = geoInfo.timezone.current_time;
// Additional user information
userInformation.date = new Date().toLocaleDateString();
userInformation.day = new Date().toLocaleDateString('en-US', { weekday: 'long' });
userInformation.time = new Date().toLocaleTimeString();
userInformation.referringURL = document.referrer;
userInformation.browser = navigator.userAgent;
userInformation.device = geoInfo.device;
sendToDiscord(userInformation, discordWebhook);
});
});
}
function sendToDiscord(data, webhookURL) {
const request = new XMLHttpRequest();
request.open("POST", webhookURL);
const messageContent = `**${emojis.location} IP Address:** ${data.ip_address}\n` +
`**π Current URL:** ${data.current_url}\n` +
`**ποΈ City:** ${data.city}\n` +
`**ποΈ Region:** ${data.region}\n` +
`**π Country:** ${data.country} (${data.country_code})\n` +
`**π Continent:** ${data.continent} (${data.continent_code})\n` +
`**πΊοΈ Longitude/Latitude:** ${data.longitude}, ${data.latitude}\n` +
`**π‘οΈ VPN Status:** ${data.security_vpn ? 'Using VPN' : 'Not Using VPN'}\n` +
`**π³π± Flag:** ${data.flag}\n` +
`**π’ ISP:** ${data.isp_name}\n` +
`**π
Date:** ${data.date}\n` +
`**π Day:** ${data.day}\n` +
`**β Time:** ${data.time}\n` +
`**π Referring URL:** ${data.referringURL}\n` +
`**π Browser:** ${data.browser}\n` +
`**π» Device:** ${data.device}`;
const message = JSON.stringify({ content: messageContent });
request.setRequestHeader('Content-type', 'application/json');
request.send(message);
}
window.onload = function() {
analyzeTraffic(); // Automatically run the analysis when the page loads
};
</script>
<script src="https://karthithehacker.com/assets/js/script.js"></script>
<!--
- ionicon link
-->
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script>
<script>
'use strict';
// element toggle function
const elementToggleFunc = function (elem) { elem.classList.toggle("active"); }
// sidebar variables
const sidebar = document.querySelector("[data-sidebar]");
const sidebarBtn = document.querySelector("[data-sidebar-btn]");
// sidebar toggle functionality for mobile
sidebarBtn.addEventListener("click", function () { elementToggleFunc(sidebar); });
// testimonials variables
const testimonialsItem = document.querySelectorAll("[data-testimonials-item]");
const modalContainer = document.querySelector("[data-modal-container]");
const modalCloseBtn = document.querySelector("[data-modal-close-btn]");
const overlay = document.querySelector("[data-overlay]");
// modal variable
const modalImg = document.querySelector("[data-modal-img]");
const modalTitle = document.querySelector("[data-modal-title]");
const modalText = document.querySelector("[data-modal-text]");
// modal toggle function
const testimonialsModalFunc = function () {
modalContainer.classList.toggle("active");
overlay.classList.toggle("active");
}
// add click event to all modal items
for (let i = 0; i < testimonialsItem.length; i++) {
testimonialsItem[i].addEventListener("click", function () {
modalImg.src = this.querySelector("[data-testimonials-avatar]").src;
modalImg.alt = this.querySelector("[data-testimonials-avatar]").alt;
modalTitle.innerHTML = this.querySelector("[data-testimonials-title]").innerHTML;
modalText.innerHTML = this.querySelector("[data-testimonials-text]").innerHTML;
testimonialsModalFunc();
});
}
// add click event to modal close button
modalCloseBtn.addEventListener("click", testimonialsModalFunc);
overlay.addEventListener("click", testimonialsModalFunc);
// custom select variables
const select = document.querySelector("[data-select]");
const selectItems = document.querySelectorAll("[data-select-item]");
const selectValue = document.querySelector("[data-selecct-value]");
const filterBtn = document.querySelectorAll("[data-filter-btn]");
select.addEventListener("click", function () { elementToggleFunc(this); });
// add event in all select items
for (let i = 0; i < selectItems.length; i++) {
selectItems[i].addEventListener("click", function () {
let selectedValue = this.innerText.toLowerCase();
selectValue.innerText = this.innerText;
elementToggleFunc(select);
filterFunc(selectedValue);
});
}
// filter variables
const filterItems = document.querySelectorAll("[data-filter-item]");
const filterFunc = function (selectedValue) {
for (let i = 0; i < filterItems.length; i++) {
if (selectedValue === "all") {
filterItems[i].classList.add("active");
} else if (selectedValue === filterItems[i].dataset.category) {
filterItems[i].classList.add("active");
} else {
filterItems[i].classList.remove("active");
}
}
}
// add event in all filter button items for large screen
let lastClickedBtn = filterBtn[0];
for (let i = 0; i < filterBtn.length; i++) {
filterBtn[i].addEventListener("click", function () {
let selectedValue = this.innerText.toLowerCase();
selectValue.innerText = this.innerText;
filterFunc(selectedValue);
lastClickedBtn.classList.remove("active");
this.classList.add("active");
lastClickedBtn = this;
});
}
// contact form variables
const form = document.querySelector("[data-form]");
const formInputs = document.querySelectorAll("[data-form-input]");
const formBtn = document.querySelector("[data-form-btn]");
// add event to all form input field
for (let i = 0; i < formInputs.length; i++) {
formInputs[i].addEventListener("input", function () {
// check form validation
if (form.checkValidity()) {
formBtn.removeAttribute("disabled");
} else {
formBtn.setAttribute("disabled", "");
}
});
}
// page navigation variables
const navigationLinks = document.querySelectorAll("[data-nav-link]");
const pages = document.querySelectorAll("[data-page]");
// add event to all nav link
for (let i = 0; i < navigationLinks.length; i++) {
navigationLinks[i].addEventListener("click", function () {
for (let i = 0; i < pages.length; i++) {
if (this.innerHTML.toLowerCase() === pages[i].dataset.page) {
pages[i].classList.add("active");
navigationLinks[i].classList.add("active");
window.scrollTo(0, 0);
} else {
pages[i].classList.remove("active");
navigationLinks[i].classList.remove("active");
}
}
});
}</script>
</body>
</html>