Boobs00 commited on
Commit
d6da60e
·
verified ·
1 Parent(s): 6291f6d

Add 2 files

Browse files
Files changed (2) hide show
  1. index.html +356 -140
  2. prompts.txt +3 -1
index.html CHANGED
@@ -3,129 +3,240 @@
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>AI Code Snippet Viewer</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
- .code-container {
13
- position: relative;
14
- transform: scaleX(-1); /* Flip horizontally */
 
15
  }
16
- .copy-btn {
17
- position: absolute;
18
- left: 10px; /* Changed from right to left */
19
- top: 10px;
20
- opacity: 0;
21
- transition: opacity 0.2s;
22
- transform: scaleX(-1); /* Flip button back */
23
  }
24
- .code-container:hover .copy-btn {
25
- opacity: 1;
 
26
  }
27
- .tab-active {
28
- border-top: 3px solid #3b82f6; /* Changed from bottom to top */
29
- color: #3b82f6;
30
- font-weight: 600;
31
  }
32
- pre {
33
- margin: 0;
34
- border-radius: 0.5rem;
35
- transform: scaleX(-1); /* Flip code back */
36
- direction: rtl; /* Right-to-left text */
 
 
37
  }
38
- .hljs {
39
- padding: 1.5rem !important;
40
- background: #1e293b !important;
 
41
  }
42
- .flipped-card {
43
- transform: scaleX(-1);
 
44
  }
45
- .flipped-content {
46
- transform: scaleX(-1);
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  }
48
  </style>
49
  </head>
50
- <body class="bg-gray-50 min-h-screen">
51
- <div class="container mx-auto px-4 py-12 max-w-5xl">
52
- <div class="text-center mb-12">
53
- <h1 class="text-4xl font-bold text-gray-800 mb-2 transform scaleX(-1)">AI Code Snippet Viewer</h1>
54
- <p class="text-gray-600 max-w-2xl mx-auto transform scaleX(-1)">
55
- Explore and copy ready-to-use code snippets for integrating various AI providers into your applications.
56
- </p>
57
- </div>
58
 
59
- <div class="bg-white rounded-xl shadow-lg overflow-hidden flipped-card">
60
- <!-- Header with tabs at the bottom -->
61
- <div class="border-t border-gray-200"> <!-- Changed from border-b to border-t -->
62
- <div class="flex px-6 pb-4"> <!-- Changed from pt-4 to pb-4 -->
63
- <div class="flex space-x-8">
64
- <button id="huggingface-tab" class="tab-active py-3 px-1 text-sm font-medium">
65
- Hugging Face
66
- </button>
67
- <button id="gemini-tab" class="py-3 px-1 text-sm font-medium text-gray-500 hover:text-gray-700">
68
- Gemini Coder
69
- </button>
70
- </div>
71
  </div>
72
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
73
 
74
- <!-- Content area -->
75
- <div class="p-6 flipped-content">
76
- <!-- Demo section at the top -->
77
- <div class="mb-8">
78
- <h3 class="text-lg font-semibold text-gray-800 mb-4">Live Demo</h3>
79
- <div class="bg-gray-100 rounded-lg p-6">
80
- <div class="flex items-center space-x-4 mb-4">
81
- <div class="w-10 h-10 rounded-full bg-blue-500 flex items-center justify-center text-white font-bold">HF</div>
82
- <div>
83
- <p class="font-medium">Hugging Face Demo</p>
84
- <p class="text-sm text-gray-500">Try the DeepSeek-R1 model</p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  </div>
86
  </div>
87
- <div class="bg-white rounded-lg p-4 shadow-inner">
88
- <p class="text-gray-600 italic">Demo interface would appear here...</p>
89
- </div>
90
  </div>
91
- </div>
 
 
92
 
93
- <!-- Code display -->
94
- <div class="code-container mb-6">
95
- <pre id="code-display"><code class="language-python">import gradio as gr
96
- import ai_gradio
97
- gr.load(
98
- name='huggingface:deepseek-ai/DeepSeek-R1',
99
- src=ai_gradio.registry,
100
- coder=True,
101
- provider="together"
102
- ).launch()</code></pre>
103
- <button class="copy-btn bg-blue-500 hover:bg-blue-600 text-white px-3 py-1 rounded text-sm" onclick="copyCode()">
104
- Copy
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  </button>
106
  </div>
 
107
 
