allu / index.html
Pnkj01's picture
Build me a mobile-friendly headshot booster web app called "FF Headshot Master X". The app should include the following features: 🎛️ UI Elements: Select Headshot Mode: Normal, Max, Pro Drag Speed Slider: 0–100 (live label shows "Slow" to "Ultra Fast") DPI Selector: 320, 480, 640 Sensitivity Settings: General Sensitivity Scope Sensitivity Aim Assist (Toggle ON/OFF) Gyroscope (Toggle ON/OFF) HUD Layout Presets: Default 3 Finger Claw 4 Finger Pro ⚙️ Output Section: A textarea box that shows generated JSON config based on selected settings Button: “Apply Config” – when clicked: Shows a success message Exports a .json or .txt configuration that can be saved or pasted into Free Fire files 🌑 Style Requirements: Dark themed UI with modern glowing buttons Use TailwindCSS or minimal inline styles Fully responsive on mobile screens Use emoji icons (🎮, 🔫, ⚙️) to label sections 💡 Optional Logic: Use basic JavaScript logic to simulate "ML drag prediction" based on drag speed and DPI Example: If DPI = 640 & Drag Speed = 90 → Boosted Aim Mode = High Head Accuracy NOTE: Do not connect to server or API. This must be fully offline. Everything should run client-side in the browser. User must be able to minimize the browser and reopen settings later. - Initial Deployment
0d82ddb verified
Raw
History Blame Contribute Delete
17 kB
<!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>