-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
108 lines (103 loc) · 3.33 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Network Info</title>
<style>
@keyframes flicker {
0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
opacity: 1;
}
20%, 24%, 55% {
opacity: 0.4;
}
}
body {
font-family: 'Courier New', Courier, monospace;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #000;
color: #00ff00;
overflow: hidden;
}
.container {
text-align: center;
max-width: 400px;
animation: flicker 2s infinite;
}
h1 {
font-size: 28px;
margin-bottom: 20px;
color: #00ff00;
text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 40px #0f0, 0 0 80px #0f0;
}
p {
font-size: 18px;
margin: 5px 0;
color: #00ff00;
text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
}
.glitch {
text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 20px #00ff00;
animation: flicker 1.5s infinite;
}
.scanline {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: repeating-linear-gradient(
rgba(0, 255, 0, 0.03) 0px,
rgba(0, 255, 0, 0.03) 2px,
transparent 2px,
transparent 4px
);
pointer-events: none;
}
.footer {
position: absolute;
bottom: 10px;
font-size: 14px;
color: #00ff00;
text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
}
</style>
</head>
<body>
<div class="scanline"></div>
<div class="container">
<h1 class="glitch">Your Network Information</h1>
<p id="ip">Fetching IP...</p>
<p id="location">Fetching location...</p>
<p id="isp">Fetching ISP...</p>
</div>
<div class="footer">© Jas0n0ss 2025</div>
<script>
async function fetchISPInfo() {
try {
const response = await fetch('https://ipapi.co/json/');
if (!response.ok) {
throw new Error('Network response was not ok');
}
const data = await response.json();
document.getElementById('ip').textContent = `IP Address: ${data.ip}`;
document.getElementById('location').textContent = `Location: ${data.city}, ${data.region}, ${data.country_name}`;
document.getElementById('isp').textContent = `ISP: ${data.org}`;
} catch (error) {
document.getElementById('ip').textContent = 'Error fetching network information.';
document.getElementById('location').textContent = '';
document.getElementById('isp').textContent = '';
console.error('Fetch error:', error);
}
}
fetchISPInfo();
</script>
</body>
</html>