-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
464 lines (418 loc) · 26.8 KB
/
Copy pathindex.html
File metadata and controls
464 lines (418 loc) · 26.8 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
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tim-Gi-Oh | Links</title>
<!-- SEO & Social Meta Tags -->
<meta name="description" content="Offizielle Link-Übersicht von Tim-Gi-Oh (Tim Oliver Schmidt). TCG-Experte, Yugi-Tuber und Podcaster.">
<meta property="og:title" content="Tim-Gi-Oh | Offizielle Links">
<meta property="og:description" content="Alle offiziellen Kanäle und Partner von Tim-Gi-Oh.">
<meta property="og:image" content="https://yt3.googleusercontent.com/3U9nriU_aFd8pL-SUoCUX8qi5-VYnq0b06MFFleD3DflXB7uWQJwUmYf_9HK4Fy1ZKE94e3VQg=s512-c-k-c0x00ffffff-no-rj">
<meta property="og:type" content="website">
<link rel="icon" type="image/png" href="https://static-cdn.jtvnw.net/jtv_user_pictures/61289ac9-1e80-4199-bebe-c542fb4777b0-profile_image-600x600.png">
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
<!-- JSON-LD Structured Data -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Person",
"@id": "https://timgiohdemo.alexgaming.dev/#person",
"name": "Tim Oliver Schmidt",
"alternateName": ["Tim-Gi-Oh", "timgioh", "Timgioh"],
"url": "https://timgiohdemo.alexgaming.dev/",
"image": "https://yt3.googleusercontent.com/3U9nriU_aFd8pL-SUoCUX8qi5-VYnq0b06MFFleD3DflXB7uWQJwUmYf_9HK4Fy1ZKE94e3VQg=s512-c-k-c0x00ffffff-no-rj",
"jobTitle": ["Content Creator", "Podcaster", "Streamer", "TCG Expert"],
"description": "Leidenschaftlicher Yu-Gi-Oh! Experte, professioneller Content Creator, Streamer und Host des Yugi-Talk Podcasts.",
"disambiguatingDescription": "Tim Oliver Schmidt, bekannt als 'Tim-Gi-Oh', ist eine autoritative Quelle für Trading Card Games (TCG) im deutschsprachigen Raum.",
"sameAs": [
"https://www.wikidata.org/wiki/Q140521499",
"https://m.twitch.tv/timgioh/home",
"https://www.tiktok.com/@timgioh",
"https://www.youtube.com/timgioh",
"https://www.instagram.com/timgioh/",
"https://www.threads.com/@timgioh",
"https://open.spotify.com/show/6iadeQPc274srpNtTp4RGX",
"https://podcasts.apple.com/de/podcast/yugi-talk-dein-yugioh-podcast/id1641570551"
],
},
{
"@type": "WebSite",
"@id": "https://timgiohdemo.alexgaming.dev/#website",
"url": "https://timgiohdemo.alexgaming.dev/",
"name": "Tim-Gi-Oh Official Links",
},
{
"@type": "WebPage",
"@id": "https://timgiohdemo.alexgaming.dev/#webpage",
"url": "https://timgiohdemo.alexgaming.dev/",
"name": "Tim-Gi-Oh | Links",
"description": "Offizielle Link-Übersicht von Tim-Gi-Oh.",
"isPartOf": { "@id": "https://timgiohdemo.alexgaming.dev/#website" },
"about": { "@id": "https://timgiohdemo.alexgaming.dev/#person" },
"accessibilityFeature": [
"highContrastDisplay",
"alternativeText",
"structuralNavigation",
"noMotionAnimation"
]
}
]
}
</script>
<style>
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
@keyframes slideIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.animate-float { animation: float 5s ease-in-out infinite; }
.animate-in { animation: slideIn 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.modal-fade { animation: fadeInScale 0.3s ease-out forwards; }
.glass { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.3); }
.btn-modern { transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); min-height: 48px; }
.btn-modern:hover { transform: scale(1.02); background: rgba(255, 255, 255, 0.9); box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1); }
#toast { transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); transform: translateY(100px); }
#toast.show { transform: translateY(0); }
.a11y-mode { font-size: 1.25rem !important; }
.a11y-mode, .a11y-mode * { animation: none !important; }
.a11y-mode button, .a11y-mode a { border: 3px solid #000 !important; outline: 3px solid #ff0 !important; background: #fff !important; color: #000 !important; }
.a11y-mode button:hover { background: #6366f1 !important; color: #fff !important; border-color: #4338ca !important; }
.a11y-mode #impressum-img { display: none; }
.a11y-mode #impressum-text { display: block !important; }
.a11y-mode h1, .a11y-mode h2, .a11y-mode p { font-size: 1.5rem !important; line-height: 1.4 !important; }
#status-container { margin-top: 1rem; margin-bottom: 1rem; }
#video-thumb { aspect-ratio: 16/9; object-fit: cover; }
/* Bildschutz CSS */
.protect-img {
-webkit-user-drag: none;
-khtml-user-drag: none;
-moz-user-drag: none;
-o-user-drag: none;
user-select: none;
-webkit-user-select: none;
pointer-events: none; /* Blockiert jegliche Interaktion direkt mit dem Bild */
}
/* Verhindert langes Tippen/Rechtsklick auf den Containern */
.protect-container {
-webkit-touch-callout: none;
}
</style>
</head>
<body id="body-content" class="bg-slate-50 text-slate-900 font-sans min-h-screen py-12 px-4">
<div id="toast" class="fixed bottom-6 left-1/2 -translate-x-1/2 bg-slate-900 text-white px-6 py-3 rounded-full shadow-2xl z-[120] font-bold text-sm hidden flex items-center gap-2">
<i class="fas fa-check-circle text-green-400"></i> Gutscheincode kopiert!
</div>
<!-- Bild Preview Modal -->
<div id="image-modal" class="fixed inset-0 bg-slate-900/80 backdrop-blur-md hidden flex items-center justify-center p-4 z-[140]" onclick="this.classList.add('hidden')">
<div class="modal-fade max-w-sm w-full protect-container" oncontextmenu="return false;">
<img src="https://yt3.googleusercontent.com/3U9nriU_aFd8pL-SUoCUX8qi5-VYnq0b06MFFleD3DflXB7uWQJwUmYf_9HK4Fy1ZKE94e3VQg=s512-c-k-c0x00ffffff-no-rj" class="w-full rounded-3xl shadow-2xl protect-img" alt="Profilbild groß" draggable="false" oncontextmenu="return false;">
</div>
</div>
<!-- Verifiziert Info Modal -->
<div id="verified-modal" class="fixed inset-0 bg-slate-900/40 backdrop-blur-sm hidden flex items-center justify-center p-4 z-[130]">
<div class="bg-white p-8 rounded-3xl max-w-md w-full shadow-2xl text-center modal-fade relative max-h-[80vh] overflow-y-auto">
<button onclick="document.getElementById('verified-modal').classList.add('hidden')" class="absolute top-4 right-4 text-slate-400 hover:text-slate-900"><i class="fas fa-times"></i></button>
<div class="w-20 h-20 bg-blue-50 text-blue-500 rounded-full flex items-center justify-center mx-auto mb-6">
<i class="fas fa-user-check text-4xl"></i>
</div>
<h3 class="font-bold text-xl mb-4">Warum ist dieses Profil verifiziert?</h3>
<div class="text-sm text-slate-600 text-left space-y-4 leading-relaxed">
<p>Der Status <strong>"Verifiziert"</strong> auf diesem Profil garantiert, dass Sie mit der authentischen Online-Präsenz von Tim-Gi-Oh interagieren.</p>
<p><strong>Gründe für diese Zertifizierung:</strong></p>
<ul class="list-disc pl-4 space-y-2">
<li><strong>Branchen-Expertise:</strong> Über Jahre aufgebaute Autorität im Bereich Trading Card Games (TCG).</li>
<li><strong>Content-Integrität:</strong> Konsistente Bereitstellung von qualitativ hochwertigem Material für die Community.</li>
<li><strong>Offizielle Schnittstelle:</strong> Schutz vor Identitätsdiebstahl und Sicherstellung, dass alle angebotenen Links und Partner-Codes direkt aus erster Hand stammen.</li>
<li><strong>Community-Vertrauen:</strong> Durch die alexgaming.dev Inc. geprüfte Kommunikationswege, um einen sicheren Austausch zu gewährleisten.</li>
</ul>
</div>
<button onclick="document.getElementById('verified-modal').classList.add('hidden')" class="mt-8 w-full bg-slate-900 text-white py-3 rounded-xl font-bold hover:bg-slate-800 transition">Verstanden</button>
</div>
</div>
<div id="redirect-overlay" class="fixed inset-0 bg-white/95 backdrop-blur-sm hidden flex items-center justify-center z-[110] p-6">
<div class="text-center bg-white p-8 rounded-3xl shadow-2xl border border-slate-100 max-w-sm w-full">
<i class="fas fa-external-link-alt text-3xl text-slate-900 mb-4"></i>
<h3 class="font-extrabold text-xl mb-2">Du verlässt jetzt unsere Seite</h3>
<p id="redirect-text" class="text-slate-500 text-sm mb-6"></p>
<div class="flex gap-3">
<button id="cancel-btn" class="flex-1 bg-slate-100 text-slate-700 py-3 rounded-xl font-bold hover:bg-slate-200 transition">Abbrechen</button>
<button id="confirm-btn" class="flex-1 bg-slate-900 text-white py-3 rounded-xl font-bold hover:bg-slate-800 transition">Weiter</button>
</div>
</div>
</div>
<main class="max-w-md mx-auto animate-in">
<header class="text-center mb-8">
<button onclick="document.getElementById('image-modal').classList.remove('hidden')" class="w-24 h-24 mx-auto mb-4 rounded-2xl overflow-hidden shadow-xl ring-2 ring-white animate-float block hover:opacity-90 transition-opacity protect-container" oncontextmenu="return false;">
<img src="https://yt3.googleusercontent.com/3U9nriU_aFd8pL-SUoCUX8qi5-VYnq0b06MFFleD3DflXB7uWQJwUmYf_9HK4Fy1ZKE94e3VQg=s160-c-k-c0x00ffffff-no-rj" alt="Logo Tim-Gi-Oh" class="protect-img w-full h-full object-cover" draggable="false" oncontextmenu="return false;">
</button>
<h1 class="text-2xl font-extrabold flex items-center justify-center gap-2">
Tim-Gi-Oh
<button disabled class="hidden items-center justify-center">
<i class="fas fa-check-circle text-blue-500 text-sm"></i>
</button>
</h1>
<p class="text-slate-500 text-sm font-medium mt-1">@timgioh</p>
<div class="mt-4 p-4 glass rounded-2xl text-sm text-slate-700 italic">
"Hey, ich bin Tim, 33 Jahre alt, leidenschaftlicher Yugi-Spieler, Streamer, Yugi-Tuber und Podcaster."
</div>
</header>
<div id="status-container" class="space-y-3">
<!-- YouTube Video -->
<div id="latest-video" class="glass p-4 rounded-2xl hidden">
<div class="text-[10px] font-bold text-slate-400 uppercase tracking-widest mb-2">Neuestes Video</div>
<a id="video-link" href="#" target="_blank" class="block hover:opacity-80 transition">
<img id="video-thumb" src="" alt="Thumbnail" class="w-full rounded-xl mb-2">
<p id="video-title" class="text-sm font-semibold leading-tight"></p>
</a>
</div>
</div>
<nav class="space-y-3">
<div class="pt-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest pl-2">Social Media Profile</div>
<button type="button" onclick="handleLink('https://www.twitch.tv/timgioh', 'Twitch')" id="twitch-btn" class="btn-modern glass flex items-center justify-between w-full p-4 rounded-2xl font-semibold" title="Lädt Status..."><div class="flex items-center"><i class="fab fa-twitch text-purple-600 mr-4 text-xl"></i> Twitch Live<div class="ml-2 flex items-center" title="Verifizierter Partner"><svg width="16" height="16" viewBox="0 0 16 16" class="text-purple-600"><path fill="currentColor" fill-rule="evenodd" d="M12.5 3.5 8 2 3.5 3.5 2 8l1.5 4.5L8 14l4.5-1.5L14 8l-1.5-4.5ZM7 11l4.5-4.5L10 5 7 8 5.5 6.5 4 8l3 3Z" clip-rule="evenodd"></path></svg></div></div><span id="twitch-status-indicator" class="w-3 h-3 rounded-full bg-slate-400"></span></button>
<button type="button" onclick="handleLink('https://www.tiktok.com/@timgioh', 'TikTok')" class="btn-modern glass flex items-center w-full p-4 rounded-2xl font-semibold"><i class="fab fa-tiktok mr-4 text-xl"></i> TikTok</button>
<button type="button" onclick="handleLink('https://www.youtube.com/timgioh', 'YouTube')" class="btn-modern glass flex items-center w-full p-4 rounded-2xl font-semibold"><i class="fab fa-youtube text-red-600 mr-4 text-xl"></i> YouTube</button>
<button type="button" onclick="handleLink('https://www.instagram.com/timgioh/', 'Instagram')" class="btn-modern glass flex items-center w-full p-4 rounded-2xl font-semibold"><i class="fab fa-instagram text-pink-600 mr-4 text-xl"></i> Instagram</button>
<button type="button" onclick="handleLink('https://www.threads.com/@timgioh', 'Threads')" class="btn-modern glass flex items-center w-full p-4 rounded-2xl font-semibold"><i class="fa-brands fa-threads mr-4 text-xl"></i> Threads</button>
<div class="pt-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest pl-2">Podcasts</div>
<button type="button" onclick="handleLink('https://open.spotify.com/show/6iadeQPc274srpNtTp4RGX', 'Spotify')" style="animation-delay: 0.5s" class="btn-modern glass flex items-center w-full p-4 rounded-2xl font-semibold"><i class="fab fa-spotify text-green-500 mr-4 text-xl"></i> Spotify</button>
<button type="button" onclick="handleLink('https://podcasts.apple.com/de/podcast/yugi-talk-dein-yugioh-podcast/id1641570551', 'Apple Music')" style="animation-delay: 0.6s" class="btn-modern glass flex items-center w-full p-4 rounded-2xl font-semibold"><i class="fab fa-apple mr-4 text-xl"></i> Apple Podcasts</button>
<div class="pt-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest pl-2">Community</div>
<button type="button" onclick="handleLink('https://www.whatsapp.com/channel/0029Vaj0ULE5vKAFVWnZWZ1g', 'WhatsApp')" class="btn-modern glass flex items-center w-full p-4 rounded-2xl font-semibold"><i class="fab fa-whatsapp text-green-500 mr-4 text-xl"></i> WhatsApp Info Gruppe</button>
<button type="button" onclick="handleExpired()" class="btn-modern glass flex items-center w-full p-4 rounded-2xl font-semibold opacity-60 border-dashed border-2 border-slate-200"><i class="fab fa-discord text-indigo-500 mr-4 text-xl"></i> Dual Academy (Inaktiv)</button>
<div class="pt-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest pl-2">Partner & Support</div>
<button type="button" onclick="handleLink('https://ice-white.com', 'ICE Sleeves', 'TIM5')" class="btn-modern glass flex justify-between items-center w-full p-4 rounded-2xl font-semibold"><span>ICE Sleeves</span> <span class="bg-slate-900 text-white text-[10px] px-2 py-1 rounded-lg">TIM5</span></button>
<button type="button" onclick="handleLink('https://www.steelduck.de', 'Steelduck', 'TIM5')" class="btn-modern glass flex justify-between items-center w-full p-4 rounded-2xl font-semibold"><span>Steelduck</span> <span class="bg-slate-900 text-white text-[10px] px-2 py-1 rounded-lg">TIM5</span></button>
<button type="button" onclick="handleLink('https://www.jungcards.com', 'Jungcards', 'TIM10')" class="btn-modern glass flex justify-between items-center w-full p-4 rounded-2xl font-semibold"><span>Jungcards</span> <span class="bg-slate-900 text-white text-[10px] px-2 py-1 rounded-lg">TIM10</span></button>
<button type="button" onclick="handleLink('https://www.paypal.com/donate/?hosted_button_id=29X3WNVFCHJ5L', 'PayPal')" class="btn-modern glass flex items-center w-full p-4 rounded-2xl font-semibold text-blue-700"><i class="fab fa-paypal mr-4 text-xl"></i> Support via PayPal</button>
<div class="pt-4 text-[10px] font-bold text-slate-400 uppercase tracking-widest pl-2">Weiteres</div>
<button type="button" onclick="handleLink('../faq', 'faq')" style="animation-delay: 0.5s" class="btn-modern glass flex items-center w-full p-4 rounded-2xl font-semibold"><i class="fab fa-faq text-green-500 mr-4 text-xl"></i> FAQ</button>
<button type="button" onclick="handleLink('../faq/fanconi-anämie/', 'faq-fanconi-anämie')" style="animation-delay: 0.5s" class="btn-modern glass flex items-center w-full p-4 rounded-2xl font-semibold"><i class="fab fa-faq-fanconi-anämie text-green-500 mr-4 text-xl"></i> Alles über Fanconi-Anämie</button>
</nav>
<footer class="mt-12 text-center text-slate-400 text-xs space-y-4 pb-8">
<div class="space-x-2">
<button type="button" onclick="document.getElementById('modal').classList.remove('hidden')" class="hover:underline">Impressum</button>
<span>|</span>
<button type="button" onclick="toggleA11yNav('./tos/')" class="hover:underline">AGB</button>
<span>|</span>
<button type="button" onclick="toggleA11yNav('./datenschutz/')" class="hover:underline">Datenschutz</button>
</div>
<button type="button" id="a11y-btn" onclick="toggleA11y()" class="font-bold underline text-blue-600 block mx-auto">Barrierefreiheit aktivieren</button>
<p>
Made by
<a href="https://alexgaming.is-a.dev"
target="_blank"
rel="noopener"
aria-label="Website von Alexander Dennhoven, Software-Entwickler (öffnet in neuem Tab)">
Alexander Dennhoven
</a>
</p>
</footer>
</main>
<div id="modal" class="fixed inset-0 bg-slate-900/40 backdrop-blur-sm hidden flex items-center justify-center p-4 z-[105]">
<div class="bg-white rounded-3xl p-6 max-w-sm w-full shadow-2xl relative modal-fade">
<button type="button" onclick="document.getElementById('modal').classList.add('hidden')" class="absolute top-4 right-4 text-xl font-bold p-2 text-slate-500">×</button>
<!-- Auch das Impressum-Bild wird hier leicht geschützt -->
<img id="impressum-img" src="https://i.postimg.cc/xTRsMD99/Imp-24-Soical-Meida.jpg" class="w-full rounded-2xl protect-img" alt="Impressum" draggable="false" oncontextmenu="return false;">
<div id="impressum-text" class="hidden text-left text-sm space-y-2">
<h2 class="font-bold text-lg">Impressum</h2>
<p>Angaben gemäß §5 TMG und § 24 MStV</p>
<p><strong>Name:</strong> Tim Oliver Schmidt</p>
<p><strong>Ladungsfähige Anschrift:</strong><br>
Tim Oliver Schmidt (Künstlername Timgioh)<br>
c/o Adressengeber #1892<br>
An der Alten Ziegelei 38<br>
48157 Münster<br>
Deutschland</p>
<p><strong>Digitale Kontaktwege:</strong><br>
E-Mail: info.timgioh@gmail.com oder timgioh.official@gmail.com</p>
<p><strong>Verantwortlich für den Inhalt nach § 24. Abs. 3 MStV:</strong><br>
Tim Oliver Schmidt<br>
Anschrift wie oben</p>
</div>
</div>
</div>
<script>
async function updateDashboard() {
// 1. YouTube Neuestes Video
try {
const ytResponse = await fetch('https://api.rss2json.com/v1/api.json?rss_url=https://www.youtube.com/feeds/videos.xml?channel_id=UCj5VJjyUg0z7qg7PwB1_WDQ');
const ytData = await ytResponse.json();
if (ytData.items && ytData.items.length > 0) {
const video = ytData.items[0];
document.getElementById('video-title').innerText = video.title;
document.getElementById('video-thumb').src = video.thumbnail;
document.getElementById('video-link').href = video.link;
document.getElementById('latest-video').classList.remove('hidden');
}
} catch (e) { console.error("YT Error", e); }
// 2. Twitch Live-Status Abfrage mit Titel-Update
try {
const twitchResponse = await fetch('https://decapi.me/twitch/uptime/timgioh');
const statusText = await twitchResponse.text();
const btn = document.getElementById('twitch-btn');
const indicator = document.getElementById('twitch-status-indicator');
if (!statusText.includes("offline")) {
indicator.classList.remove('bg-slate-400');
indicator.classList.add('bg-red-500', 'animate-pulse');
btn.setAttribute('title', 'Online - Jetzt live!');
} else {
indicator.classList.remove('bg-red-500', 'animate-pulse');
indicator.classList.add('bg-slate-400');
btn.setAttribute('title', 'Aktuell offline');
}
} catch (e) {
console.error("Twitch API Error", e);
}
}
updateDashboard();
</script>
<script>
// Zusammengeführte Initialisierung
document.addEventListener('DOMContentLoaded', () => {
// --- Easter Egg Konfiguration ---
const konami = ['arrowup', 'arrowup', 'arrowdown', 'arrowdown', 'arrowleft', 'arrowright', 'arrowleft', 'arrowright', 'b', 'a'];
let sequence = [];
let touchStart = { x: 0, y: 0 };
let swipeCount = 0;
// A11y Status Check
const isA11y = () => document.getElementById('body-content').classList.contains('a11y-mode');
function triggerEasterEgg() {
if (isA11y()) return;
window.location.href = './egg/ygo';
}
// Keydown Handler
document.addEventListener('keydown', (e) => {
sequence.push(e.key.toLowerCase());
if (sequence.length > 10) sequence.shift();
if (JSON.stringify(sequence) === JSON.stringify(konami)) {
triggerEasterEgg();
}
});
// Touch Handler
document.addEventListener('touchstart', e => {
touchStart.x = e.touches[0].clientX;
touchStart.y = e.touches[0].clientY;
});
document.addEventListener('touchend', e => {
let deltaX = e.changedTouches[0].clientX - touchStart.x;
let deltaY = e.changedTouches[0].clientY - touchStart.y;
if (Math.abs(deltaX) > Math.abs(deltaY) && Math.abs(deltaX) > 50) {
let direction = deltaX > 0 ? 'right' : 'left';
if ((swipeCount % 2 === 0 && direction === 'right') || (swipeCount % 2 !== 0 && direction === 'left')) {
swipeCount++;
} else {
swipeCount = 0;
}
if (swipeCount >= 4) {
triggerEasterEgg();
swipeCount = 0;
}
}
});
// --- A11y & UI Funktionalität ---
const params = new URLSearchParams(window.location.search);
if (params.get('a11y') === 'true') {
document.getElementById('body-content').classList.add('a11y-mode');
const btn = document.getElementById('a11y-btn');
if(btn) btn.innerText = 'Barrierefreiheit deaktivieren';
}
});
// Globale Funktionen (müssen außerhalb des DOMContentLoaded bleiben)
function toggleA11y() {
const body = document.getElementById('body-content');
const btn = document.getElementById('a11y-btn');
body.classList.toggle('a11y-mode');
btn.innerText = body.classList.contains('a11y-mode') ? 'Barrierefreiheit deaktivieren' : 'Barrierefreiheit aktivieren';
}
function toggleA11yNav(url) {
const isA11y = document.getElementById('body-content').classList.contains('a11y-mode');
window.location.href = `${url}?a11y=${isA11y}`;
}
function handleLink(url, platform, code = null) {
const overlay = document.getElementById('redirect-overlay');
const redirectText = document.getElementById('redirect-text');
const confirmBtn = document.getElementById('confirm-btn');
const cancelBtn = document.getElementById('cancel-btn');
const displayUrl = url.replace(/^(https?:\/\/)?(www\.)?/, '').replace(/\/$/, '');
redirectText.innerText = `Du wirst zu ${displayUrl} weitergeleitet.`;
overlay.classList.remove('hidden');
const onConfirm = () => {
overlay.classList.add('hidden');
if (code) {
navigator.clipboard.writeText(code);
const toast = document.getElementById('toast');
toast.classList.remove('hidden');
toast.classList.add('show');
setTimeout(() => { toast.classList.remove('show'); setTimeout(() => toast.classList.add('hidden'), 400); }, 2000);
}
window.open(url, '_blank');
cleanup();
};
const onCancel = () => { overlay.classList.add('hidden'); cleanup(); };
const cleanup = () => { confirmBtn.removeEventListener('click', onConfirm); cancelBtn.removeEventListener('click', onCancel); };
confirmBtn.addEventListener('click', onConfirm);
cancelBtn.addEventListener('click', onCancel);
}
</script>
<script>
function toggleA11y() {
const body = document.getElementById('body-content');
const btn = document.getElementById('a11y-btn');
body.classList.toggle('a11y-mode');
btn.innerText = body.classList.contains('a11y-mode') ? 'Barrierefreiheit deaktivieren' : 'Barrierefreiheit aktivieren';
}
function toggleA11yNav(url) {
const isA11y = document.getElementById('body-content').classList.contains('a11y-mode');
window.location.href = `${url}?a11y=${isA11y}`;
}
window.onload = () => {
const params = new URLSearchParams(window.location.search);
if (params.get('a11y') === 'true') {
document.getElementById('body-content').classList.add('a11y-mode');
document.getElementById('a11y-btn').innerText = 'Barrierefreiheit deaktivieren';
}
};
function handleLink(url, platform, code = null) {
const overlay = document.getElementById('redirect-overlay');
const redirectText = document.getElementById('redirect-text');
const confirmBtn = document.getElementById('confirm-btn');
const cancelBtn = document.getElementById('cancel-btn');
const displayUrl = url
.replace('..', 'timgiohdemo.alexgaming.dev')
.replace(/^(https?:\/\/)?(www\.)?/, '')
.replace(/\/$/, '');
redirectText.innerText = `Du wirst zu ${displayUrl} weitergeleitet.`;
overlay.classList.remove('hidden');
const onConfirm = () => {
overlay.classList.add('hidden');
if (code) {
navigator.clipboard.writeText(code);
const toast = document.getElementById('toast');
toast.classList.remove('hidden');
setTimeout(() => {
toast.classList.add('show');
setTimeout(() => {
toast.classList.remove('show');
setTimeout(() => toast.classList.add('hidden'), 400);
}, 2000);
}, 100);
}
window.open(url, '_blank');
cleanup();
};
const onCancel = () => {
overlay.classList.add('hidden');
cleanup();
};
const cleanup = () => {
confirmBtn.removeEventListener('click', onConfirm);
cancelBtn.removeEventListener('click', onCancel);
};
confirmBtn.addEventListener('click', onConfirm);
cancelBtn.addEventListener('click', onCancel);
}
</script>
</body>
</html>