-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
191 lines (179 loc) · 6.18 KB
/
index.html
File metadata and controls
191 lines (179 loc) · 6.18 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
<!DOCTYPE html>
<html lang="en" class="bg-[#0a0a0a] text-zinc-100 overflow-x-hidden">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="referrer" content="no-referrer-when-downgrade">
<title>FLETCH GAMES</title>
<script src="https://cdn.tailwindcss.com"></script>
<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=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@500;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Inter', sans-serif;
-webkit-font-smoothing: antialiased;
}
h1, h2, h3, .heading-font {
font-family: 'Space Grotesk', sans-serif;
}
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
background: #222;
}
::-webkit-scrollbar-thumb:hover {
background: #444;
}
iframe {
background: #000;
}
/* FNAF Thematic Animations */
@keyframes fnaf-flicker {
0% { opacity: 1; }
3% { opacity: 0.8; }
6% { opacity: 1; }
7% { opacity: 0.9; }
8% { opacity: 1; }
45% { opacity: 1; }
46% { opacity: 0.7; }
47% { opacity: 1; }
90% { opacity: 1; }
91% { opacity: 0.85; }
92% { opacity: 1; }
}
@keyframes scanline {
0% { transform: translateY(-100%); }
100% { transform: translateY(100%); }
}
@keyframes noise {
0%, 100% { background-position: 0 0; }
10% { background-position: -5% -10%; }
20% { background-position: -15% 5%; }
30% { background-position: 7% -25%; }
40% { background-position: 20% 25%; }
50% { background-position: -25% 10%; }
60% { background-position: 15% 5%; }
70% { background-position: 0% 15%; }
80% { background-position: 25% 35%; }
90% { background-position: -10% 10%; }
}
.fnaf-section {
position: relative;
background: #050505;
animation: fnaf-flicker 5s infinite;
}
.fnaf-section::before {
content: " ";
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
background-size: 100% 2px, 3px 100%;
z-index: 2;
pointer-events: none;
}
.fnaf-static-overlay {
position: absolute;
top: -100%;
left: -100%;
right: -100%;
bottom: -100%;
background-image: url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
opacity: 0.08;
z-index: 1;
pointer-events: none;
animation: noise 0.2s steps(4) infinite;
}
.scanline-effect {
position: absolute;
width: 100%;
height: 100px;
background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.02), transparent);
animation: scanline 8s linear infinite;
pointer-events: none;
z-index: 3;
}
</style>
<script>
/**
* COMPLETE YANDEX SDK EMULATOR
* Dieses Script simuliert die gesamte Yandex Games Umgebung.
* Ohne diesen Emulator bleiben FNaF 1 & 3 Remastered im Loading Screen hängen.
*/
window.Ya = {
Rum: {
logError: function() {},
sendTimeMark: function() {},
sendResTiming: function() {},
getTime: function() { return Date.now(); },
ERROR_LEVEL: { INFO: 'info', DEBUG: 'debug', WARN: 'warn', ERROR: 'error', FATAL: 'fatal' }
},
Metrika2: function() { return { params: function() {} }; }
};
window.YandexGamesSDK = {
environment: {
app: { id: "364779" },
browser: { lang: "en" },
i18n: { lang: "en", tld: "com" },
params: {}
},
game: {
info: { isDraft: false },
player: { hasAuthOnStart: false }
}
};
// Automatischer Handshake für Iframe-Nachrichten
window.addEventListener('message', function(e) {
let data;
try {
data = typeof e.data === 'string' ? JSON.parse(e.data) : e.data;
} catch(err) { return; }
if (data && (data.source === 'YandexGamesSDK' || data.channel === 'EARLY_SDK_EVENT')) {
// Wir antworten dem Spiel, dass das SDK bereit ist
const response = {
source: 'YandexGamesSDK',
messageId: data.messageId,
};
// Spezieller Check für FNaF 3 Remastered Herkunftsprüfung
if (data.actionName === 'GET_IFRAME_ORIGIN_SRC') {
response.channel = 'EARLY_SDK_EVENT';
response.payload = e.origin; // Wir akzeptieren die Herkunft
} else if (data.type === 'environment' || data.type === 'options') {
response.data = {
status: 'success',
environment: window.YandexGamesSDK.environment,
options: { deviceType: 'desktop' }
};
} else {
response.data = { status: 'success' };
}
if (e.source) {
e.source.postMessage(JSON.stringify(response), '*');
}
}
});
</script>
<script type="importmap">
{
"imports": {
"react": "https://esm.sh/react@19.0.0",
"react-dom": "https://esm.sh/react-dom@19.0.0",
"react-dom/client": "https://esm.sh/react-dom@19.0.0/client",
"lucide-react": "https://esm.sh/lucide-react@0.460.0?external=react",
"react-dom/": "https://esm.sh/react-dom@^19.2.4/"
}
}
</script>
</head>
<body class="antialiased">
<div id="root"></div>
<script type="module" src="index.js"></script>
</body>
</html>