defaultdolphin commited on
Commit
e8f5dbe
·
verified ·
1 Parent(s): 219d662

make total distance 5000 feet - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +6 -4
  2. index.html +462 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Tsrc Drone
3
- emoji: 🦀
4
- colorFrom: indigo
5
  colorTo: yellow
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: tsrc-drone
3
+ emoji: 🐳
4
+ colorFrom: red
5
  colorTo: yellow
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,462 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>TSRC Drone Control</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ /* Custom styles for the radar */
11
+ .radar {
12
+ position: relative;
13
+ width: 200px;
14
+ height: 200px;
15
+ border-radius: 50%;
16
+ background: radial-gradient(circle, rgba(0,100,0,0.2) 0%, rgba(0,50,0,0.8) 100%);
17
+ box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
18
+ }
19
+
20
+ .radar::before {
21
+ content: '';
22
+ position: absolute;
23
+ width: 100%;
24
+ height: 100%;
25
+ border-radius: 50%;
26
+ border: 2px solid rgba(0, 255, 0, 0.5);
27
+ animation: radar-scan 4s linear infinite;
28
+ transform-origin: center;
29
+ }
30
+
31
+ @keyframes radar-scan {
32
+ from { transform: rotate(0deg); }
33
+ to { transform: rotate(360deg); }
34
+ }
35
+
36
+ .radar-dot {
37
+ position: absolute;
38
+ width: 8px;
39
+ height: 8px;
40
+ background-color: lime;
41
+ border-radius: 50%;
42
+ animation: pulse 2s infinite;
43
+ }
44
+
45
+ @keyframes pulse {
46
+ 0% { transform: scale(1); opacity: 1; }
47
+ 50% { transform: scale(1.5); opacity: 0.7; }
48
+ 100% { transform: scale(1); opacity: 1; }
49
+ }
50
+
51
+ /* Custom joystick styles */
52
+ .joystick {
53
+ background: linear-gradient(135deg, #2d3748, #1a202c);
54
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
55
+ }
56
+
57
+ .joystick-btn {
58
+ transition: all 0.1s;
59
+ }
60
+
61
+ .joystick-btn:active {
62
+ transform: scale(0.95);
63
+ filter: brightness(1.2);
64
+ }
65
+
66
+ /* Battery animation */
67
+ @keyframes battery-low {
68
+ 0%, 100% { color: #ef4444; }
69
+ 50% { color: #fca5a5; }
70
+ }
71
+
72
+ .battery-low {
73
+ animation: battery-low 1s infinite;
74
+ }
75
+ </style>
76
+ </head>
77
+ <body class="bg-gray-900 text-white min-h-screen">
78
+ <div class="container mx-auto px-4 py-6">
79
+ <!-- Header -->
80
+ <header class="flex justify-between items-center mb-8">
81
+ <div class="flex items-center space-x-2">
82
+ <i class="fas fa-drone-alt text-3xl text-green-400"></i>
83
+ <h1 class="text-2xl font-bold">TSRC Drone Control</h1>
84
+ </div>
85
+ <div class="flex items-center space-x-4">
86
+ <div class="flex items-center space-x-1">
87
+ <i class="fas fa-signal text-green-400"></i>
88
+ <span class="text-sm">Strong</span>
89
+ </div>
90
+ <div class="flex items-center space-x-1" id="battery-status">
91
+ <i class="fas fa-battery-three-quarters text-green-400"></i>
92
+ <span class="text-sm">78%</span>
93
+ </div>
94
+ <button class="bg-red-600 hover:bg-red-700 px-3 py-1 rounded-full text-sm">
95
+ <i class="fas fa-power-off mr-1"></i> Emergency Stop
96
+ </button>
97
+ </div>
98
+ </header>
99
+
100
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
101
+ <!-- Left Panel - Camera Feed -->
102
+ <div class="lg:col-span-2 bg-black rounded-xl overflow-hidden shadow-lg">
103
+ <div class="relative pt-[56.25%]">
104
+ <!-- Camera feed placeholder -->
105
+ <div class="absolute inset-0 flex items-center justify-center bg-gray-800">
106
+ <div class="text-center">
107
+ <i class="fas fa-video text-4xl text-gray-600 mb-2"></i>
108
+ <p class="text-gray-500">Drone Camera Feed</p>
109
+ </div>
110
+ </div>
111
+ <!-- Overlay elements -->
112
+ <div class="absolute top-4 left-4 bg-black bg-opacity-50 px-2 py-1 rounded">
113
+ <span class="text-green-400 font-mono">1080p @ 30fps</span>
114
+ </div>
115
+ <div class="absolute top-4 right-4 flex space-x-2">
116
+ <button class="bg-gray-800 bg-opacity-50 p-2 rounded-full hover:bg-gray-700">
117
+ <i class="fas fa-expand"></i>
118
+ </button>
119
+ <button class="bg-gray-800 bg-opacity-50 p-2 rounded-full hover:bg-gray-700">
120
+ <i class="fas fa-cog"></i>
121
+ </button>
122
+ </div>
123
+ <div class="absolute bottom-4 left-0 right-0 flex justify-center space-x-4">
124
+ <button class="bg-green-600 hover:bg-green-700 px-4 py-2 rounded-full">
125
+ <i class="fas fa-camera mr-2"></i> Capture
126
+ </button>
127
+ <button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded-full">
128
+ <i class="fas fa-video mr-2"></i> Record
129
+ </button>
130
+ </div>
131
+ </div>
132
+ </div>
133
+
134
+ <!-- Right Panel - Telemetry and Controls -->
135
+ <div class="space-y-6">
136
+ <!-- Telemetry Card -->
137
+ <div class="bg-gray-800 rounded-xl p-4 shadow-lg">
138
+ <h2 class="text-lg font-semibold mb-3 flex items-center">
139
+ <i class="fas fa-chart-line text-green-400 mr-2"></i> Telemetry Data
140
+ </h2>
141
+ <div class="grid grid-cols-2 gap-4">
142
+ <div class="bg-gray-700 p-3 rounded-lg">
143
+ <div class="text-xs text-gray-400">Altitude</div>
144
+ <div class="text-xl font-mono">
145
+ <span id="altitude-value">850</span>
146
+ <span class="text-sm">ft</span>
147
+ </div>
148
+ <div class="text-xs text-green-400 mt-1">
149
+ <i class="fas fa-lock-open"></i> Unlimited
150
+ </div>
151
+ </div>
152
+ <div class="bg-gray-700 p-3 rounded-lg">
153
+ <div class="text-xs text-gray-400">Speed</div>
154
+ <div class="text-xl font-mono">12.3 <span class="text-sm">m/s</span></div>
155
+ </div>
156
+ <div class="bg-gray-700 p-3 rounded-lg">
157
+ <div class="text-xs text-gray-400">Distance</div>
158
+ <div class="text-xl font-mono">5000 <span class="text-sm">ft</span></div>
159
+ </div>
160
+ <div class="bg-gray-700 p-3 rounded-lg">
161
+ <div class="text-xs text-gray-400">Battery</div>
162
+ <div class="text-xl font-mono flex items-center">
163
+ <span id="battery-level">78</span><span class="text-sm">%</span>
164
+ <i class="fas fa-bolt text-yellow-400 ml-2 text-sm"></i>
165
+ </div>
166
+ </div>
167
+ <div class="bg-gray-700 p-3 rounded-lg">
168
+ <div class="text-xs text-gray-400">GPS Satellites</div>
169
+ <div class="text-xl font-mono">14/16</div>
170
+ </div>
171
+ <div class="bg-gray-700 p-3 rounded-lg">
172
+ <div class="text-xs text-gray-400">Signal Strength</div>
173
+ <div class="text-xl font-mono">92%</div>
174
+ </div>
175
+ </div>
176
+ </div>
177
+
178
+ <!-- Radar Card -->
179
+ <div class="bg-gray-800 rounded-xl p-4 shadow-lg">
180
+ <h2 class="text-lg font-semibold mb-3 flex items-center">
181
+ <i class="fas fa-radar text-green-400 mr-2"></i> Proximity Radar
182
+ </h2>
183
+ <div class="flex justify-center">
184
+ <div class="radar">
185
+ <!-- Radar dots representing objects -->
186
+ <div class="radar-dot" style="top: 30%; left: 40%;"></div>
187
+ <div class="radar-dot" style="top: 60%; left: 70%;"></div>
188
+ <div class="radar-dot" style="top: 20%; left: 80%;"></div>
189
+ </div>
190
+ </div>
191
+ <div class="mt-4 text-center text-sm text-gray-400">
192
+ <i class="fas fa-info-circle mr-1"></i> 3 objects detected in range
193
+ </div>
194
+ </div>
195
+
196
+ <!-- Flight Controls -->
197
+ <div class="bg-gray-800 rounded-xl p-4 shadow-lg">
198
+ <h2 class="text-lg font-semibold mb-3 flex items-center">
199
+ <i class="fas fa-gamepad text-green-400 mr-2"></i> Flight Controls
200
+ </h2>
201
+ <div class="grid grid-cols-3 gap-2">
202
+ <!-- Left joystick (throttle/yaw) -->
203
+ <div class="joystick rounded-lg p-4 flex flex-col items-center col-span-1">
204
+ <button class="joystick-btn w-12 h-12 bg-gray-700 rounded-full mb-2 flex items-center justify-center hover:bg-gray-600">
205
+ <i class="fas fa-arrow-up"></i>
206
+ </button>
207
+ <div class="flex">
208
+ <button class="joystick-btn w-12 h-12 bg-gray-700 rounded-full mr-2 flex items-center justify-center hover:bg-gray-600">
209
+ <i class="fas fa-arrow-left"></i>
210
+ </button>
211
+ <div class="w-12 h-12 bg-gray-900 rounded-full flex items-center justify-center">
212
+ <div class="w-8 h-8 bg-green-600 rounded-full"></div>
213
+ </div>
214
+ <button class="joystick-btn w-12 h-12 bg-gray-700 rounded-full ml-2 flex items-center justify-center hover:bg-gray-600">
215
+ <i class="fas fa-arrow-right"></i>
216
+ </button>
217
+ </div>
218
+ <button class="joystick-btn w-12 h-12 bg-gray-700 rounded-full mt-2 flex items-center justify-center hover:bg-gray-600">
219
+ <i class="fas fa-arrow-down"></i>
220
+ </button>
221
+ <div class="text-xs text-gray-400 mt-2">Throttle/Yaw</div>
222
+ </div>
223
+
224
+ <!-- Center buttons -->
225
+ <div class="flex flex-col items-center justify-between col-span-1">
226
+ <button id="takeoff-btn" class="w-full bg-green-600 hover:bg-green-700 py-3 rounded-lg mb-2">
227
+ <i class="fas fa-rocket mr-2"></i> Takeoff
228
+ </button>
229
+ <button id="land-btn" class="w-full bg-yellow-600 hover:bg-yellow-700 py-3 rounded-lg mb-2">
230
+ <i class="fas fa-parachute-box mr-2"></i> Land
231
+ </button>
232
+ <button class="w-full bg-blue-600 hover:bg-blue-700 py-3 rounded-lg">
233
+ <i class="fas fa-map-marked-alt mr-2"></i> RTH
234
+ </button>
235
+ </div>
236
+
237
+ <!-- Right joystick (pitch/roll) -->
238
+ <div class="joystick rounded-lg p-4 flex flex-col items-center col-span-1">
239
+ <button class="joystick-btn w-12 h-12 bg-gray-700 rounded-full mb-2 flex items-center justify-center hover:bg-gray-600">
240
+ <i class="fas fa-arrow-up"></i>
241
+ </button>
242
+ <div class="flex">
243
+ <button class="joystick-btn w-12 h-12 bg-gray-700 rounded-full mr-2 flex items-center justify-center hover:bg-gray-600">
244
+ <i class="fas fa-arrow-left"></i>
245
+ </button>
246
+ <div class="w-12 h-12 bg-gray-900 rounded-full flex items-center justify-center">
247
+ <div class="w-8 h-8 bg-blue-600 rounded-full"></div>
248
+ </div>
249
+ <button class="joystick-btn w-12 h-12 bg-gray-700 rounded-full ml-2 flex items-center justify-center hover:bg-gray-600">
250
+ <i class="fas fa-arrow-right"></i>
251
+ </button>
252
+ </div>
253
+ <button class="joystick-btn w-12 h-12 bg-gray-700 rounded-full mt-2 flex items-center justify-center hover:bg-gray-600">
254
+ <i class="fas fa-arrow-down"></i>
255
+ </button>
256
+ <div class="text-xs text-gray-400 mt-2">Pitch/Roll</div>
257
+ </div>
258
+ </div>
259
+ </div>
260
+ </div>
261
+ </div>
262
+
263
+ <!-- Flight Mode and Settings -->
264
+ <div class="mt-6 grid grid-cols-1 md:grid-cols-3 gap-6">
265
+ <div class="bg-gray-800 rounded-xl p-4 shadow-lg">
266
+ <h2 class="text-lg font-semibold mb-3 flex items-center">
267
+ <i class="fas fa-cogs text-green-400 mr-2"></i> Flight Mode
268
+ </h2>
269
+ <div class="space-y-2">
270
+ <div class="flex items-center justify-between bg-gray-700 px-4 py-2 rounded-lg">
271
+ <span>GPS Mode</span>
272
+ <label class="relative inline-flex items-center cursor-pointer">
273
+ <input type="checkbox" value="" class="sr-only peer" checked>
274
+ <div class="w-11 h-6 bg-gray-600 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-600"></div>
275
+ </label>
276
+ </div>
277
+ <div class="flex items-center justify-between bg-gray-700 px-4 py-2 rounded-lg">
278
+ <span>Beginner Mode</span>
279
+ <label class="relative inline-flex items-center cursor-pointer">
280
+ <input type="checkbox" value="" class="sr-only peer">
281
+ <div class="w-11 h-6 bg-gray-600 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-600"></div>
282
+ </label>
283
+ </div>
284
+ <div class="flex items-center justify-between bg-gray-700 px-4 py-2 rounded-lg">
285
+ <span>Obstacle Avoidance</span>
286
+ <label class="relative inline-flex items-center cursor-pointer">
287
+ <input type="checkbox" value="" class="sr-only peer" checked>
288
+ <div class="w-11 h-6 bg-gray-600 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-600"></div>
289
+ </label>
290
+ </div>
291
+ </div>
292
+ </div>
293
+
294
+ <div class="bg-gray-800 rounded-xl p-4 shadow-lg">
295
+ <h2 class="text-lg font-semibold mb-3 flex items-center">
296
+ <i class="fas fa-map-marked-alt text-green-400 mr-2"></i> Waypoints
297
+ </h2>
298
+ <div class="h-48 overflow-y-auto mb-3">
299
+ <div class="bg-gray-700 p-3 rounded-lg mb-2">
300
+ <div class="flex justify-between items-center">
301
+ <span>Waypoint 1</span>
302
+ <div class="flex space-x-2">
303
+ <button class="text-xs bg-blue-600 px-2 py-1 rounded">Edit</button>
304
+ <button class="text-xs bg-red-600 px-2 py-1 rounded">Delete</button>
305
+ </div>
306
+ </div>
307
+ <div class="text-xs text-gray-400 mt-1">Lat: 34.0522, Lng: -118.2437</div>
308
+ </div>
309
+ <div class="bg-gray-700 p-3 rounded-lg mb-2">
310
+ <div class="flex justify-between items-center">
311
+ <span>Waypoint 2</span>
312
+ <div class="flex space-x-2">
313
+ <button class="text-xs bg-blue-600 px-2 py-1 rounded">Edit</button>
314
+ <button class="text-xs bg-red-600 px-2 py-1 rounded">Delete</button>
315
+ </div>
316
+ </div>
317
+ <div class="text-xs text-gray-400 mt-1">Lat: 34.0533, Lng: -118.2450</div>
318
+ </div>
319
+ </div>
320
+ <button class="w-full bg-green-600 hover:bg-green-700 py-2 rounded-lg">
321
+ <i class="fas fa-plus mr-2"></i> Add Waypoint
322
+ </button>
323
+ </div>
324
+
325
+ <div class="bg-gray-800 rounded-xl p-4 shadow-lg">
326
+ <h2 class="text-lg font-semibold mb-3 flex items-center">
327
+ <i class="fas fa-info-circle text-green-400 mr-2"></i> System Status
328
+ </h2>
329
+ <div class="space-y-3">
330
+ <div>
331
+ <div class="flex justify-between text-sm mb-1">
332
+ <span>CPU Usage</span>
333
+ <span>42%</span>
334
+ </div>
335
+ <div class="w-full bg-gray-700 rounded-full h-2">
336
+ <div class="bg-blue-500 h-2 rounded-full" style="width: 42%"></div>
337
+ </div>
338
+ </div>
339
+ <div>
340
+ <div class="flex justify-between text-sm mb-1">
341
+ <span>Memory</span>
342
+ <span>65%</span>
343
+ </div>
344
+ <div class="w-full bg-gray-700 rounded-full h-2">
345
+ <div class="bg-purple-500 h-2 rounded-full" style="width: 65%"></div>
346
+ </div>
347
+ </div>
348
+ <div>
349
+ <div class="flex justify-between text-sm mb-1">
350
+ <span>Storage</span>
351
+ <span>28%</span>
352
+ </div>
353
+ <div class="w-full bg-gray-700 rounded-full h-2">
354
+ <div class="bg-green-500 h-2 rounded-full" style="width: 28%"></div>
355
+ </div>
356
+ </div>
357
+ <div class="pt-2">
358
+ <div class="flex justify-between items-center">
359
+ <span class="text-sm">Firmware Version</span>
360
+ <span class="text-sm font-mono">v2.4.8</span>
361
+ </div>
362
+ <div class="flex justify-between items-center mt-1">
363
+ <span class="text-sm">Uptime</span>
364
+ <span class="text-sm font-mono">2h 45m</span>
365
+ </div>
366
+ </div>
367
+ </div>
368
+ </div>
369
+ </div>
370
+ </div>
371
+
372
+ <script>
373
+ // Simulate altitude increase (up to 1000 feet)
374
+ let altitude = 850;
375
+ setInterval(() => {
376
+ altitude += (Math.random() * 5 - 1); // Random climb/descend
377
+ altitude = Math.max(50, Math.min(1000, altitude)); // Keep between 50-1000 feet
378
+ document.getElementById('altitude-value').textContent = Math.round(altitude);
379
+ }, 2000);
380
+
381
+ // Simulate battery drain for demo purposes
382
+ let batteryLevel = 78;
383
+ const batteryInterval = setInterval(() => {
384
+ batteryLevel -= 1;
385
+ if (batteryLevel <= 0) {
386
+ clearInterval(batteryInterval);
387
+ batteryLevel = 0;
388
+ }
389
+
390
+ document.getElementById('battery-level').textContent = batteryLevel;
391
+
392
+ // Update battery icon based on level
393
+ const batteryStatus = document.getElementById('battery-status');
394
+ batteryStatus.innerHTML = '';
395
+
396
+ let batteryIcon;
397
+ if (batteryLevel > 75) {
398
+ batteryIcon = '<i class="fas fa-battery-full text-green-400"></i>';
399
+ } else if (batteryLevel > 50) {
400
+ batteryIcon = '<i class="fas fa-battery-three-quarters text-green-400"></i>';
401
+ } else if (batteryLevel > 25) {
402
+ batteryIcon = '<i class="fas fa-battery-half text-yellow-400"></i>';
403
+ } else if (batteryLevel > 10) {
404
+ batteryIcon = '<i class="fas fa-battery-quarter text-yellow-400"></i>';
405
+ } else {
406
+ batteryIcon = '<i class="fas fa-battery-empty battery-low"></i>';
407
+ }
408
+
409
+ batteryStatus.innerHTML = batteryIcon + `<span class="text-sm ml-1">${batteryLevel}%</span>`;
410
+ }, 10000);
411
+
412
+ // Takeoff and Land button functionality
413
+ const takeoffBtn = document.getElementById('takeoff-btn');
414
+ const landBtn = document.getElementById('land-btn');
415
+
416
+ takeoffBtn.addEventListener('click', () => {
417
+ takeoffBtn.innerHTML = '<i class="fas fa-spinner fa-spin mr-2"></i> Taking Off...';
418
+ takeoffBtn.classList.remove('bg-green-600');
419
+ takeoffBtn.classList.add('bg-gray-600');
420
+ takeoffBtn.disabled = true;
421
+
422
+ setTimeout(() => {
423
+ takeoffBtn.innerHTML = '<i class="fas fa-check-circle mr-2"></i> Takeoff Complete';
424
+ landBtn.disabled = false;
425
+ landBtn.classList.remove('bg-gray-600');
426
+ landBtn.classList.add('bg-yellow-600');
427
+ }, 3000);
428
+ });
429
+
430
+ landBtn.addEventListener('click', () => {
431
+ landBtn.innerHTML = '<i class="fas fa-spinner fa-spin mr-2"></i> Landing...';
432
+ landBtn.classList.remove('bg-yellow-600');
433
+ landBtn.classList.add('bg-gray-600');
434
+ landBtn.disabled = true;
435
+
436
+ setTimeout(() => {
437
+ landBtn.innerHTML = '<i class="fas fa-parachute-box mr-2"></i> Land';
438
+ takeoffBtn.innerHTML = '<i class="fas fa-rocket mr-2"></i> Takeoff';
439
+ takeoffBtn.disabled = false;
440
+ takeoffBtn.classList.remove('bg-gray-600');
441
+ takeoffBtn.classList.add('bg-green-600');
442
+ }, 3000);
443
+ });
444
+
445
+ // Simulate radar dot movement
446
+ const radarDots = document.querySelectorAll('.radar-dot');
447
+ setInterval(() => {
448
+ radarDots.forEach(dot => {
449
+ const currentTop = parseInt(dot.style.top);
450
+ const currentLeft = parseInt(dot.style.left);
451
+
452
+ // Random movement within bounds
453
+ const newTop = Math.max(5, Math.min(95, currentTop + (Math.random() * 6 - 3)));
454
+ const newLeft = Math.max(5, Math.min(95, currentLeft + (Math.random() * 6 - 3)));
455
+
456
+ dot.style.top = `${newTop}%`;
457
+ dot.style.left = `${newLeft}%`;
458
+ });
459
+ }, 1000);
460
+ </script>
461
+ <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=defaultdolphin/tsrc-drone" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
462
+ </html>