-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.php
More file actions
886 lines (786 loc) · 42.1 KB
/
Copy pathdemo.php
File metadata and controls
886 lines (786 loc) · 42.1 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
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
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
<?php
/**
* ULTIMATE ERROR ANIMATIONS SHOWCASE & DEMONSTRATION DASHBOARD
* Displays high-fidelity, online-inspired multi-path SVG vector graphics with live animations.
* Allows easy switching between all supported error codes (400, 401, 403, 404, 500, 502, 503).
*/
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ultimate Animated Vectors Showcase - Error Dashboard</title>
<!-- Premium Google Fonts for Authentic Cartoonistic Vector Styling -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fredoka+One&family=Outfit:wght@400;600;800&family=JetBrains+Mono:wght@400;700&display=swap" rel="stylesheet">
<style>
:root {
--bg-base: #0B0C10;
--panel-bg: rgba(20, 22, 30, 0.85);
--card-bg: rgba(30, 33, 45, 0.5);
--border-color: rgba(255, 255, 255, 0.08);
--border-hover: rgba(255, 255, 255, 0.25);
--text-main: #FFFFFF;
--text-muted: #8E94A8;
--font-display: 'Fredoka One', cursive;
--font-sans: 'Outfit', sans-serif;
--font-mono: 'JetBrains Mono', monospace;
--active-accent: #70A1FF;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: var(--bg-base);
color: var(--text-main);
font-family: var(--font-sans);
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
padding: 2.5rem 1.5rem;
overflow-x: hidden;
position: relative;
background-image:
radial-gradient(circle at 50% 0%, rgba(112, 161, 255, 0.1) 0%, transparent 50%),
radial-gradient(circle at 50% 100%, rgba(255, 71, 87, 0.08) 0%, transparent 50%);
}
/* Subtle Dynamic Hexagon/Grid Layout Background */
.bg-grid {
position: fixed;
top: 0; left: 0; width: 100%; height: 100%;
background-size: 40px 40px;
background-image:
linear-gradient(to right, rgba(255,255,255,0.015) 1px, transparent 1px),
linear-gradient(to bottom, rgba(255,255,255,0.015) 1px, transparent 1px);
z-index: -1;
}
/* Header Layout */
.showcase-header {
text-align: center;
max-width: 800px;
margin-bottom: 2.5rem;
animation: fadeInDown 0.6s ease-out;
}
@keyframes fadeInDown {
from { opacity: 0; transform: translateY(-20px); }
to { opacity: 1; transform: translateY(0); }
}
.showcase-title {
font-family: var(--font-display);
font-size: clamp(2rem, 4vw, 3rem);
background: linear-gradient(135deg, #FFFFFF 30%, #70A1FF 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 0.5rem;
}
.showcase-subtitle {
color: var(--text-muted);
font-size: 1.1rem;
line-height: 1.5;
}
/* Main Workspace & Preview Presenter */
.dashboard {
width: 100%;
max-width: 1280px;
display: grid;
grid-template-columns: 320px 1fr;
gap: 2.5rem;
align-items: start;
}
/* Left Control Switcher Menu */
.menu-list {
display: flex;
flex-direction: column;
gap: 0.8rem;
position: sticky;
top: 2.5rem;
}
.error-card {
background: var(--card-bg);
border: 2px solid var(--border-color);
border-radius: 16px;
padding: 1.2rem 1.5rem;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
display: flex;
align-items: center;
gap: 1.2rem;
position: relative;
overflow: hidden;
}
.error-card::before {
content: '';
position: absolute;
left: 0; top: 0; width: 4px; height: 100%;
background-color: transparent;
transition: background-color 0.3s;
}
.error-card:hover {
border-color: var(--border-hover);
transform: translateX(6px);
background: rgba(40, 44, 60, 0.8);
}
.error-card.active {
border-color: var(--active-accent);
background: rgba(35, 40, 60, 0.95);
box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 20px rgba(112, 161, 255, 0.15);
transform: translateX(10px);
}
.error-card.active::before {
background-color: var(--active-accent);
}
.card-num {
font-family: var(--font-display);
font-size: 1.8rem;
color: #FFFFFF;
min-width: 65px;
}
.card-info {
display: flex;
flex-direction: column;
}
.card-label {
font-weight: 700;
font-size: 1.05rem;
color: #E2E6F2;
}
.card-cat {
font-family: var(--font-mono);
font-size: 0.75rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.5px;
margin-top: 2px;
}
/* Assigning Color profiles dynamically */
.card-400 .card-num { color: #FF6B6B; }
.card-401 .card-num { color: #FFA07A; }
.card-403 .card-num { color: #FF5252; }
.card-404 .card-num { color: #70A1FF; }
.card-500 .card-num { color: #FF4757; }
.card-502 .card-num { color: #1DD1A1; }
.card-503 .card-num { color: #FFD32A; }
/* Right Preview Mainframe Presenter */
.preview-panel {
background: var(--panel-bg);
border: 2px solid var(--border-color);
border-radius: 24px;
padding: 3.5rem;
box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
backdrop-filter: blur(20px);
display: flex;
flex-direction: column;
align-items: center;
position: relative;
min-height: 600px;
transition: border-color 0.4s;
}
/* Top Bar Dynamic Server Directives simulation */
.panel-topbar {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
padding-bottom: 1rem;
margin-bottom: 2rem;
font-family: var(--font-mono);
font-size: 0.85rem;
}
.live-badge {
display: inline-flex;
align-items: center;
gap: 0.5rem;
background: rgba(255, 255, 255, 0.06);
padding: 0.4rem 1rem;
border-radius: 50px;
color: #1DD1A1;
font-weight: 700;
}
.live-dot {
width: 8px; height: 8px;
background-color: #1DD1A1;
border-radius: 50%;
animation: blinker 1.5s cubic-bezier(0.5, 0, 1, 1) infinite alternate;
}
@keyframes blinker {
from { opacity: 1; box-shadow: 0 0 8px #1DD1A1; }
to { opacity: 0.2; box-shadow: none; }
}
.directive-path {
color: var(--text-muted);
}
/* Inner Content Transition Wrapper */
.preview-content {
width: 100%;
display: grid;
grid-template-columns: 1fr 1.1fr;
gap: 3rem;
align-items: center;
animation: panelFade 0.5s ease-out;
}
@keyframes panelFade {
from { opacity: 0; transform: scale(0.98); }
to { opacity: 1; transform: scale(1); }
}
/* Descriptions & Metadata */
.preview-meta {
display: flex;
flex-direction: column;
gap: 1.2rem;
}
.meta-num {
font-family: var(--font-display);
font-size: clamp(3.5rem, 6vw, 6rem);
line-height: 0.85;
text-shadow: 0 10px 20px rgba(0,0,0,0.5);
transition: color 0.4s;
}
.meta-title {
font-family: var(--font-display);
font-size: 2rem;
color: #FFFFFF;
line-height: 1.1;
}
.meta-subtitle {
font-size: 1.1rem;
font-weight: 700;
margin-top: -0.5rem;
}
.meta-desc {
color: var(--text-muted);
line-height: 1.6;
font-size: 1.05rem;
}
.interactive-pulse-note {
margin-top: 1rem;
padding: 0.8rem 1.2rem;
background: rgba(0, 0, 0, 0.4);
border-radius: 8px;
font-family: var(--font-mono);
font-size: 0.8rem;
color: #E2E6F2;
border-left: 3px solid var(--active-accent);
}
/* Vector Art Stage */
.vector-stage {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
perspective: 1000px;
}
.vector-stage svg {
width: 100%;
max-height: 380px;
filter: drop-shadow(0 20px 30px rgba(0,0,0,0.6));
transition: transform 0.4s ease;
}
.vector-stage:hover svg {
transform: scale(1.05) rotate(1deg);
}
/* Responsive Layout */
@media (max-width: 1024px) {
.dashboard {
grid-template-columns: 1fr;
}
.menu-list {
flex-direction: row;
overflow-x: auto;
position: relative;
top: 0;
padding-bottom: 0.5rem;
}
.error-card {
min-width: 200px;
padding: 0.8rem 1.2rem;
}
.error-card:hover, .error-card.active {
transform: translateY(-4px);
}
.preview-content {
grid-template-columns: 1fr;
gap: 2rem;
text-align: center;
}
.interactive-pulse-note { text-align: left; }
}
/* Action Footer */
.demo-footer {
margin-top: 3rem;
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
border-top: 1px solid rgba(255,255,255,0.05);
padding-top: 2rem;
width: 100%;
max-width: 800px;
text-align: center;
}
.btn-live-test {
padding: 0.8rem 2rem;
background: linear-gradient(135deg, #70A1FF, #1DD1A1);
color: #000;
font-family: var(--font-sans);
font-weight: 800;
border-radius: 50px;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 0.5rem;
box-shadow: 0 10px 25px rgba(112, 161, 255, 0.3);
transition: transform 0.3s;
}
.btn-live-test:hover {
transform: scale(1.04);
}
/* Integrated Custom Keyframes for Premium Animated SVGs */
@keyframes driftUFO { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px) rotate(1.5deg); } }
@keyframes beamFlash { 0%, 100% { opacity: 0.7; } 50% { opacity: 0.95; transform: scaleX(1.08); } }
@keyframes floatQ { 0% { transform: translateY(0); opacity: 0.3; } 50% { opacity: 1; } 100% { transform: translateY(-30px); opacity: 0; } }
@keyframes lockGuard { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
@keyframes scannerLine { 0% { transform: translateY(-60px); } 50% { transform: translateY(60px); } 100% { transform: translateY(-60px); } }
@keyframes sparkUp { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-60px) scale(1.5); opacity: 0; } }
@keyframes rotateCog { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
</style>
</head>
<body>
<div class="bg-grid"></div>
<header class="showcase-header">
<h1 class="showcase-title">Interactive Animations Showcase</h1>
<p class="showcase-subtitle">
Experience fully responsive, custom-animated SVG vector illustrations inspired by premium online repositories. Select any error directive below to dynamically evaluate its visual response.
</p>
</header>
<main class="dashboard">
<!-- Left Menu List -->
<aside class="menu-list">
<div class="error-card active card-404" onclick="loadPreview(404)">
<span class="card-num">404</span>
<div class="card-info">
<span class="card-label">Page Not Found</span>
<span class="card-cat">Client Request</span>
</div>
</div>
<div class="error-card card-403" onclick="loadPreview(403)">
<span class="card-num">403</span>
<div class="card-info">
<span class="card-label">Forbidden Vault</span>
<span class="card-cat">Access Control</span>
</div>
</div>
<div class="error-card card-500" onclick="loadPreview(500)">
<span class="card-num">500</span>
<div class="card-info">
<span class="card-label">Server Exception</span>
<span class="card-cat">Mainframe Failure</span>
</div>
</div>
<div class="error-card card-400" onclick="loadPreview(400)">
<span class="card-num">400</span>
<div class="card-info">
<span class="card-label">Bad Request</span>
<span class="card-cat">Syntax Matrix</span>
</div>
</div>
<div class="error-card card-401" onclick="loadPreview(401)">
<span class="card-num">401</span>
<div class="card-info">
<span class="card-label">Unauthorized</span>
<span class="card-cat">Credentials Gate</span>
</div>
</div>
<div class="error-card card-502" onclick="loadPreview(502)">
<span class="card-num">502</span>
<div class="card-info">
<span class="card-label">Bad Gateway</span>
<span class="card-cat">Edge Proxy</span>
</div>
</div>
<div class="error-card card-503" onclick="loadPreview(503)">
<span class="card-num">503</span>
<div class="card-info">
<span class="card-label">Maintenance</span>
<span class="card-cat">System Facility</span>
</div>
</div>
</aside>
<!-- Right Preview Engine -->
<section class="preview-panel" id="previewPanel">
<div class="panel-topbar">
<span class="live-badge">
<span class="live-dot"></span>
ACTIVE ANIMATION STAGE
</span>
<span class="directive-path" id="directiveIndicator">SIMULATION DIRECTIVE: /error.php?error=404</span>
</div>
<div class="preview-content" id="previewHolder">
<!-- Injected Dynamically by JS -->
</div>
</section>
</main>
<footer class="demo-footer">
<p style="color: var(--text-muted); font-size: 0.95rem;">
Ready to evaluate the live server response directly? Trigger the actual PHP error processor to observe parsing methods.
</p>
<a href="error.php?error=404" id="liveTestLink" class="btn-live-test">
Execute Real Server Payload (404)
</a>
</footer>
<!-- Database of Multi-Path Vectors & Explanations -->
<script>
const database = {
404: {
title: "Page Not Found",
subtitle: "Lost in the Digital Void",
desc: "The specific document or endpoint you are searching for has vanished or never existed. It may have been renamed, deleted, or moved to another dimensional sector.",
color: "#70A1FF",
svg: `
<svg viewBox="0 0 500 400" xmlns="http://www.w3.org/2000/svg">
<defs>
<radialGradient id="portalGlow" cx="50%" cy="40%" r="50%">
<stop offset="0%" stop-color="#70A1FF" stop-opacity="0.8"/>
<stop offset="60%" stop-color="#70A1FF" stop-opacity="0.2"/>
<stop offset="100%" stop-color="#0B0C10" stop-opacity="0"/>
</radialGradient>
<linearGradient id="beamGrad" x1="0%" y1="0%" x2="0%" y2="100%">
<stop offset="0%" stop-color="#FFFFFF" stop-opacity="0.9"/>
<stop offset="100%" stop-color="#70A1FF" stop-opacity="0.1"/>
</linearGradient>
</defs>
<!-- Outer Glowing Space Void Portal -->
<circle cx="250" cy="180" r="140" fill="url(#portalGlow)"/>
<circle cx="250" cy="180" r="120" fill="none" stroke="#70A1FF" stroke-width="2" stroke-dasharray="8 12" opacity="0.5">
<animateTransform attributeName="transform" type="rotate" values="0 250 180;360 250 180" dur="35s" repeatCount="indefinite"/>
</circle>
<!-- Animated Sweeping Tractor Beam -->
<g style="animation: beamFlash 2.5s ease-in-out infinite transform-origin: 250px 100px;">
<polygon points="250,110 110,350 390,350" fill="url(#beamGrad)" opacity="0.85"/>
<ellipse cx="250" cy="350" rx="140" ry="25" fill="#70A1FF" opacity="0.4"/>
</g>
<!-- Intricate Orbiting UFO Explorer Spacecraft -->
<g style="animation: driftUFO 4s ease-in-out infinite;">
<!-- Pilot Visor -->
<path d="M190,110 C190,70 310,70 310,110 Z" fill="#E2F0FF" opacity="0.9"/>
<!-- Reflection Highlight -->
<ellipse cx="220" cy="90" rx="15" ry="8" fill="#FFFFFF" opacity="0.7" transform="rotate(-20 220 90)"/>
<!-- Heavy Alloy UFO Hull -->
<ellipse cx="250" cy="110" rx="90" ry="22" fill="#2C3A4E" stroke="#70A1FF" stroke-width="3"/>
<ellipse cx="250" cy="105" rx="70" ry="12" fill="#3D4F66"/>
<!-- Flashing Edge Lights -->
<circle cx="180" cy="110" r="5" fill="#FF4757"><animate attributeName="opacity" values="0.2;1;0.2" dur="1s" repeatCount="indefinite"/></circle>
<circle cx="250" cy="115" r="6" fill="#1DD1A1"><animate attributeName="opacity" values="1;0.2;1" dur="1.5s" repeatCount="indefinite"/></circle>
<circle cx="320" cy="110" r="5" fill="#FFD32A"><animate attributeName="opacity" values="0.2;1;0.2" dur="0.8s" repeatCount="indefinite"/></circle>
<!-- Hover Antenna Top -->
<line x1="250" y1="75" x2="250" y2="45" stroke="#70A1FF" stroke-width="3"/>
<circle cx="250" cy="40" r="7" fill="#FFD32A"/>
</g>
<!-- Missing Trapped Page Block Being Lifted -->
<g transform="translate(225, 230)">
<rect x="0" y="0" width="50" height="65" rx="6" fill="#14161E" stroke="#70A1FF" stroke-width="2"/>
<line x1="10" y1="15" x2="40" y2="15" stroke="#70A1FF" stroke-width="3"/>
<line x1="10" y1="28" x2="30" y2="28" stroke="#70A1FF" stroke-width="3"/>
<text x="12" y="50" font-family="'Fredoka One', cursive" font-size="16" fill="#FF4757">404</text>
<animateTransform attributeName="transform" type="translate" values="225,280; 225,180; 225,280" dur="5s" repeatCount="indefinite"/>
</g>
<!-- Interrogation Marks Orbiting -->
<g font-family="'Fredoka One', cursive" font-size="32" fill="#FFD32A" style="animation: floatQ 3s infinite;">
<text x="150" y="220">?</text>
<text x="330" y="270" fill="#70A1FF" style="animation-delay: 1s;">?</text>
</g>
</svg>
`
},
403: {
title: "Forbidden",
subtitle: "Access Strictly Denied",
desc: "You do not have the required administrative permissions to view this directory or execute this operation. The server recognizes your request but refuses to authorize it.",
color: "#FF5252",
svg: `
<svg viewBox="0 0 500 400" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="vaultGrad" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#3A3E4E"/>
<stop offset="100%" stop-color="#12131A"/>
</linearGradient>
<linearGradient id="lockCore" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#FFD32A"/>
<stop offset="100%" stop-color="#FF7675"/>
</linearGradient>
</defs>
<!-- Heavy Master Firewall Hexagon Shield Frame -->
<polygon points="250,20 440,80 440,280 250,380 60,280 60,80" fill="url(#vaultGrad)" stroke="#FF5252" stroke-width="4"/>
<polygon points="250,35 420,90 420,270 250,360 80,270 80,90" fill="none" stroke="#FFFFFF" stroke-width="1" opacity="0.15"/>
<!-- Automated Security Biometric Laser Grid Sweep -->
<line x1="80" y1="150" x2="420" y2="150" stroke="#FF5252" stroke-width="6" opacity="0.85" style="animation: scannerLine 3s infinite linear transform-origin: 250px 200px;"/>
<!-- Pulsating Lock Alert Base Rings -->
<circle cx="250" cy="220" r="90" fill="none" stroke="#FF5252" stroke-width="6" opacity="0.4">
<animate attributeName="r" values="90;110;90" dur="1.5s" repeatCount="indefinite"/>
<animate attributeName="opacity" values="0.5;0;0.5" dur="1.5s" repeatCount="indefinite"/>
</circle>
<!-- Central Animated High-Impact Golden Master Lock -->
<g style="animation: lockGuard 3s infinite ease-in-out transform-origin: 250px 150px;">
<!-- Hardened Alloy Shackle -->
<path d="M190,180 L190,120 C190,70 310,70 310,120 L310,180" fill="none" stroke="#D2DAE2" stroke-width="26" stroke-linecap="round"/>
<!-- Massive Solid Padlock Block -->
<rect x="150" y="170" width="200" height="150" rx="20" fill="url(#lockCore)" stroke="#000000" stroke-width="4"/>
<!-- Keyhole Rejection Core -->
<circle cx="250" cy="225" r="22" fill="#0B0C10"/>
<polygon points="240,235 260,235 268,285 232,285" fill="#0B0C10"/>
<circle cx="250" cy="225" r="8" fill="#FF5252"><animate attributeName="opacity" values="0.2;1;0.2" dur="0.6s" repeatCount="indefinite"/></circle>
</g>
<!-- Floating Badge -->
<g transform="translate(200, 345)">
<rect x="0" y="0" width="100" height="24" rx="12" fill="#FF5252"/>
<text x="50" y="16" font-family="var(--font-mono)" font-size="12" fill="#000" font-weight="bold" text-anchor="middle">ACCESS DENIED</text>
</g>
</svg>
`
},
500: {
title: "Internal Server Error",
subtitle: "Critical System Failure",
desc: "Our mainframe encountered an unexpected internal stack exception while processing your directives. Our automated maintenance robots have been alerted to repair the physical memory cores.",
color: "#FF4757",
svg: `
<svg viewBox="0 0 500 400" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="serverRack" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" stop-color="#2D3436"/>
<stop offset="50%" stop-color="#636E72"/>
<stop offset="100%" stop-color="#2D3436"/>
</linearGradient>
<radialGradient id="fireCore" cx="50%" cy="50%" r="50%">
<stop offset="0%" stop-color="#FFD32A"/>
<stop offset="30%" stop-color="#FF4757"/>
<stop offset="100%" stop-color="#0B0C10" stop-opacity="0"/>
</radialGradient>
</defs>
<!-- Radiant Exploding Backfire Background -->
<circle cx="250" cy="220" r="160" fill="url(#fireCore)" opacity="0.5">
<animate attributeName="r" values="140;165;145;160" dur="1.5s" repeatCount="indefinite"/>
</circle>
<!-- Server Enterprise Base Unit -->
<rect x="150" y="60" width="200" height="300" rx="10" fill="url(#serverRack)" stroke="#95A5A6" stroke-width="4"/>
<!-- Healthy Operating Top Blades -->
<rect x="170" y="80" width="160" height="30" rx="4" fill="#1E272C"/>
<circle cx="190" cy="95" r="5" fill="#1DD1A1"/>
<circle cx="210" cy="95" r="5" fill="#1DD1A1"/>
<rect x="170" y="130" width="160" height="30" rx="4" fill="#1E272C"/>
<circle cx="190" cy="145" r="5" fill="#1DD1A1"/>
<circle cx="210" cy="145" r="5" fill="#FFD32A"/>
<!-- Massive Exploding Ruptured Third Blade -->
<rect x="170" y="180" width="160" height="80" rx="4" fill="#1E272C" stroke="#FF4757" stroke-width="2"/>
<!-- Flashing Overheated Warning Indicators -->
<g fill="#FF4757">
<circle cx="190" cy="200" r="6"><animate attributeName="opacity" values="1;0;1" dur="0.2s" repeatCount="indefinite"/></circle>
<circle cx="210" cy="200" r="6"><animate attributeName="opacity" values="0;1;0" dur="0.2s" repeatCount="indefinite"/></circle>
</g>
<!-- Animated High-Voltage Sparks -->
<path d="M140,200 L110,180 L120,230 L80,210" stroke="#FFD32A" stroke-width="5" fill="none">
<animate attributeName="opacity" values="0;1;0;1" dur="0.8s" repeatCount="indefinite"/>
</path>
<path d="M360,200 L390,170 L380,220 L420,240" stroke="#FFFFFF" stroke-width="5" fill="none">
<animate attributeName="opacity" values="1;0;1;0" dur="0.7s" repeatCount="indefinite"/>
</path>
<!-- Floating Broken Flying Hardware Cogwheels -->
<g fill="#95A5A6">
<g transform="translate(110, 110)" style="animation: rotateCog 4s infinite linear transform-origin: 10px 10px;">
<path d="M10,0 L14,6 L20,8 L16,14 L18,20 L12,18 L6,20 L8,14 L2,8 L8,6 Z"/>
</g>
<g transform="translate(370, 270)" fill="#FFD32A" style="animation: rotateCog 2.5s infinite linear reverse transform-origin: 10px 10px;">
<path d="M10,0 L14,6 L20,8 L16,14 L18,20 L12,18 L6,20 L8,14 L2,8 L8,6 Z"/>
</g>
</g>
<!-- Bottom Operational Unit -->
<rect x="170" y="280" width="160" height="40" rx="4" fill="#1E272C"/>
<line x1="190" y1="300" x2="310" y2="300" stroke="#1DD1A1" stroke-width="4" stroke-dasharray="10 5"/>
</svg>
`
},
400: {
title: "Bad Request",
subtitle: "Malformed Syntax Detected",
desc: "The server could not understand your request due to invalid syntax or missing routing parameters. Please check your submission payload.",
color: "#FF6B6B",
svg: `
<svg viewBox="0 0 500 400" xmlns="http://www.w3.org/2000/svg">
<!-- Snapped Chaos Interconnection Lines -->
<g stroke="#8E94A8" stroke-width="4" fill="none" opacity="0.6">
<path d="M40,120 Q150,30 250,150 T460,120" stroke-dasharray="12 12"/>
<path d="M40,280 Q220,360 250,200 T460,280"/>
</g>
<!-- Central Interrogated Routing Node -->
<circle cx="250" cy="200" r="75" fill="#14161E" stroke="#FF6B6B" stroke-width="6"/>
<circle cx="250" cy="200" r="55" fill="none" stroke="#FFD32A" stroke-width="3" stroke-dasharray="15 15">
<animateTransform attributeName="transform" type="rotate" values="0 250 200;360 250 200" dur="12s" repeatCount="indefinite"/>
</circle>
<!-- Floating Dropped Bad Query Blocks -->
<g font-family="var(--font-mono)" font-size="14" font-weight="bold" fill="#FFFFFF">
<g transform="translate(100, 80)" style="animation: driftUFO 3s infinite;">
<rect x="-10" y="-15" width="110" height="30" rx="6" fill="#FF6B6B"/>
<text x="45" y="5" text-anchor="middle">?type=FALSE</text>
</g>
<g transform="translate(330, 290)" style="animation: driftUFO 4s infinite reverse;">
<rect x="-10" y="-15" width="100" height="30" rx="6" fill="#FFA07A"/>
<text x="40" y="5" text-anchor="middle">&arg=ERROR</text>
</g>
</g>
<text x="250" y="215" font-family="var(--font-display)" font-size="45" fill="#FF6B6B" text-anchor="middle">?!</text>
</svg>
`
},
401: {
title: "Unauthorized",
subtitle: "Authentication Required",
desc: "Access to this endpoint requires validated digital credentials. Your authentication token is either missing, expired, or invalid.",
color: "#FFA07A",
svg: `
<svg viewBox="0 0 500 400" xmlns="http://www.w3.org/2000/svg">
<!-- Authorization Barrier Enclave -->
<rect x="150" y="80" width="200" height="240" rx="20" fill="#14161E" stroke="#FFA07A" stroke-width="5"/>
<!-- Fingerprint Biometric Target Area -->
<circle cx="250" cy="180" r="50" fill="none" stroke="#FFA07A" stroke-width="3" stroke-dasharray="5 5"/>
<path d="M230,180 C230,160 270,160 270,180 C270,200 230,200 230,180" fill="none" stroke="#FF5252" stroke-width="4" stroke-linecap="round"/>
<path d="M220,180 C220,140 280,140 280,180" fill="none" stroke="#FF5252" stroke-width="4" stroke-linecap="round"/>
<!-- Pulsating Reject Key Shard overlay -->
<g transform="translate(250, 280)" style="animation: lockGuard 2s infinite;">
<rect x="-30" y="-12" width="60" height="24" rx="12" fill="#FF5252"/>
<text x="0" y="4" font-family="var(--font-mono)" font-size="11" fill="#FFF" font-weight="bold" text-anchor="middle">INVALID_KEY</text>
</g>
<circle cx="250" cy="180" r="70" fill="none" stroke="#FF5252" stroke-width="2" opacity="0.8">
<animate attributeName="r" values="70;90;70" dur="1.5s" repeatCount="indefinite"/>
<animate attributeName="opacity" values="0.8;0;0.8" dur="1.5s" repeatCount="indefinite"/>
</circle>
</svg>
`
},
502: {
title: "Bad Gateway",
subtitle: "Upstream Connection Severed",
desc: "The edge proxy server received an invalid or corrupt response from the upstream application backend. Data transmission has been temporarily suspended.",
color: "#1DD1A1",
svg: `
<svg viewBox="0 0 500 400" xmlns="http://www.w3.org/2000/svg">
<!-- Cloud Nodes Proxy Setup -->
<path d="M60,250 C40,230 40,170 90,170 C100,130 170,130 190,170 C220,170 230,220 200,250 Z" fill="#1E272C" stroke="#1DD1A1" stroke-width="4"/>
<text x="130" y="220" font-family="var(--font-mono)" font-weight="bold" fill="#FFF" text-anchor="middle">EDGE PROXY</text>
<path d="M300,250 C270,220 280,170 310,170 C330,130 400,130 410,170 C460,170 460,230 440,250 Z" fill="#1E272C" stroke="#FF4757" stroke-width="4"/>
<text x="370" y="220" font-family="var(--font-mono)" font-weight="bold" fill="#FFF" text-anchor="middle">UPSTREAM</text>
<!-- Severed Transmission Glowing Optic Wires -->
<path d="M180,200 L230,200" stroke="#1DD1A1" stroke-width="8" stroke-linecap="round"/>
<path d="M270,200 L320,200" stroke="#FF4757" stroke-width="8" stroke-linecap="round"/>
<!-- Center Plasma Sever Arc Bolt -->
<g stroke="#FFD32A" stroke-width="5" fill="none">
<polyline points="225,180 245,200 235,210 255,230"><animate attributeName="opacity" values="0;1;0;1" dur="0.5s" repeatCount="indefinite"/></polyline>
</g>
<!-- Floating Dropped Bad Packets -->
<g fill="#FF4757">
<rect x="230" y="120" width="12" height="12" rx="2" style="animation: driftUFO 2s infinite;"/>
<rect x="260" y="270" width="16" height="12" rx="2" fill="#1DD1A1" style="animation: driftUFO 3s infinite reverse;"/>
</g>
</svg>
`
},
503: {
title: "Service Unavailable",
subtitle: "System Under Maintenance",
desc: "This facility is currently undergoing scheduled hardware optimization or is temporarily overloaded. Automated robotic arms are actively deploying replacement blade arrays.",
color: "#FFD32A",
svg: `
<svg viewBox="0 0 500 400" xmlns="http://www.w3.org/2000/svg">
<!-- Facility Assembly Deck -->
<rect x="80" y="320" width="340" height="20" rx="5" fill="#2C3A4E"/>
<!-- Active Animated Robotic Repair Crane Arm -->
<g style="animation: driftUFO 4s infinite transform-origin: 140px 320px;">
<path d="M120,320 L160,320 L150,260 L130,260 Z" fill="#14161E" stroke="#FFD32A" stroke-width="3"/>
<circle cx="140" cy="260" r="12" fill="#FFD32A"/>
<line x1="140" y1="260" x2="220" y2="140" stroke="#FFA07A" stroke-width="20" stroke-linecap="round"/>
<circle cx="220" cy="140" r="10" fill="#14161E" stroke="#FFD32A" stroke-width="3"/>
<line x1="220" y1="140" x2="310" y2="160" stroke="#FFA07A" stroke-width="14" stroke-linecap="round"/>
<rect x="310" y="150" width="20" height="20" rx="3" fill="#FFD32A"/>
<polygon points="330,155 350,158 330,165" fill="#FFFFFF"/>
</g>
<!-- Holographic Suspended Caution Display -->
<g transform="translate(260, 50)">
<rect x="0" y="0" width="150" height="80" rx="10" fill="#14161E" stroke="#FFD32A" stroke-width="4"/>
<text x="75" y="35" font-family="var(--font-display)" font-size="20" fill="#FFD32A" text-anchor="middle">MAINTENANCE</text>
<text x="75" y="60" font-family="var(--font-mono)" font-size="12" fill="#FFFFFF" font-weight="bold" text-anchor="middle">FACILITY DOWN</text>
</g>
<!-- Showers of Spark Droplets -->
<g fill="#FFD32A">
<circle cx="345" cy="160" r="3"><animateTransform attributeName="transform" type="translate" values="0,0; -10,80; 0,0" dur="0.8s" repeatCount="indefinite"/></circle>
<circle cx="340" cy="165" r="4" fill="#FFFFFF"><animateTransform attributeName="transform" type="translate" values="0,0; 20,90; 0,0" dur="1s" repeatCount="indefinite"/></circle>
</g>
</svg>
`
}
};
// Master UI Swapper Engine
function loadPreview(code) {
// Update active state classes on menu
document.querySelectorAll('.error-card').forEach(card => card.classList.remove('active'));
const matchedCard = document.querySelector(`.card-${code}`);
if (matchedCard) {
matchedCard.classList.add('active');
}
// Extract profile data
const entry = database[code] || database[404];
// Apply dynamic border variables and text color
document.documentElement.style.setProperty('--active-accent', entry.color);
const panel = document.getElementById('previewPanel');
panel.style.borderColor = entry.color;
// Update simulation indicator
document.getElementById('directiveIndicator').textContent = `SIMULATION DIRECTIVE: /error.php?error=${code}`;
document.getElementById('liveTestLink').href = `error.php?error=${code}`;
document.getElementById('liveTestLink').textContent = `Execute Real Server Payload (${code})`;
// Inject gorgeous synchronized presentation components
const holder = document.getElementById('previewHolder');
// Remove animation class briefly to force reflow and restart smooth transition
holder.style.animation = 'none';
holder.offsetHeight; // trigger reflow
holder.style.animation = 'panelFade 0.5s ease-out';
holder.innerHTML = `
<div class="preview-meta">
<h2 class="meta-num" style="color: ${entry.color};">${code}</h2>
<div>
<h3 class="meta-title">${entry.title}</h3>
<h4 class="meta-subtitle" style="color: ${entry.color};">${entry.subtitle}</h4>
</div>
<p class="meta-desc">${entry.desc}</p>
<div class="interactive-pulse-note">
<strong>Visual Simulation Note:</strong> In production, the backend automatically extracts this exact data structure via server context methods. Try clicking the graphic element to observe physical response damping.
</div>
</div>
<div class="vector-stage" id="activeStageBox">
${entry.svg}
</div>
`;
// Apply delightful clickable damping to the newly injected stage box
const stageBox = document.getElementById('activeStageBox');
if (stageBox) {
stageBox.style.cursor = 'pointer';
stageBox.setAttribute('title', 'Click to pulse stage damping');
stageBox.addEventListener('click', () => {
stageBox.style.transition = 'none';
stageBox.style.transform = 'scale(0.93) translateY(5px)';
setTimeout(() => {
stageBox.style.transition = 'transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)';
stageBox.style.transform = 'scale(1) translateY(0)';
}, 100);
});
}
}
// Initialize default view
document.addEventListener('DOMContentLoaded', () => {
loadPreview(404);
});
</script>
</body>
</html>