File size: 17,013 Bytes
0d82ddb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>FF Headshot Master X</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <style>
        .glow-btn {
            box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
            transition: all 0.3s ease;
        }
        .glow-btn:hover {
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
        }
        .glow-toggle-on {
            box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
        }
        .glow-toggle-off {
            box-shadow: 0 0 10px rgba(248, 113, 113, 0.5);
        }
        .slider-thumb::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #3b82f6;
            cursor: pointer;
            box-shadow: 0 0 5px rgba(59, 130, 246, 0.8);
        }
        .slider-thumb::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #3b82f6;
            cursor: pointer;
            box-shadow: 0 0 5px rgba(59, 130, 246, 0.8);
        }
    </style>
</head>
<body class="bg-gray-900 text-gray-100 min-h-screen">
    <div class="container mx-auto px-4 py-8 max-w-md">
        <header class="text-center mb-8">
            <h1 class="text-3xl font-bold text-blue-400 mb-2">🔫 FF Headshot Master X</h1>
            <p class="text-gray-400">Boost your headshot accuracy with AI-powered settings</p>
        </header>

        <main class="space-y-6">
            <!-- Headshot Mode Selection -->
            <section class="bg-gray-800 rounded-xl p-5 shadow-lg">
                <h2 class="text-xl font-semibold mb-4 flex items-center">
                    <span class="mr-2">🎛️</span> Headshot Mode
                </h2>
                <div class="grid grid-cols-3 gap-3">
                    <button id="mode-normal" class="mode-btn bg-blue-600 hover:bg-blue-700 glow-btn py-3 rounded-lg font-medium transition">Normal</button>
                    <button id="mode-max" class="mode-btn bg-gray-700 hover:bg-gray-600 py-3 rounded-lg font-medium transition">Max</button>
                    <button id="mode-pro" class="mode-btn bg-gray-700 hover:bg-gray-600 py-3 rounded-lg font-medium transition">Pro</button>
                </div>
            </section>

            <!-- Drag Speed Slider -->
            <section class="bg-gray-800 rounded-xl p-5 shadow-lg">
                <h2 class="text-xl font-semibold mb-4 flex items-center">
                    <span class="mr-2"></span> Drag Speed
                </h2>
                <div class="mb-2">
                    <input type="range" id="drag-speed" min="0" max="100" value="50" class="w-full h-2 bg-gray-700 rounded-lg appearance-none cursor-pointer slider-thumb">
                </div>
                <div class="flex justify-between text-sm text-gray-400">
                    <span>Slow</span>
                    <span id="speed-label" class="font-medium text-blue-400">Medium</span>
                    <span>Ultra Fast</span>
                </div>
            </section>

            <!-- DPI Selector -->
            <section class="bg-gray-800 rounded-xl p-5 shadow-lg">
                <h2 class="text-xl font-semibold mb-4 flex items-center">
                    <span class="mr-2">🖱️</span> DPI Settings
                </h2>
                <div class="grid grid-cols-3 gap-3">
                    <button id="dpi-320" class="dpi-btn bg-blue-600 hover:bg-blue-700 glow-btn py-3 rounded-lg font-medium transition">320</button>
                    <button id="dpi-480" class="dpi-btn bg-gray-700 hover:bg-gray-600 py-3 rounded-lg font-medium transition">480</button>
                    <button id="dpi-640" class="dpi-btn bg-gray-700 hover:bg-gray-600 py-3 rounded-lg font-medium transition">640</button>
                </div>
            </section>

            <!-- Sensitivity Settings -->
            <section class="bg-gray-800 rounded-xl p-5 shadow-lg">
                <h2 class="text-xl font-semibold mb-4 flex items-center">
                    <span class="mr-2">🎮</span> Sensitivity
                </h2>
                
                <div class="mb-4">
                    <label for="general-sens" class="block mb-2 text-gray-300">General Sensitivity</label>
                    <input type="range" id="general-sens" min="0" max="100" value="50" class="w-full h-2 bg-gray-700 rounded-lg appearance-none cursor-pointer slider-thumb">
                </div>
                
                <div class="mb-4">
                    <label for="scope-sens" class="block mb-2 text-gray-300">Scope Sensitivity</label>
                    <input type="range" id="scope-sens" min="0" max="100" value="50" class="w-full h-2 bg-gray-700 rounded-lg appearance-none cursor-pointer slider-thumb">
                </div>
                
                <div class="flex items-center justify-between mb-4">
                    <span class="text-gray-300">Aim Assist</span>
                    <label class="relative inline-flex items-center cursor-pointer">
                        <input type="checkbox" id="aim-assist" class="sr-only peer" checked>
                        <div class="w-11 h-6 bg-red-500 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-green-500 glow-toggle-on"></div>
                    </label>
                </div>
                
                <div class="flex items-center justify-between">
                    <span class="text-gray-300">Gyroscope</span>
                    <label class="relative inline-flex items-center cursor-pointer">
                        <input type="checkbox" id="gyroscope" class="sr-only peer">
                        <div class="w-11 h-6 bg-red-500 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-green-500 glow-toggle-off"></div>
                    </label>
                </div>
            </section>

            <!-- HUD Layout Presets -->
            <section class="bg-gray-800 rounded-xl p-5 shadow-lg">
                <h2 class="text-xl font-semibold mb-4 flex items-center">
                    <span class="mr-2">🖥️</span> HUD Layout
                </h2>
                <div class="grid grid-cols-3 gap-3">
                    <button id="hud-default" class="hud-btn bg-blue-600 hover:bg-blue-700 glow-btn py-3 rounded-lg font-medium transition">Default</button>
                    <button id="hud-claw" class="hud-btn bg-gray-700 hover:bg-gray-600 py-3 rounded-lg font-medium transition">3 Finger</button>
                    <button id="hud-pro" class="hud-btn bg-gray-700 hover:bg-gray-600 py-3 rounded-lg font-medium transition">4 Finger</button>
                </div>
            </section>

            <!-- AI Prediction Display -->
            <section class="bg-gray-800 rounded-xl p-5 shadow-lg">
                <h2 class="text-xl font-semibold mb-4 flex items-center">
                    <span class="mr-2">🤖</span> AI Prediction
                </h2>
                <div id="ai-prediction" class="bg-gray-700 p-4 rounded-lg text-center text-blue-300 font-medium">
                    Headshot Accuracy: Medium
                </div>
            </section>

            <!-- Output Section -->
            <section class="bg-gray-800 rounded-xl p-5 shadow-lg">
                <h2 class="text-xl font-semibold mb-4 flex items-center">
                    <span class="mr-2">⚙️</span> Configuration
                </h2>
                <textarea id="config-output" class="w-full h-32 bg-gray-700 text-gray-200 p-3 rounded-lg mb-4 font-mono text-sm" readonly>{
    "headshot_mode": "normal",
    "drag_speed": 50,
    "dpi": 320,
    "general_sensitivity": 50,
    "scope_sensitivity": 50,
    "aim_assist": true,
    "gyroscope": false,
    "hud_layout": "default"
}</textarea>
                <div class="flex space-x-3">
                    <button id="apply-btn" class="flex-1 bg-green-600 hover:bg-green-700 glow-btn py-3 rounded-lg font-medium transition">Apply Config</button>
                    <button id="export-btn" class="flex-1 bg-blue-600 hover:bg-blue-700 glow-btn py-3 rounded-lg font-medium transition">Export Config</button>
                </div>
                <div id="success-message" class="hidden mt-3 p-2 bg-green-700 text-white rounded-lg text-center">
                    Configuration applied successfully! 🎉
                </div>
            </section>
        </main>

        <footer class="mt-8 text-center text-gray-500 text-sm">
            <p>FF Headshot Master X v1.0 - Offline Config Tool</p>
            <p class="mt-1">Not affiliated with Garena Free Fire</p>
        </footer>
    </div>

    <script>
        // DOM Elements
        const modeButtons = document.querySelectorAll('.mode-btn');
        const dpiButtons = document.querySelectorAll('.dpi-btn');
        const hudButtons = document.querySelectorAll('.hud-btn');
        const dragSpeedSlider = document.getElementById('drag-speed');
        const speedLabel = document.getElementById('speed-label');
        const generalSens = document.getElementById('general-sens');
        const scopeSens = document.getElementById('scope-sens');
        const aimAssist = document.getElementById('aim-assist');
        const gyroscope = document.getElementById('gyroscope');
        const configOutput = document.getElementById('config-output');
        const applyBtn = document.getElementById('apply-btn');
        const exportBtn = document.getElementById('export-btn');
        const successMessage = document.getElementById('success-message');
        const aiPrediction = document.getElementById('ai-prediction');

        // Current settings
        let currentSettings = {
            headshot_mode: 'normal',
            drag_speed: 50,
            dpi: 320,
            general_sensitivity: 50,
            scope_sensitivity: 50,
            aim_assist: true,
            gyroscope: false,
            hud_layout: 'default'
        };

        // Initialize UI
        function initUI() {
            updateSpeedLabel(currentSettings.drag_speed);
            updateConfigOutput();
            updateAIPrediction();
        }

        // Update speed label based on value
        function updateSpeedLabel(value) {
            let speedText;
            if (value < 20) speedText = 'Very Slow';
            else if (value < 40) speedText = 'Slow';
            else if (value < 60) speedText = 'Medium';
            else if (value < 80) speedText = 'Fast';
            else speedText = 'Ultra Fast';
            
            speedLabel.textContent = speedText;
            currentSettings.drag_speed = value;
        }

        // Update AI prediction
        function updateAIPrediction() {
            const { dpi, drag_speed } = currentSettings;
            let prediction;
            
            // Simple AI prediction logic
            const score = (dpi / 100) * (drag_speed / 10);
            
            if (score < 15) prediction = 'Low Head Accuracy';
            else if (score < 25) prediction = 'Medium Head Accuracy';
            else if (score < 35) prediction = 'High Head Accuracy';
            else prediction = 'Extreme Head Accuracy';
            
            aiPrediction.textContent = `Headshot Accuracy: ${prediction}`;
        }

        // Update config output
        function updateConfigOutput() {
            configOutput.value = JSON.stringify(currentSettings, null, 4);
            updateAIPrediction();
        }

        // Handle mode selection
        modeButtons.forEach(button => {
            button.addEventListener('click', () => {
                modeButtons.forEach(btn => {
                    btn.classList.remove('bg-blue-600', 'hover:bg-blue-700', 'glow-btn');
                    btn.classList.add('bg-gray-700', 'hover:bg-gray-600');
                });
                
                button.classList.remove('bg-gray-700', 'hover:bg-gray-600');
                button.classList.add('bg-blue-600', 'hover:bg-blue-700', 'glow-btn');
                
                currentSettings.headshot_mode = button.id.split('-')[1];
                updateConfigOutput();
            });
        });

        // Handle DPI selection
        dpiButtons.forEach(button => {
            button.addEventListener('click', () => {
                dpiButtons.forEach(btn => {
                    btn.classList.remove('bg-blue-600', 'hover:bg-blue-700', 'glow-btn');
                    btn.classList.add('bg-gray-700', 'hover:bg-gray-600');
                });
                
                button.classList.remove('bg-gray-700', 'hover:bg-gray-600');
                button.classList.add('bg-blue-600', 'hover:bg-blue-700', 'glow-btn');
                
                currentSettings.dpi = parseInt(button.textContent);
                updateConfigOutput();
            });
        });

        // Handle HUD selection
        hudButtons.forEach(button => {
            button.addEventListener('click', () => {
                hudButtons.forEach(btn => {
                    btn.classList.remove('bg-blue-600', 'hover:bg-blue-700', 'glow-btn');
                    btn.classList.add('bg-gray-700', 'hover:bg-gray-600');
                });
                
                button.classList.remove('bg-gray-700', 'hover:bg-gray-600');
                button.classList.add('bg-blue-600', 'hover:bg-blue-700', 'glow-btn');
                
                currentSettings.hud_layout = button.id.split('-')[1];
                updateConfigOutput();
            });
        });

        // Event listeners for sliders and toggles
        dragSpeedSlider.addEventListener('input', (e) => {
            updateSpeedLabel(parseInt(e.target.value));
            updateConfigOutput();
        });

        generalSens.addEventListener('input', (e) => {
            currentSettings.general_sensitivity = parseInt(e.target.value);
            updateConfigOutput();
        });

        scopeSens.addEventListener('input', (e) => {
            currentSettings.scope_sensitivity = parseInt(e.target.value);
            updateConfigOutput();
        });

        aimAssist.addEventListener('change', (e) => {
            currentSettings.aim_assist = e.target.checked;
            const toggleDiv = e.target.nextElementSibling;
            toggleDiv.classList.toggle('glow-toggle-on');
            toggleDiv.classList.toggle('glow-toggle-off');
            updateConfigOutput();
        });

        gyroscope.addEventListener('change', (e) => {
            currentSettings.gyroscope = e.target.checked;
            const toggleDiv = e.target.nextElementSibling;
            toggleDiv.classList.toggle('glow-toggle-on');
            toggleDiv.classList.toggle('glow-toggle-off');
            updateConfigOutput();
        });

        // Apply config button
        applyBtn.addEventListener('click', () => {
            successMessage.classList.remove('hidden');
            setTimeout(() => {
                successMessage.classList.add('hidden');
            }, 3000);
        });

        // Export config button
        exportBtn.addEventListener('click', () => {
            const blob = new Blob([configOutput.value], { type: 'application/json' });
            const url = URL.createObjectURL(blob);
            const a = document.createElement('a');
            a.href = url;
            a.download = `ff_headshot_config_${Date.now()}.json`;
            document.body.appendChild(a);
            a.click();
            document.body.removeChild(a);
            URL.revokeObjectURL(url);
        });

        // Initialize the app
        initUI();
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Pnkj01/allu" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>