108
- <!-- Provider description at the bottom -->
109
- <div id="huggingface-desc">
110
- <h3 class="text-lg font-semibold text-gray-800 mb-2">Hugging Face Integration</h3>
111
- <p class="text-gray-600">
112
- This snippet demonstrates how to integrate Hugging Face's DeepSeek-R1 model into your Gradio application.
113
- The code loads the model from the AI Gradio registry with coder capabilities enabled.
114
- </p>
 
 
 
115
  </div>
116
-
117
- <div id="gemini-desc" class="hidden">
118
- <h3 class="text-lg font-semibold text-gray-800 mb-2">Gemini Coder Integration</h3>
119
- <p class="text-gray-600">
120
- This snippet shows how to use Google's Gemini 2.5 Pro model with coder capabilities in your Gradio application.
121
- The model is loaded from the AI Gradio registry with the Together provider.
122
- </p>
 
 
 
 
 
 
 
 
 
 
 
 
123
  </div>
124
  </div>
125
  </div>
126
 
127
- <div class="mt-8 text-center text-gray-500 text-sm transform scaleX(-1)">
128
- <p>Need help integrating these snippets? <a href="#" class="text-blue-500 hover:underline">Contact support</a></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
  </div>
130
  </div>
131
 
@@ -133,69 +244,174 @@ gr.load(
133
  // Initialize syntax highlighting
134
  document.addEventListener('DOMContentLoaded', (event) => {
135
  hljs.highlightAll();
 
 
 
 
 
 
136
  });
137
 
138
- // Tab switching functionality
139
- const tabs = {
140
- 'huggingface-tab': {
141
- desc: 'huggingface-desc',
142
- code: `import gradio as gr
143
- import ai_gradio
144
- gr.load(
145
- name='huggingface:deepseek-ai/DeepSeek-R1',
146
- src=ai_gradio.registry,
147
- coder=True,
148
- provider="together"
149
- ).launch()`
150
- },
151
- 'gemini-tab': {
152
- desc: 'gemini-desc',
153
- code: `import gradio as gr
154
- import ai_gradio
155
- gr.load(
156
- name='gemini:gemini-2.5-pro-exp-03-25',
157
- src=ai_gradio.registry,
158
- coder=True,
159
- provider="together"
160
- ).launch()`
 
 
 
 
 
 
 
 
161
  }
162
- };
 
 
 
 
 
163
 
164
- Object.keys(tabs).forEach(tabId => {
165
- document.getElementById(tabId).addEventListener('click', () => {
166
- // Update active tab styling
167
- Object.keys(tabs).forEach(id => {
168
- const tab = document.getElementById(id);
169
- tab.classList.remove('tab-active', 'text-blue-600');
170
- tab.classList.add('text-gray-500');
171
- });
172
- const activeTab = document.getElementById(tabId);
173
- activeTab.classList.add('tab-active', 'text-blue-600');
174
- activeTab.classList.remove('text-gray-500');
175
 
176
- // Update content
177
- Object.values(tabs).forEach(content => {
178
- document.getElementById(content.desc).classList.add('hidden');
179
- });
180
- document.getElementById(tabs[tabId].desc).classList.remove('hidden');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
 
182
- // Update code
183
- document.getElementById('code-display').textContent = tabs[tabId].code;
184
- hljs.highlightAll();
185
- });
186
- });
187
 
188
- // Copy code functionality
189
  function copyCode() {
190
- const code = document.getElementById('code-display').textContent;
191
  navigator.clipboard.writeText(code).then(() => {
192
- const btn = document.querySelector('.copy-btn');
193
  btn.textContent = 'Copied!';
194
  setTimeout(() => {
195
  btn.textContent = 'Copy';
196
  }, 2000);
197
  });
198
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
199
  </script>
200
  <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/ai-code-snippet-viewer" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
201
  </html>
 
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
 
 
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/ai-code-snippet-viewer" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
417
  </html>
prompts.txt CHANGED
@@ -1,2 +1,4 @@
1
  Reitorate and implement optimized and refined robust.
2
- Flip it and reverse it.
 
 
 
1
  Reitorate and implement optimized and refined robust.
2
+ Flip it and reverse it.
3
+ Bring it back one time come on! And around again! Come like a bomb!
4
+ I am loving this idea with detonating the code instead of just executing, like, it's some kind of regular everyday average ordinary code. This is bomb code and it explodes. Let's detonate an IDE that is made to detonate for bomb code that explodes and doesn't just execute like the rest of them.