-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
259 lines (258 loc) · 8.23 KB
/
index.html
File metadata and controls
259 lines (258 loc) · 8.23 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
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title>PulseView — хакерская панель мониторинга</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: #010101;
font-family: 'JetBrains Mono', 'Courier New', monospace;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
position: relative;
}
body::before {
content: "";
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: repeating-linear-gradient(0deg, rgba(0,255,255,0.02) 0px, rgba(255,0,255,0.02) 2px, transparent 2px, transparent 8px);
pointer-events: none;
z-index: 1;
}
.snow {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 2;
}
.snow i {
position: absolute;
background: #0ff;
border-radius: 50%;
opacity: 0.3;
box-shadow: 0 0 4px cyan;
animation: fall linear infinite;
}
@keyframes fall {
to { transform: translateY(100vh); }
}
.dashboard {
position: relative;
z-index: 10;
max-width: 1200px;
width: 100%;
background: rgba(0, 0, 0, 0.75);
backdrop-filter: blur(8px);
border: 1px solid #0ff;
border-radius: 32px;
padding: 24px;
box-shadow: 0 0 35px rgba(0,255,255,0.2);
}
.header {
text-align: center;
border-bottom: 1px solid #0ff;
padding-bottom: 16px;
margin-bottom: 24px;
}
.header h1 {
color: #0ff;
text-shadow: 0 0 6px #0ff;
font-size: 2rem;
}
.grid {
display: flex;
flex-wrap: wrap;
gap: 24px;
}
.panel {
flex: 1;
background: #000000aa;
border: 1px solid #0ff;
border-radius: 24px;
padding: 20px;
}
.panel h3 {
color: #0ff;
margin-bottom: 16px;
font-size: 1.2rem;
}
.log {
height: 200px;
overflow-y: auto;
font-size: 0.8rem;
font-family: monospace;
color: #0f0;
}
.log div {
margin-bottom: 6px;
border-left: 2px solid #0ff;
padding-left: 8px;
}
.metric {
margin-bottom: 20px;
}
.metric span {
color: #0ff;
}
.bar {
background: #0f0;
height: 8px;
border-radius: 4px;
margin-top: 6px;
width: 0%;
transition: width 0.4s;
}
canvas {
width: 100%;
height: 150px;
background: #000;
border: 1px solid #0ff;
border-radius: 16px;
}
.footer {
margin-top: 24px;
text-align: center;
color: #0ff;
font-size: 0.7rem;
border-top: 1px solid #0ff;
padding-top: 16px;
}
@media (max-width: 800px) {
.grid {
flex-direction: column;
}
}
</style>
</head>
<body>
<div class="snow" id="snow"></div>
<div class="dashboard">
<div class="header">
<h1>❄️ PulseView</h1>
<p style="color:#0ff;">мониторинг сети • холодный старт</p>
</div>
<div class="grid">
<div class="panel">
<h3>🖥️ СИСТЕМНЫЕ МЕТРИКИ</h3>
<div class="metric">
<span>CPU LOAD: <span id="cpuVal">42</span>%</span>
<div class="bar" id="cpuBar"></div>
</div>
<div class="metric">
<span>RAM: <span id="ramVal">58</span>%</span>
<div class="bar" id="ramBar"></div>
</div>
<div class="metric">
<span>NET TX/RX: <span id="netVal">14.2</span> Mbps</span>
<div class="bar" id="netBar"></div>
</div>
</div>
<div class="panel">
<h3>🌐 АКТИВНЫЕ СОЕДИНЕНИЯ</h3>
<canvas id="netCanvas" height="140"></canvas>
</div>
</div>
<div class="grid" style="margin-top:24px">
<div class="panel">
<h3>📡 ЖУРНАЛ СОБЫТИЙ</h3>
<div class="log" id="logPanel"></div>
</div>
<div class="panel">
<h3>🔗 ПОДДЕЛЬНЫЕ ДАННЫЕ</h3>
<pre style="color:#0f0; font-size:0.7rem;">GATEWAY: 10.0.2.1
SRC: 192.168.1.124
UPLINK: STABLE
ПАКЕТОВ: 0/0 LOSS
NODE: snowcrash-01</pre>
</div>
</div>
<div class="footer">
❄️ TPickME — холодный мониторинг. Все данные случайны, никакая телеметрия не собирается.
</div>
</div>
<script>
function randomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
const cpuVal = document.getElementById('cpuVal');
const ramVal = document.getElementById('ramVal');
const netVal = document.getElementById('netVal');
const cpuBar = document.getElementById('cpuBar');
const ramBar = document.getElementById('ramBar');
const netBar = document.getElementById('netBar');
const logPanel = document.getElementById('logPanel');
const canvas = document.getElementById('netCanvas');
const ctx = canvas.getContext('2d');
let points = Array(40).fill(0);
function updateMetrics() {
const cpu = randomInt(10, 95);
const ram = randomInt(20, 88);
const net = (Math.random() * 20 + 5).toFixed(1);
cpuVal.innerText = cpu;
ramVal.innerText = ram;
netVal.innerText = net;
cpuBar.style.width = cpu + '%';
ramBar.style.width = ram + '%';
netBar.style.width = (parseFloat(net)/25*100) + '%';
points.push(cpu);
if (points.length > 40) points.shift();
drawCanvas();
}
function drawCanvas() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
ctx.strokeStyle = '#0ff';
ctx.lineWidth = 2;
ctx.beginPath();
const step = canvas.width / (points.length - 1);
for (let i = 0; i < points.length; i++) {
const x = i * step;
const y = canvas.height - (points[i] / 100) * canvas.height;
if (i === 0) ctx.moveTo(x, y);
else ctx.lineTo(x, y);
}
ctx.stroke();
}
function addLog() {
const ip = `${randomInt(10,200)}.${randomInt(1,255)}.${randomInt(1,255)}.${randomInt(1,255)}`;
const msg = `[${new Date().toLocaleTimeString()}] SYN-RECV from ${ip}:${randomInt(1024,65535)}`;
const div = document.createElement('div');
div.innerText = msg;
logPanel.appendChild(div);
if (logPanel.children.length > 8) logPanel.removeChild(logPanel.children[0]);
logPanel.scrollTop = logPanel.scrollHeight;
}
setInterval(updateMetrics, 2000);
setInterval(addLog, 3500);
updateMetrics();
for (let i = 0; i < 5; i++) addLog();
function createSnow() {
const snowDiv = document.getElementById('snow');
for (let i = 0; i < 140; i++) {
const flake = document.createElement('i');
flake.style.left = Math.random() * 100 + '%';
flake.style.width = flake.style.height = Math.random() * 5 + 2 + 'px';
flake.style.animationDuration = Math.random() * 4 + 3 + 's';
flake.style.animationDelay = Math.random() * 5 + 's';
snowDiv.appendChild(flake);
}
}
createSnow();
window.addEventListener('resize', () => drawCanvas());
</script>
</body>
</html>