Spaces:
Running
Running
File size: 12,229 Bytes
3add73c |
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 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FF Experimental Control</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js"></script>
<style>
@keyframes pulse {
0% { opacity: 0.7; }
50% { opacity: 1; }
100% { opacity: 0.7; }
}
.pulse {
animation: pulse 2s infinite;
}
.weapon-btn.active {
box-shadow: 0 0 15px;
}
.weapon-btn.AR.active {
box-shadow: 0 0 15px #ff0000;
}
.weapon-btn.SMG.active {
box-shadow: 0 0 15px #00ff00;
}
.weapon-btn.Shotgun.active {
box-shadow: 0 0 15px #ff00ff;
}
.weapon-btn.Pistol.active {
box-shadow: 0 0 15px #ffff00;
}
.switch.on {
background-color: #10b981;
}
.switch.aimlock.on {
background-color: #ef4444;
}
.switch-knob {
transition: all 0.3s;
}
.switch.on .switch-knob {
transform: translateX(24px);
}
</style>
</head>
<body class="bg-black text-white font-mono">
<div class="container mx-auto px-4 py-8 max-w-md">
<div class="bg-gray-900 rounded-lg p-6 shadow-lg border border-gray-800">
<!-- Header -->
<div class="flex justify-between items-center mb-6">
<h1 class="text-xl font-bold text-red-500">FREE FIRE EXPERIMENTAL CONTROL</h1>
<div id="connection-status" class="flex items-center text-green-500">
<span class="mr-2">🟢</span>
<span>LOCAL BRIDGE ACTIVE</span>
</div>
</div>
<!-- Weapon Selector -->
<div class="mb-8">
<h2 class="text-sm uppercase tracking-wider text-gray-400 mb-3">WEAPON SYSTEM</h2>
<div class="grid grid-cols-2 gap-3">
<button id="weapon-ar" class="weapon-btn AR active py-4 rounded-lg bg-gray-800 hover:bg-gray-700 transition flex flex-col items-center justify-center border border-gray-700" data-weapon="AK47">
<i class="fas fa-gun text-2xl mb-1 text-red-500"></i>
<span>ASSAULT RIFLE</span>
<span class="text-xs text-gray-400 mt-1" id="current-weapon">AK47</span>
</button>
<button id="weapon-smg" class="weapon-btn SMG py-4 rounded-lg bg-gray-800 hover:bg-gray-700 transition flex flex-col items-center justify-center border border-gray-700" data-weapon="MP40">
<i class="fas fa-gun text-2xl mb-1 text-green-500"></i>
<span>SMG</span>
<span class="text-xs text-gray-400 mt-1">MP40</span>
</button>
<button id="weapon-shotgun" class="weapon-btn Shotgun py-4 rounded-lg bg-gray-800 hover:bg-gray-700 transition flex flex-col items-center justify-center border border-gray-700" data-weapon="M1014">
<i class="fas fa-gun text-2xl mb-1 text-purple-500"></i>
<span>SHOTGUN</span>
<span class="text-xs text-gray-400 mt-1">M1014</span>
</button>
<button id="weapon-pistol" class="weapon-btn Pistol py-4 rounded-lg bg-gray-800 hover:bg-gray-700 transition flex flex-col items-center justify-center border border-gray-700" data-weapon="DesertEagle">
<i class="fas fa-gun text-2xl mb-1 text-yellow-500"></i>
<span>PISTOL</span>
<span class="text-xs text-gray-400 mt-1">Desert Eagle</span>
</button>
</div>
</div>
<!-- Control Switches -->
<div class="space-y-5 mb-8">
<div class="flex items-center justify-between p-4 bg-gray-800 rounded-lg border border-gray-700">
<div>
<h3 class="font-bold">ZERO RECOIL</h3>
<p class="text-xs text-gray-400">100% compensation</p>
</div>
<div id="recoil-switch" class="switch on w-14 h-8 rounded-full relative cursor-pointer" onclick="toggleSwitch('recoil')">
<div class="switch-knob absolute w-6 h-6 rounded-full bg-white top-1 left-1"></div>
</div>
</div>
<div class="flex items-center justify-between p-4 bg-gray-800 rounded-lg border border-gray-700">
<div>
<h3 class="font-bold">HEADSHOT AIMLOCK</h3>
<p class="text-xs text-gray-400">80%+ accuracy</p>
</div>
<div id="aimlock-switch" class="switch aimlock w-14 h-8 rounded-full relative cursor-pointer" onclick="toggleSwitch('aimlock')">
<div class="switch-knob absolute w-6 h-6 rounded-full bg-white top-1 left-1"></div>
</div>
</div>
</div>
<!-- Real-time Feedback -->
<div class="bg-gray-900 p-4 rounded-lg border border-gray-800 mb-6">
<h2 class="text-sm uppercase tracking-wider text-gray-400 mb-3">COMBAT FEEDBACK</h2>
<div class="space-y-3">
<div class="flex justify-between">
<span>Recoil Compensation:</span>
<span id="recoil-feedback" class="font-bold text-green-500">100%</span>
</div>
<div class="flex justify-between">
<span>Aimlock Accuracy:</span>
<span id="aimlock-feedback" class="font-bold text-red-500">82%</span>
</div>
<div class="flex justify-between">
<span>Targets Engaged:</span>
<span id="targets-feedback" class="font-bold">7</span>
</div>
<div class="flex justify-between">
<span>System Status:</span>
<span class="font-bold text-green-500">OPTIMAL</span>
</div>
</div>
</div>
<!-- Battle HUD -->
<div class="bg-gray-900 p-4 rounded-lg border border-gray-800 mb-6">
<h2 class="text-sm uppercase tracking-wider text-gray-400 mb-3">BATTLE HUD</h2>
<div class="grid grid-cols-2 gap-4">
<div>
<div class="text-xs text-gray-400">Target Distance</div>
<div class="text-xl font-bold">24.3m</div>
</div>
<div>
<div class="text-xs text-gray-400">Hit Probability</div>
<div class="text-xl font-bold">96%</div>
</div>
</div>
</div>
<!-- Emergency Button -->
<button id="panic-btn" class="w-full py-3 bg-red-900 hover:bg-red-800 text-white font-bold rounded-lg border border-red-700 transition flex items-center justify-center">
<i class="fas fa-power-off mr-2"></i>
PANIC DISABLE
</button>
</div>
<div class="text-center text-xs text-gray-600 mt-4">
EXPERIMENTAL SYSTEM v2.4.7 | LOCAL BRIDGE v1.9.3
</div>
</div>
<script>
// Current configuration
let config = {
recoil: true,
aimlock: true,
weapon: "AK47",
connected: true
};
// WebSocket simulation (in a real scenario this would connect to your local bridge)
function sendCommand() {
const command = {
command: "set_config",
recoil: config.recoil,
aimlock: config.aimlock,
weapon: config.weapon
};
console.log("Sending command:", command);
// In a real implementation, this would be: ws.send(JSON.stringify(command));
}
// Toggle switches
function toggleSwitch(type) {
const element = document.getElementById(`${type}-switch`);
const feedbackElement = document.getElementById(`${type}-feedback`);
config[type] = !config[type];
element.classList.toggle('on');
if (type === 'recoil') {
feedbackElement.textContent = config.recoil ? '100%' : '0%';
feedbackElement.className = config.recoil ? 'font-bold text-green-500' : 'font-bold text-gray-500';
} else if (type === 'aimlock') {
feedbackElement.textContent = config.aimlock ? '82%' : '0%';
feedbackElement.className = config.aimlock ? 'font-bold text-red-500' : 'font-bold text-gray-500';
}
sendCommand();
}
// Weapon selection
document.querySelectorAll('.weapon-btn').forEach(btn => {
btn.addEventListener('click', function() {
document.querySelectorAll('.weapon-btn').forEach(b => b.classList.remove('active'));
this.classList.add('active');
config.weapon = this.dataset.weapon;
document.getElementById('current-weapon').textContent = config.weapon;
sendCommand();
});
});
// Panic button
document.getElementById('panic-btn').addEventListener('click', function() {
// Disable all features
config.recoil = false;
config.aimlock = false;
// Update UI
document.getElementById('recoil-switch').classList.remove('on');
document.getElementById('aimlock-switch').classList.remove('on');
document.getElementById('recoil-feedback').textContent = '0%';
document.getElementById('recoil-feedback').className = 'font-bold text-gray-500';
document.getElementById('aimlock-feedback').textContent = '0%';
document.getElementById('aimlock-feedback').className = 'font-bold text-gray-500';
// Send emergency command
const command = {
command: "panic_disable"
};
console.log("Sending emergency command:", command);
// Visual feedback
this.classList.add('bg-red-700', 'pulse');
setTimeout(() => {
this.classList.remove('bg-red-700', 'pulse');
}, 2000);
});
// Simulate changing targets (demo only)
setInterval(() => {
if (config.aimlock) {
const targetsElement = document.getElementById('targets-feedback');
let targets = parseInt(targetsElement.textContent);
targets = (targets % 12) + 1; // Cycle 1-12
targetsElement.textContent = targets;
}
}, 3000);
// Initial command
sendCommand();
</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=Pankajpegu07/bbbbbbe" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |