Spaces:
Running
Running
Add 3 files
Browse files- README.md +7 -5
- index.html +417 -19
- prompts.txt +0 -0
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: bomb-ide-2
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: yellow
|
| 5 |
+
colorTo: red
|
| 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,417 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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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>💣 Bomb IDE - For Explosive Code Detonation</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/atom-one-dark.min.css">
|
| 9 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script>
|
| 10 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/languages/python.min.js"></script>
|
| 11 |
+
<style>
|
| 12 |
+
@keyframes shake {
|
| 13 |
+
0%, 100% { transform: translateX(0); }
|
| 14 |
+
10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
|
| 15 |
+
20%, 40%, 60%, 80% { transform: translateX(5px); }
|
| 16 |
+
}
|
| 17 |
+
@keyframes flash {
|
| 18 |
+
0%, 100% { background-color: transparent; }
|
| 19 |
+
50% { background-color: rgba(239, 68, 68, 0.3); }
|
| 20 |
+
}
|
| 21 |
+
@keyframes particle-explode {
|
| 22 |
+
0% { transform: scale(1); opacity: 1; }
|
| 23 |
+
100% { transform: scale(5); opacity: 0; }
|
| 24 |
+
}
|
| 25 |
+
@keyframes fuse-burn {
|
| 26 |
+
0% { width: 100%; }
|
| 27 |
+
100% { width: 0%; }
|
| 28 |
+
}
|
| 29 |
+
.shake {
|
| 30 |
+
animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
|
| 31 |
+
}
|
| 32 |
+
.flash {
|
| 33 |
+
animation: flash 0.3s ease-out;
|
| 34 |
+
}
|
| 35 |
+
.particle {
|
| 36 |
+
position: absolute;
|
| 37 |
+
border-radius: 50%;
|
| 38 |
+
animation: particle-explode 1s ease-out forwards;
|
| 39 |
+
}
|
| 40 |
+
.fuse {
|
| 41 |
+
height: 4px;
|
| 42 |
+
background: linear-gradient(to right, #f59e0b, #ef4444);
|
| 43 |
+
animation: fuse-burn 3s linear forwards;
|
| 44 |
+
}
|
| 45 |
+
.terminal-output {
|
| 46 |
+
font-family: 'Courier New', monospace;
|
| 47 |
+
white-space: pre-wrap;
|
| 48 |
+
}
|
| 49 |
+
.bomb-code {
|
| 50 |
+
border-left: 4px solid #ef4444;
|
| 51 |
+
}
|
| 52 |
+
.danger-zone {
|
| 53 |
+
box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
|
| 54 |
+
}
|
| 55 |
+
.explosion-effect {
|
| 56 |
+
position: absolute;
|
| 57 |
+
width: 100%;
|
| 58 |
+
height: 100%;
|
| 59 |
+
top: 0;
|
| 60 |
+
left: 0;
|
| 61 |
+
pointer-events: none;
|
| 62 |
+
z-index: 100;
|
| 63 |
+
overflow: hidden;
|
| 64 |
+
}
|
| 65 |
+
</style>
|
| 66 |
+
</head>
|
| 67 |
+
<body class="bg-gray-900 text-gray-100 min-h-screen overflow-hidden">
|
| 68 |
+
<!-- Explosion effect container -->
|
| 69 |
+
<div id="explosion-effect" class="explosion-effect hidden"></div>
|
| 70 |
+
|
| 71 |
+
<div class="container mx-auto px-4 py-8 max-w-7xl">
|
| 72 |
+
<!-- Header -->
|
| 73 |
+
<header class="flex items-center justify-between mb-8 border-b border-red-900 pb-4">
|
| 74 |
+
<div class="flex items-center">
|
| 75 |
+
<div class="w-12 h-12 bg-red-600 rounded-full flex items-center justify-center mr-4">
|
| 76 |
+
<span class="text-2xl">💣</span>
|
| 77 |
+
</div>
|
| 78 |
+
<div>
|
| 79 |
+
<h1 class="text-3xl font-bold">Bomb IDE</h1>
|
| 80 |
+
<p class="text-red-400">For Explosive Code Detonation</p>
|
| 81 |
+
</div>
|
| 82 |
+
</div>
|
| 83 |
+
<div class="flex items-center space-x-4">
|
| 84 |
+
<div class="bg-red-900 px-3 py-1 rounded-full text-sm flex items-center">
|
| 85 |
+
<div class="w-2 h-2 bg-red-500 rounded-full mr-2 animate-pulse"></div>
|
| 86 |
+
<span>ARMED</span>
|
| 87 |
+
</div>
|
| 88 |
+
<button id="emergency-stop" class="bg-gray-800 hover:bg-gray-700 px-4 py-2 rounded-lg text-sm font-medium flex items-center">
|
| 89 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 90 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
|
| 91 |
+
</svg>
|
| 92 |
+
Emergency Stop
|
| 93 |
+
</button>
|
| 94 |
+
</div>
|
| 95 |
+
</header>
|
| 96 |
+
|
| 97 |
+
<!-- Main IDE Layout -->
|
| 98 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
|
| 99 |
+
<!-- Code Editor -->
|
| 100 |
+
<div class="bg-gray-800 rounded-lg overflow-hidden danger-zone">
|
| 101 |
+
<div class="bg-gray-900 px-4 py-3 flex items-center justify-between border-b border-gray-700">
|
| 102 |
+
<div class="flex items-center">
|
| 103 |
+
<div class="w-3 h-3 bg-red-500 rounded-full mr-2"></div>
|
| 104 |
+
<h2 class="font-medium">bomb_code.py</h2>
|
| 105 |
+
</div>
|
| 106 |
+
<div class="flex items-center space-x-2">
|
| 107 |
+
<div class="text-xs text-gray-500">💣 BOMB MODE</div>
|
| 108 |
+
</div>
|
| 109 |
+
</div>
|
| 110 |
+
<div class="p-4">
|
| 111 |
+
<div class="mb-4">
|
| 112 |
+
<label class="block text-sm font-medium mb-2">Detonation Yield</label>
|
| 113 |
+
<div class="flex items-center space-x-4">
|
| 114 |
+
<select id="yield-select" class="bg-gray-700 border border-gray-600 rounded px-3 py-2 text-sm">
|
| 115 |
+
<option value="small">Small (Debug)</option>
|
| 116 |
+
<option value="medium" selected>Medium (Standard)</option>
|
| 117 |
+
<option value="large">Large (Production)</option>
|
| 118 |
+
<option value="extreme">Extreme (Overkill)</option>
|
| 119 |
+
</select>
|
| 120 |
+
<div class="flex-1">
|
| 121 |
+
<div class="fuse"></div>
|
| 122 |
+
</div>
|
| 123 |
+
</div>
|
| 124 |
+
</div>
|
| 125 |
+
<div class="relative">
|
| 126 |
+
<pre id="code-editor" class="bomb-code bg-gray-900 p-4 rounded-lg overflow-auto max-h-96"><code class="language-python"># Welcome to Bomb IDE!
|
| 127 |
+
# Write your explosive code here...
|
| 128 |
+
|
| 129 |
+
class Bomb:
|
| 130 |
+
def __init__(self, yield_level="medium"):
|
| 131 |
+
self.yield_level = yield_level
|
| 132 |
+
self.armed = False
|
| 133 |
+
|
| 134 |
+
def arm(self):
|
| 135 |
+
"""Arm the bomb for detonation"""
|
| 136 |
+
self.armed = True
|
| 137 |
+
return f"💣 Bomb armed at {self.yield_level} yield!"
|
| 138 |
+
|
| 139 |
+
def detonate(self):
|
| 140 |
+
"""Detonate the bomb with explosive force"""
|
| 141 |
+
if not self.armed:
|
| 142 |
+
raise Exception("Bomb not armed! Use .arm() first")
|
| 143 |
+
|
| 144 |
+
# Calculate explosive force based on yield
|
| 145 |
+
force = {
|
| 146 |
+
"small": 100,
|
| 147 |
+
"medium": 1000,
|
| 148 |
+
"large": 10000,
|
| 149 |
+
"extreme": 100000
|
| 150 |
+
}.get(self.yield_level, 1000)
|
| 151 |
+
|
| 152 |
+
return f"💥 KABOOM! Detonated with force {force}!"
|
| 153 |
+
|
| 154 |
+
# Create and detonate a bomb
|
| 155 |
+
bomb = Bomb(yield_level="medium")
|
| 156 |
+
print(bomb.arm())
|
| 157 |
+
print(bomb.detonate())</code></pre>
|
| 158 |
+
<button id="copy-code" class="absolute top-2 right-2 bg-gray-700 hover:bg-gray-600 text-gray-300 px-2 py-1 rounded text-xs">
|
| 159 |
+
Copy
|
| 160 |
+
</button>
|
| 161 |
+
</div>
|
| 162 |
+
</div>
|
| 163 |
+
<div class="bg-gray-900 px-4 py-3 border-t border-gray-700 flex justify-end">
|
| 164 |
+
<button id="detonate-btn" class="bg-gradient-to-r from-red-600 to-yellow-500 hover:from-red-700 hover:to-yellow-600 text-white px-6 py-2 rounded-lg font-bold flex items-center">
|
| 165 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 166 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" />
|
| 167 |
+
</svg>
|
| 168 |
+
DETONATE CODE
|
| 169 |
+
</button>
|
| 170 |
+
</div>
|
| 171 |
+
</div>
|
| 172 |
+
|
| 173 |
+
<!-- Terminal Output -->
|
| 174 |
+
<div class="bg-gray-800 rounded-lg overflow-hidden">
|
| 175 |
+
<div class="bg-gray-900 px-4 py-3 flex items-center justify-between border-b border-gray-700">
|
| 176 |
+
<div class="flex items-center">
|
| 177 |
+
<div class="w-3 h-3 bg-yellow-500 rounded-full mr-2"></div>
|
| 178 |
+
<h2 class="font-medium">DETONATION TERMINAL</h2>
|
| 179 |
+
</div>
|
| 180 |
+
<div class="flex items-center space-x-2">
|
| 181 |
+
<div class="text-xs text-gray-500">READY FOR BLAST</div>
|
| 182 |
+
</div>
|
| 183 |
+
</div>
|
| 184 |
+
<div class="p-4">
|
| 185 |
+
<div id="terminal-output" class="terminal-output bg-black text-green-400 p-4 rounded-lg h-96 overflow-y-auto font-mono text-sm">
|
| 186 |
+
<div class="text-yellow-400">Bomb IDE v1.0 - Explosive Code Detonation System</div>
|
| 187 |
+
<div class="text-gray-500">-----------------------------------------------</div>
|
| 188 |
+
<div class="mb-4">System initialized. Awaiting detonation sequence...</div>
|
| 189 |
+
<div id="output-content"></div>
|
| 190 |
+
</div>
|
| 191 |
+
</div>
|
| 192 |
+
<div class="bg-gray-900 px-4 py-3 border-t border-gray-700 flex items-center">
|
| 193 |
+
<div class="flex-1 flex items-center">
|
| 194 |
+
<div class="w-2 h-2 bg-green-500 rounded-full mr-2"></div>
|
| 195 |
+
<span class="text-xs text-gray-400">DETONATION READY</span>
|
| 196 |
+
</div>
|
| 197 |
+
<button id="clear-terminal" class="text-gray-400 hover:text-gray-200 text-sm flex items-center">
|
| 198 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 199 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
|
| 200 |
+
</svg>
|
| 201 |
+
Clear Debris
|
| 202 |
+
</button>
|
| 203 |
+
</div>
|
| 204 |
+
</div>
|
| 205 |
+
</div>
|
| 206 |
+
|
| 207 |
+
<!-- Bomb Status -->
|
| 208 |
+
<div class="mt-8 bg-gray-800 rounded-lg p-6">
|
| 209 |
+
<h2 class="text-xl font-bold mb-4 flex items-center">
|
| 210 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 mr-2 text-red-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 211 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.618 5.984A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016zM12 9v2m0 4h.01" />
|
| 212 |
+
</svg>
|
| 213 |
+
Detonation Status
|
| 214 |
+
</h2>
|
| 215 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
| 216 |
+
<div class="bg-gray-900 p-4 rounded-lg">
|
| 217 |
+
<div class="flex items-center justify-between mb-2">
|
| 218 |
+
<span class="text-sm text-gray-400">Last Detonation</span>
|
| 219 |
+
<span class="text-xs bg-red-900 text-red-400 px-2 py-1 rounded">N/A</span>
|
| 220 |
+
</div>
|
| 221 |
+
<div class="text-2xl font-bold" id="last-detonation">--</div>
|
| 222 |
+
</div>
|
| 223 |
+
<div class="bg-gray-900 p-4 rounded-lg">
|
| 224 |
+
<div class="flex items-center justify-between mb-2">
|
| 225 |
+
<span class="text-sm text-gray-400">Detonation Force</span>
|
| 226 |
+
<span class="text-xs bg-yellow-900 text-yellow-400 px-2 py-1 rounded">CALCULATING</span>
|
| 227 |
+
</div>
|
| 228 |
+
<div class="text-2xl font-bold" id="detonation-force">--</div>
|
| 229 |
+
</div>
|
| 230 |
+
<div class="bg-gray-900 p-4 rounded-lg">
|
| 231 |
+
<div class="flex items-center justify-between mb-2">
|
| 232 |
+
<span class="text-sm text-gray-400">System Integrity</span>
|
| 233 |
+
<span class="text-xs bg-green-900 text-green-400 px-2 py-1 rounded">100%</span>
|
| 234 |
+
</div>
|
| 235 |
+
<div class="h-2 bg-gray-700 rounded-full overflow-hidden">
|
| 236 |
+
<div id="integrity-bar" class="h-full bg-green-500" style="width: 100%"></div>
|
| 237 |
+
</div>
|
| 238 |
+
</div>
|
| 239 |
+
</div>
|
| 240 |
+
</div>
|
| 241 |
+
</div>
|
| 242 |
+
|
| 243 |
+
<script>
|
| 244 |
+
// Initialize syntax highlighting
|
| 245 |
+
document.addEventListener('DOMContentLoaded', (event) => {
|
| 246 |
+
hljs.highlightAll();
|
| 247 |
+
|
| 248 |
+
// Set up event listeners
|
| 249 |
+
document.getElementById('detonate-btn').addEventListener('click', detonateCode);
|
| 250 |
+
document.getElementById('clear-terminal').addEventListener('click', clearTerminal);
|
| 251 |
+
document.getElementById('copy-code').addEventListener('click', copyCode);
|
| 252 |
+
document.getElementById('emergency-stop').addEventListener('click', emergencyStop);
|
| 253 |
+
});
|
| 254 |
+
|
| 255 |
+
// Create explosion particles
|
| 256 |
+
function createExplosion(x, y, count = 30) {
|
| 257 |
+
const container = document.getElementById('explosion-effect');
|
| 258 |
+
container.innerHTML = '';
|
| 259 |
+
container.classList.remove('hidden');
|
| 260 |
+
|
| 261 |
+
const colors = ['#ef4444', '#f59e0b', '#f97316', '#facc15'];
|
| 262 |
+
|
| 263 |
+
for (let i = 0; i < count; i++) {
|
| 264 |
+
const particle = document.createElement('div');
|
| 265 |
+
particle.className = 'particle';
|
| 266 |
+
|
| 267 |
+
// Random properties
|
| 268 |
+
const size = Math.random() * 10 + 5;
|
| 269 |
+
const color = colors[Math.floor(Math.random() * colors.length)];
|
| 270 |
+
const duration = Math.random() * 0.5 + 0.5;
|
| 271 |
+
const delay = Math.random() * 0.3;
|
| 272 |
+
|
| 273 |
+
// Position relative to click
|
| 274 |
+
const offsetX = (Math.random() - 0.5) * 100;
|
| 275 |
+
const offsetY = (Math.random() - 0.5) * 100;
|
| 276 |
+
|
| 277 |
+
particle.style.width = `${size}px`;
|
| 278 |
+
particle.style.height = `${size}px`;
|
| 279 |
+
particle.style.backgroundColor = color;
|
| 280 |
+
particle.style.left = `${x + offsetX}px`;
|
| 281 |
+
particle.style.top = `${y + offsetY}px`;
|
| 282 |
+
particle.style.animationDuration = `${duration}s`;
|
| 283 |
+
particle.style.animationDelay = `${delay}s`;
|
| 284 |
+
|
| 285 |
+
container.appendChild(particle);
|
| 286 |
+
}
|
| 287 |
+
|
| 288 |
+
// Hide container after animation
|
| 289 |
+
setTimeout(() => {
|
| 290 |
+
container.classList.add('hidden');
|
| 291 |
+
}, 1000);
|
| 292 |
+
}
|
| 293 |
+
|
| 294 |
+
// Simulate terminal output
|
| 295 |
+
function terminalOutput(text, color = 'text-green-400', delay = 0) {
|
| 296 |
+
setTimeout(() => {
|
| 297 |
+
const output = document.getElementById('output-content');
|
| 298 |
+
const line = document.createElement('div');
|
| 299 |
+
line.className = `mb-1 ${color}`;
|
| 300 |
+
line.textContent = text;
|
| 301 |
+
output.appendChild(line);
|
| 302 |
+
output.scrollTop = output.scrollHeight;
|
| 303 |
+
}, delay);
|
| 304 |
+
}
|
| 305 |
+
|
| 306 |
+
// Detonate the code
|
| 307 |
+
function detonateCode() {
|
| 308 |
+
const yieldLevel = document.getElementById('yield-select').value;
|
| 309 |
+
const terminal = document.getElementById('terminal-output');
|
| 310 |
+
const detonateBtn = document.getElementById('detonate-btn');
|
| 311 |
+
|
| 312 |
+
// Visual feedback
|
| 313 |
+
terminal.classList.add('flash');
|
| 314 |
+
document.body.classList.add('shake');
|
| 315 |
+
detonateBtn.disabled = true;
|
| 316 |
+
detonateBtn.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2 animate-spin" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" /></svg>DETONATING...';
|
| 317 |
+
|
| 318 |
+
// Clear previous output
|
| 319 |
+
document.getElementById('output-content').innerHTML = '';
|
| 320 |
+
|
| 321 |
+
// Get current time for last detonation
|
| 322 |
+
const now = new Date();
|
| 323 |
+
const timeString = now.toLocaleTimeString();
|
| 324 |
+
document.getElementById('last-detonation').textContent = timeString;
|
| 325 |
+
|
| 326 |
+
// Calculate force based on yield
|
| 327 |
+
const forceMap = {
|
| 328 |
+
'small': 100,
|
| 329 |
+
'medium': 1000,
|
| 330 |
+
'large': 10000,
|
| 331 |
+
'extreme': 100000
|
| 332 |
+
};
|
| 333 |
+
const force = forceMap[yieldLevel] || 1000;
|
| 334 |
+
document.getElementById('detonation-force').textContent = force;
|
| 335 |
+
|
| 336 |
+
// Reduce system integrity slightly
|
| 337 |
+
const integrityBar = document.getElementById('integrity-bar');
|
| 338 |
+
const currentWidth = parseInt(integrityBar.style.width);
|
| 339 |
+
const newWidth = Math.max(0, currentWidth - (Math.random() * 5 + 5));
|
| 340 |
+
integrityBar.style.width = `${newWidth}%`;
|
| 341 |
+
|
| 342 |
+
// Terminal output sequence
|
| 343 |
+
terminalOutput('>>> Initiating detonation sequence...', 'text-yellow-400');
|
| 344 |
+
terminalOutput(`>>> Yield level set to: ${yieldLevel.toUpperCase()}`, 'text-yellow-400', 500);
|
| 345 |
+
terminalOutput('>>> Arming explosive payload...', 'text-yellow-400', 1000);
|
| 346 |
+
terminalOutput('💣 Bomb armed!', 'text-red-400', 1500);
|
| 347 |
+
terminalOutput('>>> Starting countdown...', 'text-yellow-400', 2000);
|
| 348 |
+
|
| 349 |
+
// Countdown
|
| 350 |
+
for (let i = 3; i > 0; i--) {
|
| 351 |
+
terminalOutput(`${i}...`, 'text-red-500', 2000 + (3 - i) * 500);
|
| 352 |
+
}
|
| 353 |
+
|
| 354 |
+
// Detonation
|
| 355 |
+
setTimeout(() => {
|
| 356 |
+
terminalOutput('💥 KABOOM!', 'text-red-500 font-bold', 3500);
|
| 357 |
+
terminalOutput(`Detonated with force ${force}!`, 'text-red-400', 4000);
|
| 358 |
+
terminalOutput('>>> Detonation successful!', 'text-green-500', 4500);
|
| 359 |
+
terminalOutput('>>> System checks complete', 'text-green-400', 5000);
|
| 360 |
+
|
| 361 |
+
// Create explosion effect
|
| 362 |
+
const rect = detonateBtn.getBoundingClientRect();
|
| 363 |
+
createExplosion(rect.left + rect.width/2, rect.top + rect.height/2, force/50);
|
| 364 |
+
|
| 365 |
+
// Reset button
|
| 366 |
+
setTimeout(() => {
|
| 367 |
+
detonateBtn.disabled = false;
|
| 368 |
+
detonateBtn.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" /></svg>DETONATE CODE';
|
| 369 |
+
terminal.classList.remove('flash');
|
| 370 |
+
document.body.classList.remove('shake');
|
| 371 |
+
}, 1000);
|
| 372 |
+
}, 3500);
|
| 373 |
+
}
|
| 374 |
+
|
| 375 |
+
// Clear terminal
|
| 376 |
+
function clearTerminal() {
|
| 377 |
+
document.getElementById('output-content').innerHTML = '';
|
| 378 |
+
terminalOutput('Terminal cleared. Ready for next detonation.', 'text-gray-500');
|
| 379 |
+
}
|
| 380 |
+
|
| 381 |
+
// Copy code to clipboard
|
| 382 |
+
function copyCode() {
|
| 383 |
+
const code = document.querySelector('#code-editor code').textContent;
|
| 384 |
+
navigator.clipboard.writeText(code).then(() => {
|
| 385 |
+
const btn = document.getElementById('copy-code');
|
| 386 |
+
btn.textContent = 'Copied!';
|
| 387 |
+
setTimeout(() => {
|
| 388 |
+
btn.textContent = 'Copy';
|
| 389 |
+
}, 2000);
|
| 390 |
+
});
|
| 391 |
+
}
|
| 392 |
+
|
| 393 |
+
// Emergency stop
|
| 394 |
+
function emergencyStop() {
|
| 395 |
+
const output = document.getElementById('output-content');
|
| 396 |
+
output.innerHTML = '';
|
| 397 |
+
|
| 398 |
+
terminalOutput('!!! EMERGENCY STOP ACTIVATED !!!', 'text-red-500 font-bold');
|
| 399 |
+
terminalOutput('All detonation processes halted.', 'text-red-400');
|
| 400 |
+
terminalOutput('System cooling down...', 'text-blue-400', 500);
|
| 401 |
+
terminalOutput('Safety protocols engaged.', 'text-green-400', 1000);
|
| 402 |
+
|
| 403 |
+
// Reset integrity
|
| 404 |
+
document.getElementById('integrity-bar').style.width = '100%';
|
| 405 |
+
|
| 406 |
+
// Reset detonation button
|
| 407 |
+
const detonateBtn = document.getElementById('detonate-btn');
|
| 408 |
+
detonateBtn.disabled = false;
|
| 409 |
+
detonateBtn.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" /></svg>DETONATE CODE';
|
| 410 |
+
|
| 411 |
+
// Visual feedback
|
| 412 |
+
document.body.classList.remove('shake');
|
| 413 |
+
document.getElementById('terminal-output').classList.remove('flash');
|
| 414 |
+
}
|
| 415 |
+
</script>
|
| 416 |
+
<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=Boobs00/bomb-ide-2" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 417 |
+
</html>
|
prompts.txt
ADDED
|
File without changes
|