Spaces:
Running
Running
Add 1 files
Browse files- index.html +371 -315
index.html
CHANGED
|
@@ -3,225 +3,353 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
|
| 9 |
-
<script src="https://cdn.jsdelivr.net/npm/three@0.128.0/examples/js/controls/OrbitControls.min.js"></script>
|
| 10 |
-
<script src="https://cdn.jsdelivr.net/npm/three@0.128.0/examples/js/loaders/GLTFLoader.min.js"></script>
|
| 11 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 12 |
<style>
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
height: 70vh;
|
| 16 |
-
position: relative;
|
| 17 |
-
overflow: hidden;
|
| 18 |
-
border-radius: 16px;
|
| 19 |
-
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
|
| 20 |
}
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
position: absolute;
|
| 24 |
-
top: 0;
|
| 25 |
-
left: 0;
|
| 26 |
-
width: 100%;
|
| 27 |
-
height: 100%;
|
| 28 |
-
background: rgba(0, 0, 0, 0.7);
|
| 29 |
-
display: flex;
|
| 30 |
-
flex-direction: column;
|
| 31 |
-
justify-content: center;
|
| 32 |
-
align-items: center;
|
| 33 |
-
color: white;
|
| 34 |
-
z-index: 10;
|
| 35 |
-
}
|
| 36 |
-
|
| 37 |
-
.spinner {
|
| 38 |
-
width: 50px;
|
| 39 |
-
height: 50px;
|
| 40 |
-
border: 5px solid rgba(255, 255, 255, 0.3);
|
| 41 |
-
border-radius: 50%;
|
| 42 |
-
border-top-color: #fff;
|
| 43 |
-
animation: spin 1s ease-in-out infinite;
|
| 44 |
-
margin-bottom: 15px;
|
| 45 |
}
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
to { transform: rotate(360deg); }
|
| 49 |
}
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
position: absolute;
|
| 53 |
-
bottom: 20px;
|
| 54 |
-
left: 50%;
|
| 55 |
-
transform: translateX(-50%);
|
| 56 |
-
background: rgba(0, 0, 0, 0.5);
|
| 57 |
-
padding: 10px 15px;
|
| 58 |
-
border-radius: 30px;
|
| 59 |
-
display: flex;
|
| 60 |
-
gap: 10px;
|
| 61 |
-
z-index: 5;
|
| 62 |
-
}
|
| 63 |
-
|
| 64 |
-
.control-btn {
|
| 65 |
-
width: 40px;
|
| 66 |
-
height: 40px;
|
| 67 |
-
border-radius: 50%;
|
| 68 |
-
background: rgba(255, 255, 255, 0.2);
|
| 69 |
-
border: none;
|
| 70 |
-
color: white;
|
| 71 |
-
display: flex;
|
| 72 |
-
justify-content: center;
|
| 73 |
-
align-items: center;
|
| 74 |
-
cursor: pointer;
|
| 75 |
-
transition: all 0.3s;
|
| 76 |
}
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
transform: scale(1.1);
|
| 81 |
}
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
transition: all 0.3s;
|
| 85 |
-
filter: grayscale(100%);
|
| 86 |
}
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
|
| 92 |
}
|
| 93 |
</style>
|
| 94 |
</head>
|
| 95 |
-
<body class="bg-gray-
|
| 96 |
-
<div class="container mx-auto px-4 py-8
|
| 97 |
<!-- Header -->
|
| 98 |
<header class="flex justify-between items-center mb-8">
|
| 99 |
<div class="flex items-center">
|
| 100 |
-
<
|
| 101 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
</div>
|
| 103 |
<div class="flex items-center space-x-4">
|
| 104 |
-
<button class="bg-
|
| 105 |
-
<i class="fas fa-
|
| 106 |
</button>
|
| 107 |
-
<button class="bg-gray-
|
| 108 |
-
<i class="fas fa-
|
| 109 |
</button>
|
| 110 |
</div>
|
| 111 |
</header>
|
| 112 |
-
|
| 113 |
-
<!--
|
| 114 |
-
<div
|
| 115 |
-
<div class="
|
| 116 |
-
<div class="
|
| 117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
</div>
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
<button class="control-btn" id="zoom-in-btn" title="Zoom In">
|
| 130 |
-
<i class="fas fa-search-plus"></i>
|
| 131 |
-
</button>
|
| 132 |
-
<button class="control-btn" id="zoom-out-btn" title="Zoom Out">
|
| 133 |
-
<i class="fas fa-search-minus"></i>
|
| 134 |
-
</button>
|
| 135 |
-
</div>
|
| 136 |
-
|
| 137 |
-
<!-- Model Info -->
|
| 138 |
-
<div class="mt-6">
|
| 139 |
-
<div class="flex items-center mb-4">
|
| 140 |
-
<div class="w-10 h-10 rounded-full bg-pink-500 flex items-center justify-center mr-3">
|
| 141 |
-
<i class="fas fa-user text-white"></i>
|
| 142 |
</div>
|
| 143 |
-
<
|
| 144 |
-
|
| 145 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
</div>
|
|
|
|
| 147 |
</div>
|
| 148 |
-
|
| 149 |
-
<
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
|
|
|
|
|
|
| 158 |
</div>
|
| 159 |
</div>
|
| 160 |
-
|
| 161 |
-
<!--
|
| 162 |
-
<div class="
|
| 163 |
-
|
| 164 |
-
<div class="
|
| 165 |
-
<div class="
|
| 166 |
-
<
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
<
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 173 |
</div>
|
| 174 |
-
|
| 175 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
</div>
|
| 177 |
</div>
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
<h3 class="font-bold">Comments</h3>
|
| 185 |
-
</div>
|
| 186 |
-
|
| 187 |
-
<div class="flex mb-4">
|
| 188 |
-
<input type="text" placeholder="Add a comment..." class="flex-grow bg-gray-700 rounded-l-full px-4 py-2 focus:outline-none focus:ring-2 focus:ring-pink-500">
|
| 189 |
-
<button class="bg-pink-600 hover:bg-pink-700 px-4 py-2 rounded-r-full">
|
| 190 |
-
<i class="fas fa-paper-plane"></i>
|
| 191 |
-
</button>
|
| 192 |
-
</div>
|
| 193 |
-
|
| 194 |
-
<div class="space-y-4">
|
| 195 |
-
<div class="flex">
|
| 196 |
-
<div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center mr-3">
|
| 197 |
-
<i class="fas fa-user text-white text-xs"></i>
|
| 198 |
</div>
|
| 199 |
-
<div class="
|
| 200 |
-
<div class="
|
| 201 |
-
<
|
| 202 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 203 |
</div>
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
<
|
| 207 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 208 |
</div>
|
| 209 |
</div>
|
| 210 |
</div>
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
|
|
|
| 215 |
</div>
|
| 216 |
-
<div class="
|
| 217 |
-
<div class="
|
| 218 |
-
<
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 225 |
</div>
|
| 226 |
</div>
|
| 227 |
</div>
|
|
@@ -230,150 +358,78 @@
|
|
| 230 |
</div>
|
| 231 |
|
| 232 |
<script>
|
| 233 |
-
//
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
// Sample model data (in a real app, you would load a GLTF/GLB model)
|
| 239 |
-
function init() {
|
| 240 |
-
// Scene setup
|
| 241 |
-
scene = new THREE.Scene();
|
| 242 |
-
scene.background = new THREE.Color(0x222222);
|
| 243 |
-
|
| 244 |
-
// Camera setup
|
| 245 |
-
camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
|
| 246 |
-
camera.position.z = 5;
|
| 247 |
-
|
| 248 |
-
// Renderer setup
|
| 249 |
-
renderer = new THREE.WebGLRenderer({ antialias: true });
|
| 250 |
-
renderer.setSize(document.getElementById('model-container').clientWidth,
|
| 251 |
-
document.getElementById('model-container').clientHeight);
|
| 252 |
-
document.getElementById('model-container').appendChild(renderer.domElement);
|
| 253 |
-
|
| 254 |
-
// Lighting
|
| 255 |
-
const ambientLight = new THREE.AmbientLight(0xffffff, 0.5);
|
| 256 |
-
scene.add(ambientLight);
|
| 257 |
-
|
| 258 |
-
const directionalLight = new THREE.DirectionalLight(0xffffff, 0.8);
|
| 259 |
-
directionalLight.position.set(1, 1, 1);
|
| 260 |
-
scene.add(directionalLight);
|
| 261 |
-
|
| 262 |
-
// Controls
|
| 263 |
-
controls = new THREE.OrbitControls(camera, renderer.domElement);
|
| 264 |
-
controls.enableDamping = true;
|
| 265 |
-
controls.dampingFactor = 0.05;
|
| 266 |
-
|
| 267 |
-
// Create a simple placeholder model (in a real app, load a GLTF model)
|
| 268 |
-
createPlaceholderModel();
|
| 269 |
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
// Remove existing model if any
|
| 279 |
-
if (model) {
|
| 280 |
-
scene.remove(model);
|
| 281 |
}
|
| 282 |
-
|
| 283 |
-
// Create a female-shaped mesh
|
| 284 |
-
const bodyGeometry = new THREE.SphereGeometry(1, 32, 32);
|
| 285 |
-
bodyGeometry.scale(0.7, 1.2, 0.5);
|
| 286 |
-
|
| 287 |
-
const headGeometry = new THREE.SphereGeometry(0.5, 32, 32);
|
| 288 |
-
headGeometry.translate(0, 1.8, 0);
|
| 289 |
-
|
| 290 |
-
const mergedGeometry = new THREE.BufferGeometry();
|
| 291 |
-
const body = new THREE.Mesh(bodyGeometry);
|
| 292 |
-
const head = new THREE.Mesh(headGeometry);
|
| 293 |
-
|
| 294 |
-
mergedGeometry.merge(body.geometry, body.matrix);
|
| 295 |
-
mergedGeometry.merge(head.geometry, head.matrix);
|
| 296 |
-
|
| 297 |
-
const material = new THREE.MeshStandardMaterial({
|
| 298 |
-
color: 0xffccaa,
|
| 299 |
-
roughness: 0.3,
|
| 300 |
-
metalness: 0.1
|
| 301 |
-
});
|
| 302 |
-
|
| 303 |
-
model = new THREE.Mesh(mergedGeometry, material);
|
| 304 |
-
scene.add(model);
|
| 305 |
-
|
| 306 |
-
// Hide loading overlay
|
| 307 |
-
setTimeout(() => {
|
| 308 |
-
loadingOverlay.style.opacity = '0';
|
| 309 |
-
setTimeout(() => {
|
| 310 |
-
loadingOverlay.style.display = 'none';
|
| 311 |
-
}, 300);
|
| 312 |
-
}, 1000);
|
| 313 |
}
|
| 314 |
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
renderer.setSize(container.clientWidth, container.clientHeight);
|
| 320 |
-
}
|
| 321 |
-
|
| 322 |
-
function animate() {
|
| 323 |
-
requestAnimationFrame(animate);
|
| 324 |
|
| 325 |
-
if (
|
| 326 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 327 |
}
|
| 328 |
-
|
| 329 |
-
controls.update();
|
| 330 |
-
renderer.render(scene, camera);
|
| 331 |
}
|
| 332 |
|
| 333 |
-
//
|
| 334 |
-
document.getElementById('
|
| 335 |
-
|
| 336 |
-
this.style.background = autoRotate ? 'rgba(255, 255, 255, 0.4)' : 'rgba(255, 255, 255, 0.2)';
|
| 337 |
-
});
|
| 338 |
-
|
| 339 |
-
document.getElementById('reset-btn').addEventListener('click', function() {
|
| 340 |
-
controls.reset();
|
| 341 |
-
camera.position.z = 5;
|
| 342 |
-
});
|
| 343 |
-
|
| 344 |
-
document.getElementById('zoom-in-btn').addEventListener('click', function() {
|
| 345 |
-
camera.fov -= 5;
|
| 346 |
-
camera.updateProjectionMatrix();
|
| 347 |
-
});
|
| 348 |
-
|
| 349 |
-
document.getElementById('zoom-out-btn').addEventListener('click', function() {
|
| 350 |
-
camera.fov += 5;
|
| 351 |
-
camera.updateProjectionMatrix();
|
| 352 |
});
|
| 353 |
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
option.addEventListener('click', function() {
|
| 357 |
-
document.querySelectorAll('.outfit-option').forEach(opt => {
|
| 358 |
-
opt.classList.remove('active');
|
| 359 |
-
});
|
| 360 |
-
this.classList.add('active');
|
| 361 |
-
|
| 362 |
-
// In a real app, you would load different outfit models here
|
| 363 |
-
// For now, we'll just change the color of the placeholder
|
| 364 |
-
const colors = {
|
| 365 |
-
'default': 0xffccaa,
|
| 366 |
-
'casual': 0xaaccff,
|
| 367 |
-
'formal': 0xffaacc,
|
| 368 |
-
'sporty': 0xccffaa
|
| 369 |
-
};
|
| 370 |
-
|
| 371 |
-
model.material.color.setHex(colors[this.dataset.outfit]);
|
| 372 |
-
});
|
| 373 |
});
|
| 374 |
|
| 375 |
-
|
| 376 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 377 |
</script>
|
| 378 |
<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=Abrasax22/3d-model-threads" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 379 |
</html>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Telegram Trading Bot</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 |
+
.gradient-bg {
|
| 11 |
+
background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
}
|
| 13 |
+
.telegram-bg {
|
| 14 |
+
background-color: #0088cc;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
}
|
| 16 |
+
.telegram-hover:hover {
|
| 17 |
+
background-color: #0077b3;
|
|
|
|
| 18 |
}
|
| 19 |
+
.trading-card {
|
| 20 |
+
transition: all 0.3s ease;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
}
|
| 22 |
+
.trading-card:hover {
|
| 23 |
+
transform: translateY(-5px);
|
| 24 |
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
|
|
|
| 25 |
}
|
| 26 |
+
.blink {
|
| 27 |
+
animation: blink-animation 1s steps(5, start) infinite;
|
|
|
|
|
|
|
| 28 |
}
|
| 29 |
+
@keyframes blink-animation {
|
| 30 |
+
to {
|
| 31 |
+
opacity: 0.5;
|
| 32 |
+
}
|
|
|
|
| 33 |
}
|
| 34 |
</style>
|
| 35 |
</head>
|
| 36 |
+
<body class="bg-gray-100 min-h-screen">
|
| 37 |
+
<div class="container mx-auto px-4 py-8">
|
| 38 |
<!-- Header -->
|
| 39 |
<header class="flex justify-between items-center mb-8">
|
| 40 |
<div class="flex items-center">
|
| 41 |
+
<div class="w-12 h-12 rounded-full telegram-bg flex items-center justify-center mr-4">
|
| 42 |
+
<i class="fas fa-robot text-white text-xl"></i>
|
| 43 |
+
</div>
|
| 44 |
+
<div>
|
| 45 |
+
<h1 class="text-2xl font-bold text-gray-800">Telegram Trading Bot</h1>
|
| 46 |
+
<p class="text-gray-600">Automated cryptocurrency trading</p>
|
| 47 |
+
</div>
|
| 48 |
</div>
|
| 49 |
<div class="flex items-center space-x-4">
|
| 50 |
+
<button class="bg-green-500 hover:bg-green-600 text-white px-4 py-2 rounded-lg font-medium">
|
| 51 |
+
<i class="fas fa-play mr-2"></i> Start Bot
|
| 52 |
</button>
|
| 53 |
+
<button class="bg-gray-200 hover:bg-gray-300 text-gray-800 px-4 py-2 rounded-lg font-medium">
|
| 54 |
+
<i class="fas fa-cog mr-2"></i> Settings
|
| 55 |
</button>
|
| 56 |
</div>
|
| 57 |
</header>
|
| 58 |
+
|
| 59 |
+
<!-- Stats Dashboard -->
|
| 60 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-8">
|
| 61 |
+
<div class="bg-white rounded-xl shadow-md p-6 trading-card">
|
| 62 |
+
<div class="flex justify-between items-start">
|
| 63 |
+
<div>
|
| 64 |
+
<p class="text-gray-500 text-sm">Total Profit</p>
|
| 65 |
+
<h3 class="text-2xl font-bold text-green-500">$2,458.32</h3>
|
| 66 |
+
</div>
|
| 67 |
+
<div class="bg-green-100 text-green-800 p-2 rounded-lg">
|
| 68 |
+
<i class="fas fa-chart-line"></i>
|
| 69 |
+
</div>
|
| 70 |
+
</div>
|
| 71 |
+
<p class="text-green-500 text-sm mt-2"><i class="fas fa-arrow-up mr-1"></i> 12.5% this week</p>
|
| 72 |
</div>
|
| 73 |
+
|
| 74 |
+
<div class="bg-white rounded-xl shadow-md p-6 trading-card">
|
| 75 |
+
<div class="flex justify-between items-start">
|
| 76 |
+
<div>
|
| 77 |
+
<p class="text-gray-500 text-sm">Active Trades</p>
|
| 78 |
+
<h3 class="text-2xl font-bold text-blue-500">8</h3>
|
| 79 |
+
</div>
|
| 80 |
+
<div class="bg-blue-100 text-blue-800 p-2 rounded-lg">
|
| 81 |
+
<i class="fas fa-exchange-alt"></i>
|
| 82 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
</div>
|
| 84 |
+
<p class="text-blue-500 text-sm mt-2"><i class="fas fa-info-circle mr-1"></i> 4 buy / 4 sell</p>
|
| 85 |
+
</div>
|
| 86 |
+
|
| 87 |
+
<div class="bg-white rounded-xl shadow-md p-6 trading-card">
|
| 88 |
+
<div class="flex justify-between items-start">
|
| 89 |
+
<div>
|
| 90 |
+
<p class="text-gray-500 text-sm">24h Volume</p>
|
| 91 |
+
<h3 class="text-2xl font-bold text-purple-500">$42,158</h3>
|
| 92 |
+
</div>
|
| 93 |
+
<div class="bg-purple-100 text-purple-800 p-2 rounded-lg">
|
| 94 |
+
<i class="fas fa-coins"></i>
|
| 95 |
+
</div>
|
| 96 |
</div>
|
| 97 |
+
<p class="text-purple-500 text-sm mt-2"><i class="fas fa-arrow-up mr-1"></i> 8.3% from yesterday</p>
|
| 98 |
</div>
|
| 99 |
+
|
| 100 |
+
<div class="bg-white rounded-xl shadow-md p-6 trading-card">
|
| 101 |
+
<div class="flex justify-between items-start">
|
| 102 |
+
<div>
|
| 103 |
+
<p class="text-gray-500 text-sm">Success Rate</p>
|
| 104 |
+
<h3 class="text-2xl font-bold text-orange-500">78.6%</h3>
|
| 105 |
+
</div>
|
| 106 |
+
<div class="bg-orange-100 text-orange-800 p-2 rounded-lg">
|
| 107 |
+
<i class="fas fa-trophy"></i>
|
| 108 |
+
</div>
|
| 109 |
+
</div>
|
| 110 |
+
<p class="text-orange-500 text-sm mt-2"><i class="fas fa-check-circle mr-1"></i> 112/143 trades</p>
|
| 111 |
</div>
|
| 112 |
</div>
|
| 113 |
+
|
| 114 |
+
<!-- Main Content -->
|
| 115 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
|
| 116 |
+
<!-- Trading Controls -->
|
| 117 |
+
<div class="lg:col-span-2">
|
| 118 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
| 119 |
+
<div class="gradient-bg px-6 py-4">
|
| 120 |
+
<h2 class="text-xl font-bold text-white">Trading Controls</h2>
|
| 121 |
+
</div>
|
| 122 |
+
<div class="p-6">
|
| 123 |
+
<div class="mb-6">
|
| 124 |
+
<label class="block text-gray-700 text-sm font-bold mb-2" for="pair">
|
| 125 |
+
Trading Pair
|
| 126 |
+
</label>
|
| 127 |
+
<div class="relative">
|
| 128 |
+
<select id="pair" class="block appearance-none w-full bg-gray-100 border border-gray-200 text-gray-700 py-3 px-4 pr-8 rounded-lg leading-tight focus:outline-none focus:bg-white focus:border-blue-500">
|
| 129 |
+
<option>BTC/USDT</option>
|
| 130 |
+
<option>ETH/USDT</option>
|
| 131 |
+
<option>SOL/USDT</option>
|
| 132 |
+
<option>ADA/USDT</option>
|
| 133 |
+
<option>DOT/USDT</option>
|
| 134 |
+
</select>
|
| 135 |
+
<div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700">
|
| 136 |
+
<i class="fas fa-chevron-down"></i>
|
| 137 |
+
</div>
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
|
| 141 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
|
| 142 |
+
<div>
|
| 143 |
+
<label class="block text-gray-700 text-sm font-bold mb-2" for="amount">
|
| 144 |
+
Amount (USDT)
|
| 145 |
+
</label>
|
| 146 |
+
<input id="amount" type="number" class="w-full bg-gray-100 border border-gray-200 text-gray-700 py-3 px-4 rounded-lg leading-tight focus:outline-none focus:bg-white focus:border-blue-500" placeholder="100.00">
|
| 147 |
+
</div>
|
| 148 |
+
<div>
|
| 149 |
+
<label class="block text-gray-700 text-sm font-bold mb-2" for="leverage">
|
| 150 |
+
Leverage
|
| 151 |
+
</label>
|
| 152 |
+
<input id="leverage" type="number" min="1" max="20" class="w-full bg-gray-100 border border-gray-200 text-gray-700 py-3 px-4 rounded-lg leading-tight focus:outline-none focus:bg-white focus:border-blue-500" placeholder="5" value="5">
|
| 153 |
+
</div>
|
| 154 |
+
</div>
|
| 155 |
+
|
| 156 |
+
<div class="mb-6">
|
| 157 |
+
<label class="block text-gray-700 text-sm font-bold mb-2">
|
| 158 |
+
Strategy
|
| 159 |
+
</label>
|
| 160 |
+
<div class="grid grid-cols-3 gap-3">
|
| 161 |
+
<button class="bg-blue-100 text-blue-800 py-2 px-4 rounded-lg font-medium hover:bg-blue-200 focus:outline-none focus:ring-2 focus:ring-blue-500">
|
| 162 |
+
<i class="fas fa-bolt mr-2"></i> Scalping
|
| 163 |
+
</button>
|
| 164 |
+
<button class="bg-green-100 text-green-800 py-2 px-4 rounded-lg font-medium hover:bg-green-200 focus:outline-none focus:ring-2 focus:ring-green-500">
|
| 165 |
+
<i class="fas fa-wave-square mr-2"></i> Swing
|
| 166 |
+
</button>
|
| 167 |
+
<button class="bg-purple-100 text-purple-800 py-2 px-4 rounded-lg font-medium hover:bg-purple-200 focus:outline-none focus:ring-2 focus:ring-purple-500">
|
| 168 |
+
<i class="fas fa-robot mr-2"></i> AI
|
| 169 |
+
</button>
|
| 170 |
+
</div>
|
| 171 |
+
</div>
|
| 172 |
+
|
| 173 |
+
<div class="grid grid-cols-2 gap-4">
|
| 174 |
+
<button id="buy-btn" class="bg-green-500 hover:bg-green-600 text-white py-3 px-6 rounded-lg font-bold text-lg focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-opacity-50">
|
| 175 |
+
<i class="fas fa-arrow-up mr-2"></i> BUY
|
| 176 |
+
</button>
|
| 177 |
+
<button id="sell-btn" class="bg-red-500 hover:bg-red-600 text-white py-3 px-6 rounded-lg font-bold text-lg focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-opacity-50">
|
| 178 |
+
<i class="fas fa-arrow-down mr-2"></i> SELL
|
| 179 |
+
</button>
|
| 180 |
+
</div>
|
| 181 |
+
</div>
|
| 182 |
</div>
|
| 183 |
+
|
| 184 |
+
<!-- Recent Trades -->
|
| 185 |
+
<div class="bg-white rounded-xl shadow-md mt-8">
|
| 186 |
+
<div class="gradient-bg px-6 py-4">
|
| 187 |
+
<h2 class="text-xl font-bold text-white">Recent Trades</h2>
|
| 188 |
+
</div>
|
| 189 |
+
<div class="p-6">
|
| 190 |
+
<div class="overflow-x-auto">
|
| 191 |
+
<table class="min-w-full divide-y divide-gray-200">
|
| 192 |
+
<thead>
|
| 193 |
+
<tr>
|
| 194 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Pair</th>
|
| 195 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th>
|
| 196 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th>
|
| 197 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Price</th>
|
| 198 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Profit</th>
|
| 199 |
+
</tr>
|
| 200 |
+
</thead>
|
| 201 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
| 202 |
+
<tr>
|
| 203 |
+
<td class="px-4 py-3 whitespace-nowrap font-medium">BTC/USDT</td>
|
| 204 |
+
<td class="px-4 py-3 whitespace-nowrap"><span class="bg-green-100 text-green-800 py-1 px-2 rounded-full text-xs font-medium">BUY</span></td>
|
| 205 |
+
<td class="px-4 py-3 whitespace-nowrap">0.05 BTC</td>
|
| 206 |
+
<td class="px-4 py-3 whitespace-nowrap">$42,158.32</td>
|
| 207 |
+
<td class="px-4 py-3 whitespace-nowrap text-green-500 font-medium">+$124.50</td>
|
| 208 |
+
</tr>
|
| 209 |
+
<tr>
|
| 210 |
+
<td class="px-4 py-3 whitespace-nowrap font-medium">ETH/USDT</td>
|
| 211 |
+
<td class="px-4 py-3 whitespace-nowrap"><span class="bg-red-100 text-red-800 py-1 px-2 rounded-full text-xs font-medium">SELL</span></td>
|
| 212 |
+
<td class="px-4 py-3 whitespace-nowrap">1.2 ETH</td>
|
| 213 |
+
<td class="px-4 py-3 whitespace-nowrap">$2,458.75</td>
|
| 214 |
+
<td class="px-4 py-3 whitespace-nowrap text-green-500 font-medium">+$58.20</td>
|
| 215 |
+
</tr>
|
| 216 |
+
<tr>
|
| 217 |
+
<td class="px-4 py-3 whitespace-nowrap font-medium">SOL/USDT</td>
|
| 218 |
+
<td class="px-4 py-3 whitespace-nowrap"><span class="bg-green-100 text-green-800 py-1 px-2 rounded-full text-xs font-medium">BUY</span></td>
|
| 219 |
+
<td class="px-4 py-3 whitespace-nowrap">25 SOL</td>
|
| 220 |
+
<td class="px-4 py-3 whitespace-nowrap">$98.42</td>
|
| 221 |
+
<td class="px-4 py-3 whitespace-nowrap text-red-500 font-medium">-$12.30</td>
|
| 222 |
+
</tr>
|
| 223 |
+
<tr>
|
| 224 |
+
<td class="px-4 py-3 whitespace-nowrap font-medium">ADA/USDT</td>
|
| 225 |
+
<td class="px-4 py-3 whitespace-nowrap"><span class="bg-red-100 text-red-800 py-1 px-2 rounded-full text-xs font-medium">SELL</span></td>
|
| 226 |
+
<td class="px-4 py-3 whitespace-nowrap">500 ADA</td>
|
| 227 |
+
<td class="px-4 py-3 whitespace-nowrap">$0.42</td>
|
| 228 |
+
<td class="px-4 py-3 whitespace-nowrap text-green-500 font-medium">+$8.75</td>
|
| 229 |
+
</tr>
|
| 230 |
+
</tbody>
|
| 231 |
+
</table>
|
| 232 |
+
</div>
|
| 233 |
+
</div>
|
| 234 |
</div>
|
| 235 |
</div>
|
| 236 |
+
|
| 237 |
+
<!-- Telegram Bot Info -->
|
| 238 |
+
<div>
|
| 239 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
| 240 |
+
<div class="telegram-bg px-6 py-4">
|
| 241 |
+
<h2 class="text-xl font-bold text-white">Telegram Bot Setup</h2>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 242 |
</div>
|
| 243 |
+
<div class="p-6">
|
| 244 |
+
<div class="mb-6">
|
| 245 |
+
<h3 class="font-bold text-lg mb-2">Bot Connection</h3>
|
| 246 |
+
<div class="flex items-center mb-4">
|
| 247 |
+
<div class="w-10 h-10 rounded-full telegram-bg flex items-center justify-center mr-3">
|
| 248 |
+
<i class="fas fa-robot text-white"></i>
|
| 249 |
+
</div>
|
| 250 |
+
<div>
|
| 251 |
+
<p class="font-medium">@CryptoTraderBot</p>
|
| 252 |
+
<p class="text-sm text-gray-500">Last active: 2 min ago</p>
|
| 253 |
+
</div>
|
| 254 |
+
</div>
|
| 255 |
+
<div class="bg-gray-100 p-4 rounded-lg mb-4">
|
| 256 |
+
<p class="text-sm text-gray-700 mb-2">To connect your bot:</p>
|
| 257 |
+
<ol class="list-decimal list-inside text-sm space-y-1">
|
| 258 |
+
<li>Search for @CryptoTraderBot in Telegram</li>
|
| 259 |
+
<li>Start a conversation with the bot</li>
|
| 260 |
+
<li>Send your API key to authenticate</li>
|
| 261 |
+
<li>Use /start to begin trading</li>
|
| 262 |
+
</ol>
|
| 263 |
+
</div>
|
| 264 |
+
<button class="w-full telegram-bg telegram-hover text-white py-3 px-4 rounded-lg font-medium">
|
| 265 |
+
<i class="fab fa-telegram mr-2"></i> Open Telegram
|
| 266 |
+
</button>
|
| 267 |
</div>
|
| 268 |
+
|
| 269 |
+
<div class="mb-6">
|
| 270 |
+
<h3 class="font-bold text-lg mb-2">API Configuration</h3>
|
| 271 |
+
<div class="mb-4">
|
| 272 |
+
<label class="block text-gray-700 text-sm font-bold mb-2" for="api-key">
|
| 273 |
+
Exchange API Key
|
| 274 |
+
</label>
|
| 275 |
+
<div class="relative">
|
| 276 |
+
<input id="api-key" type="password" class="w-full bg-gray-100 border border-gray-200 text-gray-700 py-3 px-4 rounded-lg leading-tight focus:outline-none focus:bg-white focus:border-blue-500" placeholder="Enter your API key">
|
| 277 |
+
<button class="absolute right-3 top-3 text-gray-500 hover:text-gray-700" onclick="toggleApiKeyVisibility()">
|
| 278 |
+
<i class="fas fa-eye" id="api-key-eye"></i>
|
| 279 |
+
</button>
|
| 280 |
+
</div>
|
| 281 |
+
</div>
|
| 282 |
+
<div class="mb-4">
|
| 283 |
+
<label class="block text-gray-700 text-sm font-bold mb-2" for="api-secret">
|
| 284 |
+
Exchange API Secret
|
| 285 |
+
</label>
|
| 286 |
+
<div class="relative">
|
| 287 |
+
<input id="api-secret" type="password" class="w-full bg-gray-100 border border-gray-200 text-gray-700 py-3 px-4 rounded-lg leading-tight focus:outline-none focus:bg-white focus:border-blue-500" placeholder="Enter your API secret">
|
| 288 |
+
<button class="absolute right-3 top-3 text-gray-500 hover:text-gray-700" onclick="toggleApiSecretVisibility()">
|
| 289 |
+
<i class="fas fa-eye" id="api-secret-eye"></i>
|
| 290 |
+
</button>
|
| 291 |
+
</div>
|
| 292 |
+
</div>
|
| 293 |
+
<button class="w-full bg-blue-500 hover:bg-blue-600 text-white py-3 px-4 rounded-lg font-medium">
|
| 294 |
+
<i class="fas fa-save mr-2"></i> Save API Settings
|
| 295 |
+
</button>
|
| 296 |
+
</div>
|
| 297 |
+
|
| 298 |
+
<div>
|
| 299 |
+
<h3 class="font-bold text-lg mb-2">Bot Status</h3>
|
| 300 |
+
<div class="space-y-3">
|
| 301 |
+
<div class="flex justify-between items-center">
|
| 302 |
+
<span class="text-gray-700">Trading Enabled</span>
|
| 303 |
+
<label class="relative inline-flex items-center cursor-pointer">
|
| 304 |
+
<input type="checkbox" class="sr-only peer" checked>
|
| 305 |
+
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 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"></div>
|
| 306 |
+
</label>
|
| 307 |
+
</div>
|
| 308 |
+
<div class="flex justify-between items-center">
|
| 309 |
+
<span class="text-gray-700">Notifications</span>
|
| 310 |
+
<label class="relative inline-flex items-center cursor-pointer">
|
| 311 |
+
<input type="checkbox" class="sr-only peer" checked>
|
| 312 |
+
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 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-blue-500"></div>
|
| 313 |
+
</label>
|
| 314 |
+
</div>
|
| 315 |
+
<div class="flex justify-between items-center">
|
| 316 |
+
<span class="text-gray-700">Auto Restart</span>
|
| 317 |
+
<label class="relative inline-flex items-center cursor-pointer">
|
| 318 |
+
<input type="checkbox" class="sr-only peer">
|
| 319 |
+
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 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-blue-500"></div>
|
| 320 |
+
</label>
|
| 321 |
+
</div>
|
| 322 |
+
<div class="flex justify-between items-center">
|
| 323 |
+
<span class="text-gray-700">Risk Management</span>
|
| 324 |
+
<label class="relative inline-flex items-center cursor-pointer">
|
| 325 |
+
<input type="checkbox" class="sr-only peer" checked>
|
| 326 |
+
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 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"></div>
|
| 327 |
+
</label>
|
| 328 |
+
</div>
|
| 329 |
+
</div>
|
| 330 |
</div>
|
| 331 |
</div>
|
| 332 |
</div>
|
| 333 |
+
|
| 334 |
+
<!-- Quick Actions -->
|
| 335 |
+
<div class="bg-white rounded-xl shadow-md mt-8">
|
| 336 |
+
<div class="gradient-bg px-6 py-4">
|
| 337 |
+
<h2 class="text-xl font-bold text-white">Quick Actions</h2>
|
| 338 |
</div>
|
| 339 |
+
<div class="p-6">
|
| 340 |
+
<div class="grid grid-cols-2 gap-4">
|
| 341 |
+
<button class="bg-yellow-100 text-yellow-800 py-3 px-4 rounded-lg font-medium hover:bg-yellow-200">
|
| 342 |
+
<i class="fas fa-stopwatch mr-2"></i> Pause
|
| 343 |
+
</button>
|
| 344 |
+
<button class="bg-red-100 text-red-800 py-3 px-4 rounded-lg font-medium hover:bg-red-200">
|
| 345 |
+
<i class="fas fa-stop-circle mr-2"></i> Stop
|
| 346 |
+
</button>
|
| 347 |
+
<button class="bg-blue-100 text-blue-800 py-3 px-4 rounded-lg font-medium hover:bg-blue-200">
|
| 348 |
+
<i class="fas fa-sync-alt mr-2"></i> Refresh
|
| 349 |
+
</button>
|
| 350 |
+
<button class="bg-purple-100 text-purple-800 py-3 px-4 rounded-lg font-medium hover:bg-purple-200">
|
| 351 |
+
<i class="fas fa-history mr-2"></i> Logs
|
| 352 |
+
</button>
|
| 353 |
</div>
|
| 354 |
</div>
|
| 355 |
</div>
|
|
|
|
| 358 |
</div>
|
| 359 |
|
| 360 |
<script>
|
| 361 |
+
// Toggle API key visibility
|
| 362 |
+
function toggleApiKeyVisibility() {
|
| 363 |
+
const apiKeyInput = document.getElementById('api-key');
|
| 364 |
+
const eyeIcon = document.getElementById('api-key-eye');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 365 |
|
| 366 |
+
if (apiKeyInput.type === 'password') {
|
| 367 |
+
apiKeyInput.type = 'text';
|
| 368 |
+
eyeIcon.classList.remove('fa-eye');
|
| 369 |
+
eyeIcon.classList.add('fa-eye-slash');
|
| 370 |
+
} else {
|
| 371 |
+
apiKeyInput.type = 'password';
|
| 372 |
+
eyeIcon.classList.remove('fa-eye-slash');
|
| 373 |
+
eyeIcon.classList.add('fa-eye');
|
|
|
|
|
|
|
|
|
|
| 374 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 375 |
}
|
| 376 |
|
| 377 |
+
// Toggle API secret visibility
|
| 378 |
+
function toggleApiSecretVisibility() {
|
| 379 |
+
const apiSecretInput = document.getElementById('api-secret');
|
| 380 |
+
const eyeIcon = document.getElementById('api-secret-eye');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 381 |
|
| 382 |
+
if (apiSecretInput.type === 'password') {
|
| 383 |
+
apiSecretInput.type = 'text';
|
| 384 |
+
eyeIcon.classList.remove('fa-eye');
|
| 385 |
+
eyeIcon.classList.add('fa-eye-slash');
|
| 386 |
+
} else {
|
| 387 |
+
apiSecretInput.type = 'password';
|
| 388 |
+
eyeIcon.classList.remove('fa-eye-slash');
|
| 389 |
+
eyeIcon.classList.add('fa-eye');
|
| 390 |
}
|
|
|
|
|
|
|
|
|
|
| 391 |
}
|
| 392 |
|
| 393 |
+
// Simulate buy/sell actions
|
| 394 |
+
document.getElementById('buy-btn').addEventListener('click', function() {
|
| 395 |
+
simulateTrade('BUY');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 396 |
});
|
| 397 |
|
| 398 |
+
document.getElementById('sell-btn').addEventListener('click', function() {
|
| 399 |
+
simulateTrade('SELL');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 400 |
});
|
| 401 |
|
| 402 |
+
function simulateTrade(type) {
|
| 403 |
+
const pair = document.getElementById('pair').value;
|
| 404 |
+
const amount = document.getElementById('amount').value || '100.00';
|
| 405 |
+
const leverage = document.getElementById('leverage').value || '5';
|
| 406 |
+
|
| 407 |
+
// Create notification
|
| 408 |
+
const notification = document.createElement('div');
|
| 409 |
+
notification.className = `fixed bottom-4 right-4 bg-white shadow-lg rounded-lg p-4 max-w-sm border-l-4 ${type === 'BUY' ? 'border-green-500' : 'border-red-500'}`;
|
| 410 |
+
notification.innerHTML = `
|
| 411 |
+
<div class="flex items-start">
|
| 412 |
+
<div class="flex-shrink-0 ${type === 'BUY' ? 'text-green-500' : 'text-red-500'} text-xl mr-3">
|
| 413 |
+
<i class="fas ${type === 'BUY' ? 'fa-arrow-up' : 'fa-arrow-down'}"></i>
|
| 414 |
+
</div>
|
| 415 |
+
<div>
|
| 416 |
+
<h4 class="font-bold text-gray-800">${type} Order Placed</h4>
|
| 417 |
+
<p class="text-sm text-gray-600 mt-1">${pair} | ${amount} USDT | ${leverage}x</p>
|
| 418 |
+
<p class="text-xs text-gray-500 mt-2">Order ID: ${Math.random().toString(36).substr(2, 8).toUpperCase()}</p>
|
| 419 |
+
</div>
|
| 420 |
+
</div>
|
| 421 |
+
`;
|
| 422 |
+
|
| 423 |
+
document.body.appendChild(notification);
|
| 424 |
+
|
| 425 |
+
// Remove notification after 5 seconds
|
| 426 |
+
setTimeout(() => {
|
| 427 |
+
notification.classList.add('opacity-0', 'transition-opacity', 'duration-300');
|
| 428 |
+
setTimeout(() => {
|
| 429 |
+
notification.remove();
|
| 430 |
+
}, 300);
|
| 431 |
+
}, 5000);
|
| 432 |
+
}
|
| 433 |
</script>
|
| 434 |
<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=Abrasax22/3d-model-threads" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 435 |
</html>
|