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
Browse files- README.md +7 -5
- index.html +351 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: allu
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: gray
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,351 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>FF Headshot Master X</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<style>
|
| 9 |
+
.glow-btn {
|
| 10 |
+
box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
|
| 11 |
+
transition: all 0.3s ease;
|
| 12 |
+
}
|
| 13 |
+
.glow-btn:hover {
|
| 14 |
+
box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
|
| 15 |
+
}
|
| 16 |
+
.glow-toggle-on {
|
| 17 |
+
box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
|
| 18 |
+
}
|
| 19 |
+
.glow-toggle-off {
|
| 20 |
+
box-shadow: 0 0 10px rgba(248, 113, 113, 0.5);
|
| 21 |
+
}
|
| 22 |
+
.slider-thumb::-webkit-slider-thumb {
|
| 23 |
+
-webkit-appearance: none;
|
| 24 |
+
appearance: none;
|
| 25 |
+
width: 20px;
|
| 26 |
+
height: 20px;
|
| 27 |
+
border-radius: 50%;
|
| 28 |
+
background: #3b82f6;
|
| 29 |
+
cursor: pointer;
|
| 30 |
+
box-shadow: 0 0 5px rgba(59, 130, 246, 0.8);
|
| 31 |
+
}
|
| 32 |
+
.slider-thumb::-moz-range-thumb {
|
| 33 |
+
width: 20px;
|
| 34 |
+
height: 20px;
|
| 35 |
+
border-radius: 50%;
|
| 36 |
+
background: #3b82f6;
|
| 37 |
+
cursor: pointer;
|
| 38 |
+
box-shadow: 0 0 5px rgba(59, 130, 246, 0.8);
|
| 39 |
+
}
|
| 40 |
+
</style>
|
| 41 |
+
</head>
|
| 42 |
+
<body class="bg-gray-900 text-gray-100 min-h-screen">
|
| 43 |
+
<div class="container mx-auto px-4 py-8 max-w-md">
|
| 44 |
+
<header class="text-center mb-8">
|
| 45 |
+
<h1 class="text-3xl font-bold text-blue-400 mb-2">🔫 FF Headshot Master X</h1>
|
| 46 |
+
<p class="text-gray-400">Boost your headshot accuracy with AI-powered settings</p>
|
| 47 |
+
</header>
|
| 48 |
+
|
| 49 |
+
<main class="space-y-6">
|
| 50 |
+
<!-- Headshot Mode Selection -->
|
| 51 |
+
<section class="bg-gray-800 rounded-xl p-5 shadow-lg">
|
| 52 |
+
<h2 class="text-xl font-semibold mb-4 flex items-center">
|
| 53 |
+
<span class="mr-2">🎛️</span> Headshot Mode
|
| 54 |
+
</h2>
|
| 55 |
+
<div class="grid grid-cols-3 gap-3">
|
| 56 |
+
<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>
|
| 57 |
+
<button id="mode-max" class="mode-btn bg-gray-700 hover:bg-gray-600 py-3 rounded-lg font-medium transition">Max</button>
|
| 58 |
+
<button id="mode-pro" class="mode-btn bg-gray-700 hover:bg-gray-600 py-3 rounded-lg font-medium transition">Pro</button>
|
| 59 |
+
</div>
|
| 60 |
+
</section>
|
| 61 |
+
|
| 62 |
+
<!-- Drag Speed Slider -->
|
| 63 |
+
<section class="bg-gray-800 rounded-xl p-5 shadow-lg">
|
| 64 |
+
<h2 class="text-xl font-semibold mb-4 flex items-center">
|
| 65 |
+
<span class="mr-2">⚡</span> Drag Speed
|
| 66 |
+
</h2>
|
| 67 |
+
<div class="mb-2">
|
| 68 |
+
<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">
|
| 69 |
+
</div>
|
| 70 |
+
<div class="flex justify-between text-sm text-gray-400">
|
| 71 |
+
<span>Slow</span>
|
| 72 |
+
<span id="speed-label" class="font-medium text-blue-400">Medium</span>
|
| 73 |
+
<span>Ultra Fast</span>
|
| 74 |
+
</div>
|
| 75 |
+
</section>
|
| 76 |
+
|
| 77 |
+
<!-- DPI Selector -->
|
| 78 |
+
<section class="bg-gray-800 rounded-xl p-5 shadow-lg">
|
| 79 |
+
<h2 class="text-xl font-semibold mb-4 flex items-center">
|
| 80 |
+
<span class="mr-2">🖱️</span> DPI Settings
|
| 81 |
+
</h2>
|
| 82 |
+
<div class="grid grid-cols-3 gap-3">
|
| 83 |
+
<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>
|
| 84 |
+
<button id="dpi-480" class="dpi-btn bg-gray-700 hover:bg-gray-600 py-3 rounded-lg font-medium transition">480</button>
|
| 85 |
+
<button id="dpi-640" class="dpi-btn bg-gray-700 hover:bg-gray-600 py-3 rounded-lg font-medium transition">640</button>
|
| 86 |
+
</div>
|
| 87 |
+
</section>
|
| 88 |
+
|
| 89 |
+
<!-- Sensitivity Settings -->
|
| 90 |
+
<section class="bg-gray-800 rounded-xl p-5 shadow-lg">
|
| 91 |
+
<h2 class="text-xl font-semibold mb-4 flex items-center">
|
| 92 |
+
<span class="mr-2">🎮</span> Sensitivity
|
| 93 |
+
</h2>
|
| 94 |
+
|
| 95 |
+
<div class="mb-4">
|
| 96 |
+
<label for="general-sens" class="block mb-2 text-gray-300">General Sensitivity</label>
|
| 97 |
+
<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">
|
| 98 |
+
</div>
|
| 99 |
+
|
| 100 |
+
<div class="mb-4">
|
| 101 |
+
<label for="scope-sens" class="block mb-2 text-gray-300">Scope Sensitivity</label>
|
| 102 |
+
<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">
|
| 103 |
+
</div>
|
| 104 |
+
|
| 105 |
+
<div class="flex items-center justify-between mb-4">
|
| 106 |
+
<span class="text-gray-300">Aim Assist</span>
|
| 107 |
+
<label class="relative inline-flex items-center cursor-pointer">
|
| 108 |
+
<input type="checkbox" id="aim-assist" class="sr-only peer" checked>
|
| 109 |
+
<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>
|
| 110 |
+
</label>
|
| 111 |
+
</div>
|
| 112 |
+
|
| 113 |
+
<div class="flex items-center justify-between">
|
| 114 |
+
<span class="text-gray-300">Gyroscope</span>
|
| 115 |
+
<label class="relative inline-flex items-center cursor-pointer">
|
| 116 |
+
<input type="checkbox" id="gyroscope" class="sr-only peer">
|
| 117 |
+
<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>
|
| 118 |
+
</label>
|
| 119 |
+
</div>
|
| 120 |
+
</section>
|
| 121 |
+
|
| 122 |
+
<!-- HUD Layout Presets -->
|
| 123 |
+
<section class="bg-gray-800 rounded-xl p-5 shadow-lg">
|
| 124 |
+
<h2 class="text-xl font-semibold mb-4 flex items-center">
|
| 125 |
+
<span class="mr-2">🖥️</span> HUD Layout
|
| 126 |
+
</h2>
|
| 127 |
+
<div class="grid grid-cols-3 gap-3">
|
| 128 |
+
<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>
|
| 129 |
+
<button id="hud-claw" class="hud-btn bg-gray-700 hover:bg-gray-600 py-3 rounded-lg font-medium transition">3 Finger</button>
|
| 130 |
+
<button id="hud-pro" class="hud-btn bg-gray-700 hover:bg-gray-600 py-3 rounded-lg font-medium transition">4 Finger</button>
|
| 131 |
+
</div>
|
| 132 |
+
</section>
|
| 133 |
+
|
| 134 |
+
<!-- AI Prediction Display -->
|
| 135 |
+
<section class="bg-gray-800 rounded-xl p-5 shadow-lg">
|
| 136 |
+
<h2 class="text-xl font-semibold mb-4 flex items-center">
|
| 137 |
+
<span class="mr-2">🤖</span> AI Prediction
|
| 138 |
+
</h2>
|
| 139 |
+
<div id="ai-prediction" class="bg-gray-700 p-4 rounded-lg text-center text-blue-300 font-medium">
|
| 140 |
+
Headshot Accuracy: Medium
|
| 141 |
+
</div>
|
| 142 |
+
</section>
|
| 143 |
+
|
| 144 |
+
<!-- Output Section -->
|
| 145 |
+
<section class="bg-gray-800 rounded-xl p-5 shadow-lg">
|
| 146 |
+
<h2 class="text-xl font-semibold mb-4 flex items-center">
|
| 147 |
+
<span class="mr-2">⚙️</span> Configuration
|
| 148 |
+
</h2>
|
| 149 |
+
<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>{
|
| 150 |
+
"headshot_mode": "normal",
|
| 151 |
+
"drag_speed": 50,
|
| 152 |
+
"dpi": 320,
|
| 153 |
+
"general_sensitivity": 50,
|
| 154 |
+
"scope_sensitivity": 50,
|
| 155 |
+
"aim_assist": true,
|
| 156 |
+
"gyroscope": false,
|
| 157 |
+
"hud_layout": "default"
|
| 158 |
+
}</textarea>
|
| 159 |
+
<div class="flex space-x-3">
|
| 160 |
+
<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>
|
| 161 |
+
<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>
|
| 162 |
+
</div>
|
| 163 |
+
<div id="success-message" class="hidden mt-3 p-2 bg-green-700 text-white rounded-lg text-center">
|
| 164 |
+
Configuration applied successfully! 🎉
|
| 165 |
+
</div>
|
| 166 |
+
</section>
|
| 167 |
+
</main>
|
| 168 |
+
|
| 169 |
+
<footer class="mt-8 text-center text-gray-500 text-sm">
|
| 170 |
+
<p>FF Headshot Master X v1.0 - Offline Config Tool</p>
|
| 171 |
+
<p class="mt-1">Not affiliated with Garena Free Fire</p>
|
| 172 |
+
</footer>
|
| 173 |
+
</div>
|
| 174 |
+
|
| 175 |
+
<script>
|
| 176 |
+
// DOM Elements
|
| 177 |
+
const modeButtons = document.querySelectorAll('.mode-btn');
|
| 178 |
+
const dpiButtons = document.querySelectorAll('.dpi-btn');
|
| 179 |
+
const hudButtons = document.querySelectorAll('.hud-btn');
|
| 180 |
+
const dragSpeedSlider = document.getElementById('drag-speed');
|
| 181 |
+
const speedLabel = document.getElementById('speed-label');
|
| 182 |
+
const generalSens = document.getElementById('general-sens');
|
| 183 |
+
const scopeSens = document.getElementById('scope-sens');
|
| 184 |
+
const aimAssist = document.getElementById('aim-assist');
|
| 185 |
+
const gyroscope = document.getElementById('gyroscope');
|
| 186 |
+
const configOutput = document.getElementById('config-output');
|
| 187 |
+
const applyBtn = document.getElementById('apply-btn');
|
| 188 |
+
const exportBtn = document.getElementById('export-btn');
|
| 189 |
+
const successMessage = document.getElementById('success-message');
|
| 190 |
+
const aiPrediction = document.getElementById('ai-prediction');
|
| 191 |
+
|
| 192 |
+
// Current settings
|
| 193 |
+
let currentSettings = {
|
| 194 |
+
headshot_mode: 'normal',
|
| 195 |
+
drag_speed: 50,
|
| 196 |
+
dpi: 320,
|
| 197 |
+
general_sensitivity: 50,
|
| 198 |
+
scope_sensitivity: 50,
|
| 199 |
+
aim_assist: true,
|
| 200 |
+
gyroscope: false,
|
| 201 |
+
hud_layout: 'default'
|
| 202 |
+
};
|
| 203 |
+
|
| 204 |
+
// Initialize UI
|
| 205 |
+
function initUI() {
|
| 206 |
+
updateSpeedLabel(currentSettings.drag_speed);
|
| 207 |
+
updateConfigOutput();
|
| 208 |
+
updateAIPrediction();
|
| 209 |
+
}
|
| 210 |
+
|
| 211 |
+
// Update speed label based on value
|
| 212 |
+
function updateSpeedLabel(value) {
|
| 213 |
+
let speedText;
|
| 214 |
+
if (value < 20) speedText = 'Very Slow';
|
| 215 |
+
else if (value < 40) speedText = 'Slow';
|
| 216 |
+
else if (value < 60) speedText = 'Medium';
|
| 217 |
+
else if (value < 80) speedText = 'Fast';
|
| 218 |
+
else speedText = 'Ultra Fast';
|
| 219 |
+
|
| 220 |
+
speedLabel.textContent = speedText;
|
| 221 |
+
currentSettings.drag_speed = value;
|
| 222 |
+
}
|
| 223 |
+
|
| 224 |
+
// Update AI prediction
|
| 225 |
+
function updateAIPrediction() {
|
| 226 |
+
const { dpi, drag_speed } = currentSettings;
|
| 227 |
+
let prediction;
|
| 228 |
+
|
| 229 |
+
// Simple AI prediction logic
|
| 230 |
+
const score = (dpi / 100) * (drag_speed / 10);
|
| 231 |
+
|
| 232 |
+
if (score < 15) prediction = 'Low Head Accuracy';
|
| 233 |
+
else if (score < 25) prediction = 'Medium Head Accuracy';
|
| 234 |
+
else if (score < 35) prediction = 'High Head Accuracy';
|
| 235 |
+
else prediction = 'Extreme Head Accuracy';
|
| 236 |
+
|
| 237 |
+
aiPrediction.textContent = `Headshot Accuracy: ${prediction}`;
|
| 238 |
+
}
|
| 239 |
+
|
| 240 |
+
// Update config output
|
| 241 |
+
function updateConfigOutput() {
|
| 242 |
+
configOutput.value = JSON.stringify(currentSettings, null, 4);
|
| 243 |
+
updateAIPrediction();
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
+
// Handle mode selection
|
| 247 |
+
modeButtons.forEach(button => {
|
| 248 |
+
button.addEventListener('click', () => {
|
| 249 |
+
modeButtons.forEach(btn => {
|
| 250 |
+
btn.classList.remove('bg-blue-600', 'hover:bg-blue-700', 'glow-btn');
|
| 251 |
+
btn.classList.add('bg-gray-700', 'hover:bg-gray-600');
|
| 252 |
+
});
|
| 253 |
+
|
| 254 |
+
button.classList.remove('bg-gray-700', 'hover:bg-gray-600');
|
| 255 |
+
button.classList.add('bg-blue-600', 'hover:bg-blue-700', 'glow-btn');
|
| 256 |
+
|
| 257 |
+
currentSettings.headshot_mode = button.id.split('-')[1];
|
| 258 |
+
updateConfigOutput();
|
| 259 |
+
});
|
| 260 |
+
});
|
| 261 |
+
|
| 262 |
+
// Handle DPI selection
|
| 263 |
+
dpiButtons.forEach(button => {
|
| 264 |
+
button.addEventListener('click', () => {
|
| 265 |
+
dpiButtons.forEach(btn => {
|
| 266 |
+
btn.classList.remove('bg-blue-600', 'hover:bg-blue-700', 'glow-btn');
|
| 267 |
+
btn.classList.add('bg-gray-700', 'hover:bg-gray-600');
|
| 268 |
+
});
|
| 269 |
+
|
| 270 |
+
button.classList.remove('bg-gray-700', 'hover:bg-gray-600');
|
| 271 |
+
button.classList.add('bg-blue-600', 'hover:bg-blue-700', 'glow-btn');
|
| 272 |
+
|
| 273 |
+
currentSettings.dpi = parseInt(button.textContent);
|
| 274 |
+
updateConfigOutput();
|
| 275 |
+
});
|
| 276 |
+
});
|
| 277 |
+
|
| 278 |
+
// Handle HUD selection
|
| 279 |
+
hudButtons.forEach(button => {
|
| 280 |
+
button.addEventListener('click', () => {
|
| 281 |
+
hudButtons.forEach(btn => {
|
| 282 |
+
btn.classList.remove('bg-blue-600', 'hover:bg-blue-700', 'glow-btn');
|
| 283 |
+
btn.classList.add('bg-gray-700', 'hover:bg-gray-600');
|
| 284 |
+
});
|
| 285 |
+
|
| 286 |
+
button.classList.remove('bg-gray-700', 'hover:bg-gray-600');
|
| 287 |
+
button.classList.add('bg-blue-600', 'hover:bg-blue-700', 'glow-btn');
|
| 288 |
+
|
| 289 |
+
currentSettings.hud_layout = button.id.split('-')[1];
|
| 290 |
+
updateConfigOutput();
|
| 291 |
+
});
|
| 292 |
+
});
|
| 293 |
+
|
| 294 |
+
// Event listeners for sliders and toggles
|
| 295 |
+
dragSpeedSlider.addEventListener('input', (e) => {
|
| 296 |
+
updateSpeedLabel(parseInt(e.target.value));
|
| 297 |
+
updateConfigOutput();
|
| 298 |
+
});
|
| 299 |
+
|
| 300 |
+
generalSens.addEventListener('input', (e) => {
|
| 301 |
+
currentSettings.general_sensitivity = parseInt(e.target.value);
|
| 302 |
+
updateConfigOutput();
|
| 303 |
+
});
|
| 304 |
+
|
| 305 |
+
scopeSens.addEventListener('input', (e) => {
|
| 306 |
+
currentSettings.scope_sensitivity = parseInt(e.target.value);
|
| 307 |
+
updateConfigOutput();
|
| 308 |
+
});
|
| 309 |
+
|
| 310 |
+
aimAssist.addEventListener('change', (e) => {
|
| 311 |
+
currentSettings.aim_assist = e.target.checked;
|
| 312 |
+
const toggleDiv = e.target.nextElementSibling;
|
| 313 |
+
toggleDiv.classList.toggle('glow-toggle-on');
|
| 314 |
+
toggleDiv.classList.toggle('glow-toggle-off');
|
| 315 |
+
updateConfigOutput();
|
| 316 |
+
});
|
| 317 |
+
|
| 318 |
+
gyroscope.addEventListener('change', (e) => {
|
| 319 |
+
currentSettings.gyroscope = e.target.checked;
|
| 320 |
+
const toggleDiv = e.target.nextElementSibling;
|
| 321 |
+
toggleDiv.classList.toggle('glow-toggle-on');
|
| 322 |
+
toggleDiv.classList.toggle('glow-toggle-off');
|
| 323 |
+
updateConfigOutput();
|
| 324 |
+
});
|
| 325 |
+
|
| 326 |
+
// Apply config button
|
| 327 |
+
applyBtn.addEventListener('click', () => {
|
| 328 |
+
successMessage.classList.remove('hidden');
|
| 329 |
+
setTimeout(() => {
|
| 330 |
+
successMessage.classList.add('hidden');
|
| 331 |
+
}, 3000);
|
| 332 |
+
});
|
| 333 |
+
|
| 334 |
+
// Export config button
|
| 335 |
+
exportBtn.addEventListener('click', () => {
|
| 336 |
+
const blob = new Blob([configOutput.value], { type: 'application/json' });
|
| 337 |
+
const url = URL.createObjectURL(blob);
|
| 338 |
+
const a = document.createElement('a');
|
| 339 |
+
a.href = url;
|
| 340 |
+
a.download = `ff_headshot_config_${Date.now()}.json`;
|
| 341 |
+
document.body.appendChild(a);
|
| 342 |
+
a.click();
|
| 343 |
+
document.body.removeChild(a);
|
| 344 |
+
URL.revokeObjectURL(url);
|
| 345 |
+
});
|
| 346 |
+
|
| 347 |
+
// Initialize the app
|
| 348 |
+
initUI();
|
| 349 |
+
</script>
|
| 350 |
+
<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>
|
| 351 |
+
</html>
|