This repository was archived by the owner on Sep 3, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathlivesports.html
More file actions
601 lines (555 loc) · 28.7 KB
/
livesports.html
File metadata and controls
601 lines (555 loc) · 28.7 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-HGL07M90WG"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-HGL07M90WG');
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Live Sports - Nova</title>
<meta content="Nova - Live Sports" property="og:title"/>
<meta content="Watch live sports streams for free. Nova breaks down the paywall, ensuring that quality content is accessible to everyone." property="og:description"/>
<meta content="https://novastream.top" property="og:url"/>
<meta content="https://raw.githubusercontent.com/ambr0sial/nova/main/logo.png" property="og:image"/>
<meta content="#A17FC0" data-react-helmet="true" name="theme-color"/>
<link rel="icon" type="image/x-icon" href="https://raw.githubusercontent.com/ambr0sial/nova/main/logo.png">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/alpinejs/3.10.3/cdn.min.js" defer></script>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
fontFamily: {
sans: ['Poppins', 'sans-serif'],
},
},
},
}
</script>
<style>
.nav-link {
position: relative;
transition: all 0.3s ease;
padding: 0.5rem 0;
}
.nav-link::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: 0;
left: 50%;
background: linear-gradient(to right, #a78bfa, #4c1d95);
transition: all 0.3s ease;
transform: translateX(-50%);
}
.nav-link:hover {
color: #a78bfa;
}
.nav-link:hover::after {
width: 100%;
}
.glass-effect {
background: rgba(17, 24, 39, 0.7);
backdrop-filter: blur(12px);
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.match-card {
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
}
.match-card::after {
content: '';
position: absolute;
inset: -1px;
background: linear-gradient(
35deg,
rgba(168, 85, 247, 0.4),
rgba(168, 85, 247, 0),
rgba(139, 92, 246, 0.4)
);
border-radius: 0.5rem;
z-index: -1;
opacity: 0;
transition: opacity 0.4s ease;
}
.match-card:hover {
transform: translateY(-8px) scale(1.02);
box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.5);
}
.match-card:hover::after {
opacity: 1;
}
.live-indicator {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { opacity: 0.5; }
50% { opacity: 1; }
100% { opacity: 0.5; }
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(180deg);
}
}
.settings-icon {
transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.settings-icon:hover {
transform: rotate(180deg);
}
</style>
</head>
<body class="bg-gray-900 text-white min-h-screen" x-data="sportsApp()">
<div x-show="localStorage.getItem('showParticles') !== 'false'" id="particles-js" class="fixed inset-0 pointer-events-none z-[-1]"></div>
<!-- navigation -->
<nav class="fixed w-full z-50 glass-effect">
<div class="container mx-auto px-6 py-3">
<div class="flex items-center justify-between">
<div class="flex items-center space-x-4 md:space-x-8">
<div class="flex items-center space-x-3">
<img src="logo.png" alt="Nova Logo" class="h-8 w-8 md:h-10 md:w-10">
<span class="text-2xl md:text-3xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-purple-400 to-violet-800">Nova</span>
</div>
<div class="hidden md:flex space-x-6">
<a href="index.html" class="nav-link">Home</a>
<a href="https://github.com/ambr0sial/nova" target="_blank" class="nav-link">GitHub</a>
<a href="https://ko-fi.com/ambrosial" target="_blank" class="nav-link">Ko-Fi</a>
<a href="https://discord.gg/s9kUZw7CqP" target="_blank" class="nav-link">Discord</a>
</div>
</div>
<div class="flex items-center space-x-4">
<a href="settings.html" class="text-gray-400 hover:text-purple-400 transition-colors duration-300" title="Settings">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 settings-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
</svg>
</a>
<!-- mobile menu button -->
<button @click="mobileMenu = !mobileMenu" class="md:hidden text-gray-300 hover:text-white">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
</svg>
</button>
</div>
</div>
<!-- mobile menu -->
<div x-show="mobileMenu"
x-transition:enter="transition ease-out duration-200"
x-transition:enter-start="opacity-0 transform -translate-y-2"
x-transition:enter-end="opacity-100 transform translate-y-0"
x-transition:leave="transition ease-in duration-150"
x-transition:leave-start="opacity-100 transform translate-y-0"
x-transition:leave-end="opacity-0 transform -translate-y-2"
class="md:hidden mt-4 pb-4">
<div class="flex flex-col space-y-4">
<a href="index.html" class="px-4 py-2 hover:bg-gray-800 rounded-lg transition-colors">Movies & Shows</a>
<a href="livesports.html" class="px-4 py-2 hover:bg-gray-800 rounded-lg transition-colors">Live Sports</a>
<a href="settings.html" class="px-4 py-2 hover:bg-gray-800 rounded-lg transition-colors flex items-center space-x-2">
<span>Settings</span>
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
</svg>
</a>
<a href="https://github.com/ambr0sial/nova" target="_blank" class="px-4 py-2 hover:bg-gray-800 rounded-lg transition-colors">GitHub</a>
<a href="https://ko-fi.com/ambrosial" target="_blank" class="px-4 py-2 hover:bg-gray-800 rounded-lg transition-colors">Ko-Fi</a>
<a href="https://discord.gg/s9kUZw7CqP" target="_blank" class="px-4 py-2 hover:bg-gray-800 rounded-lg transition-colors">Discord</a>
</div>
</div>
</div>
</nav>
<!-- main content -->
<div class="pt-24 pb-12 px-6">
<div class="container mx-auto">
<div class="bg-purple-600 text-white text-center p-4 rounded-lg mb-4 z-10">
<strong>Notice:</strong> This page is subject to change and is currently experimental. I also don't have expertise in sports, so there may be errors or inaccuracies.
</div>
<!-- filters -->
<div class="mb-8 space-y-4">
<div class="flex flex-wrap gap-4 items-center">
<!-- sports filter -->
<div class="relative">
<select x-model="selectedSport"
@change="filterMatches()"
class="bg-gray-800 text-white rounded-lg px-4 py-2 pr-8 appearance-none hover:bg-gray-700 transition-colors duration-300 focus:ring-2 focus:ring-purple-400 focus:outline-none">
<option value="">All Sports</option>
<template x-for="sport in sports" :key="sport.id">
<option :value="sport.id" x-text="sport.name"></option>
</template>
</select>
<div class="absolute right-2 top-1/2 -translate-y-1/2 pointer-events-none">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-gray-400" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" />
</svg>
</div>
</div>
<!-- match type filter -->
<div class="relative">
<select x-model="matchType"
@change="loadMatches()"
class="bg-gray-800 text-white rounded-lg px-4 py-2 pr-8 appearance-none hover:bg-gray-700 transition-colors duration-300 focus:ring-2 focus:ring-purple-400 focus:outline-none">
<option value="live">Live Matches</option>
<option value="today">Today's Matches</option>
<option value="all">All Matches</option>
</select>
<div class="absolute right-2 top-1/2 -translate-y-1/2 pointer-events-none">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-gray-400" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" />
</svg>
</div>
</div>
<!-- popular toggle -->
<button @click="togglePopular()"
class="px-4 py-2 rounded-lg transition-colors duration-300"
:class="showPopular ? 'bg-purple-600 hover:bg-purple-700' : 'bg-gray-800 hover:bg-gray-700'">
<span class="flex items-center space-x-2">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z" />
</svg>
<span>Popular</span>
</span>
</button>
</div>
</div>
<!-- matches grid -->
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4">
<template x-for="match in filteredMatches" :key="match.id">
<div class="match-card bg-gray-800 rounded-lg overflow-hidden">
<!-- add poster background if available -->
<div class="relative">
<template x-if="match.poster">
<div class="absolute inset-0 bg-cover bg-center opacity-20"
:style="'background-image: url(https://streamed.su/api/images/proxy/' + match.poster + '.webp)'">
</div>
</template>
</div>
<div class="p-4 relative">
<!-- match header -->
<div class="flex items-center justify-between mb-4">
<span class="text-sm text-gray-400" x-text="match.category"></span>
<template x-if="matchType === 'live'">
<span class="flex items-center space-x-1">
<span class="w-2 h-2 bg-red-500 rounded-full live-indicator"></span>
<span class="text-red-500 text-sm">LIVE</span>
</span>
</template>
<template x-if="matchType !== 'live'">
<span class="text-sm text-gray-400" x-text="formatDate(match.date)"></span>
</template>
</div>
<!-- teams -->
<div class="flex items-center justify-between mb-4">
<template x-if="match.teams">
<div class="flex items-center justify-between w-full">
<!-- home team -->
<div class="flex items-center space-x-2">
<img :src="match.teams.home?.badge ? 'https://streamed.su/api/images/badge/' + match.teams.home.badge + '.webp' : 'logo.png'"
:alt="match.teams.home?.name"
class="w-8 h-8 object-contain"
@error="$event.target.src = 'logo.png'">
<span x-text="match.teams.home?.name"></span>
</div>
<span class="text-gray-400">vs</span>
<!-- away team -->
<div class="flex items-center space-x-2">
<span x-text="match.teams.away?.name"></span>
<img :src="match.teams.away?.badge ? 'https://streamed.su/api/images/badge/' + match.teams.away.badge + '.webp' : 'logo.png'"
:alt="match.teams.away?.name"
class="w-8 h-8 object-contain"
@error="$event.target.src = 'logo.png'">
</div>
</div>
</template>
<template x-if="!match.teams">
<div class="text-center w-full">
<template x-if="match.poster">
<img :src="'https://streamed.su/api/images/poster/' + match.poster + '.webp'"
:alt="match.title"
class="w-32 h-32 object-contain mx-auto mb-2"
@error="$event.target.style.display = 'none'">
</template>
<span x-text="match.title"></span>
</div>
</template>
</div>
<!-- watch button -->
<button @click="openStream(match)"
class="w-full bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-lg transition-colors duration-300 flex items-center justify-center space-x-2">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
<span>Watch Stream</span>
</button>
</div>
</div>
</template>
</div>
<!-- no matches message -->
<div x-show="filteredMatches.length === 0" class="text-center py-12">
<div class="text-gray-400">No matches available</div>
</div>
</div>
</div>
<!-- stream modal -->
<div x-show="showModal"
class="fixed inset-0 z-50 overflow-auto bg-black bg-opacity-90 flex items-center justify-center"
@click.away="closeModal()"
x-transition:enter="transition ease-out duration-300"
x-transition:enter-start="opacity-0"
x-transition:enter-end="opacity-100"
x-transition:leave="transition ease-in duration-200"
x-transition:leave-start="opacity-100"
x-transition:leave-end="opacity-0">
<div class="bg-gray-900 rounded-lg w-full max-w-4xl p-6">
<div class="flex items-center justify-between mb-4">
<h2 class="text-xl font-bold" x-text="selectedMatch?.title || 'Stream'"></h2>
<button @click="closeModal()" class="text-gray-500 hover:text-white">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div>
<!-- stream selection -->
<div class="mb-4">
<div class="flex flex-wrap gap-2">
<template x-for="source in availableStreams" :key="source.id">
<button @click="selectStream(source)"
class="px-4 py-2 rounded-lg transition-colors duration-300"
:class="selectedStream?.id === source.id ? 'bg-purple-600' : 'bg-gray-800 hover:bg-gray-700'">
<span x-text="source.source"></span>
<template x-if="source.hd">
<span class="ml-2 text-xs bg-purple-500 px-1.5 rounded">HD</span>
</template>
</button>
</template>
</div>
</div>
<!-- stream player -->
<template x-if="selectedStream">
<div class="relative pt-[56.25%]" id="streamContainer">
<iframe :src="selectedStream.embedUrl"
class="absolute inset-0 w-full h-full rounded-lg"
frameborder="0"
allowfullscreen
x-ref="streamFrame"></iframe>
</div>
</template>
</div>
</div>
<script>
function sportsApp() {
return {
sports: [],
matches: [],
filteredMatches: [],
selectedSport: '',
matchType: 'live',
showPopular: false,
mobileMenu: false,
showModal: false,
selectedMatch: null,
selectedStream: null,
availableStreams: [],
async init() {
await this.loadSports();
await this.loadMatches();
},
async loadSports() {
try {
const response = await fetch('https://streamed.su/api/sports');
this.sports = await response.json();
} catch (error) {
console.error('Error loading sports:', error);
this.sports = [];
}
},
async loadMatches() {
let endpoint = '';
switch (this.matchType) {
case 'live':
endpoint = this.showPopular ? '/api/matches/live/popular' : '/api/matches/live';
break;
case 'today':
endpoint = this.showPopular ? '/api/matches/all-today/popular' : '/api/matches/all-today';
break;
case 'all':
endpoint = this.showPopular ? '/api/matches/all/popular' : '/api/matches/all';
break;
}
try {
const response = await fetch(`https://streamed.su${endpoint}`);
this.matches = await response.json();
this.filterMatches();
} catch (error) {
console.error('Error loading matches:', error);
this.matches = [];
this.filterMatches();
}
},
filterMatches() {
this.filteredMatches = this.selectedSport
? this.matches.filter(match => match.category === this.selectedSport)
: this.matches;
},
togglePopular() {
this.showPopular = !this.showPopular;
this.loadMatches();
},
formatDate(timestamp) {
return new Date(timestamp).toLocaleString();
},
closeModal() {
this.showModal = false;
this.selectedStream = null;
this.selectedMatch = null;
this.availableStreams = [];
const container = document.getElementById('streamContainer');
if (container) {
container.innerHTML = '';
}
},
async openStream(match) {
if (this.showModal) {
this.closeModal();
}
this.selectedMatch = match;
this.selectedStream = null;
this.availableStreams = [];
this.showModal = true;
for (const source of match.sources) {
try {
const response = await fetch(`https://streamed.su/api/stream/${source.source}/${source.id}`);
const streams = await response.json();
this.availableStreams = [...this.availableStreams, ...streams];
} catch (error) {
console.error(`Error loading stream for ${source.source}:`, error);
}
}
if (this.availableStreams.length > 0) {
this.selectStream(this.availableStreams[0]);
}
},
selectStream(stream) {
const container = document.getElementById('streamContainer');
if (container) {
container.innerHTML = '';
}
this.selectedStream = stream;
this.$nextTick(() => {
});
}
}
}
</script>
<script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
<script>
particlesJS('particles-js', {
particles: {
number: {
value: 80,
density: {
enable: true,
value_area: 800
}
},
color: {
value: '#a855f7'
},
shape: {
type: 'circle'
},
opacity: {
value: 0.2,
random: true,
animation: {
enable: true,
speed: 1,
opacity_min: 0.1,
sync: false
}
},
size: {
value: 3,
random: true,
animation: {
enable: true,
speed: 2,
size_min: 0.1,
sync: false
}
},
line_linked: {
enable: true,
distance: 150,
color: '#a855f7',
opacity: 0.2,
width: 1
},
move: {
enable: true,
speed: 1,
direction: 'none',
random: true,
straight: false,
out_mode: 'out',
bounce: false,
}
},
interactivity: {
detect_on: 'window',
events: {
onhover: {
enable: true,
mode: 'grab'
},
onclick: {
enable: true,
mode: 'push'
},
resize: true
},
modes: {
grab: {
distance: 140,
line_linked: {
opacity: 0.5
}
},
push: {
particles_nb: 4
}
}
},
retina_detect: true
});
window.addEventListener('appearance-changed', () => {
const particlesEl = document.getElementById('particles-js');
if (localStorage.getItem('showParticles') === 'false') {
particlesEl.style.display = 'none';
} else {
particlesEl.style.display = 'block';
}
});
</script>
</body>
</html>
<!--
_ _
| \ | | _____ ____ _
| \| |/ _ \ \ / / _` |
| |\ | (_) \ V / (_| |
|_| \_|\___/ \_/ \__,_|
-->