Spaces:
Running
Running
tambahkan fitur nominal ang ingin di stake di deposit - Follow Up Deployment
Browse files- index.html +38 -1
index.html
CHANGED
@@ -322,6 +322,15 @@
|
|
322 |
<p class="mb-2"><i class="fas fa-info-circle mr-2 text-purple-600"></i> Send only BTC to this address</p>
|
323 |
<p><i class="fas fa-clock mr-2 text-purple-600"></i> Network confirmations required: 3</p>
|
324 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
325 |
<div class="bg-gray-100 p-4 rounded-lg mb-4">
|
326 |
<p class="text-sm font-mono break-all">bc1qxy2kgdygjrsqtzq2n0yrf2493w83f6u5hha40c</p>
|
327 |
</div>
|
@@ -334,6 +343,15 @@
|
|
334 |
<p class="mb-2"><i class="fas fa-info-circle mr-2 text-purple-600"></i> Send only ETH to this address</p>
|
335 |
<p><i class="fas fa-clock mr-2 text-purple-600"></i> Network confirmations required: 12</p>
|
336 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
337 |
<div class="bg-gray-100 p-4 rounded-lg mb-4">
|
338 |
<p class="text-sm font-mono break-all">0x71C7656EC7ab88b098defB751B7401B5f6d8976F</p>
|
339 |
</div>
|
@@ -346,6 +364,15 @@
|
|
346 |
<p class="mb-2"><i class="fas fa-info-circle mr-2 text-purple-600"></i> Send only SOL to this address</p>
|
347 |
<p><i class="fas fa-clock mr-2 text-purple-600"></i> Network confirmations required: 1</p>
|
348 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
349 |
<div class="bg-gray-100 p-4 rounded-lg mb-4">
|
350 |
<p class="text-sm font-mono break-all">HN5XkCzZiuH3z8ZzhYQH5RfK8mJZ3Yq3X7Xq5vL9J2K</p>
|
351 |
</div>
|
@@ -550,16 +577,26 @@
|
|
550 |
// Copy address to clipboard
|
551 |
function copyAddress(asset) {
|
552 |
let address = '';
|
|
|
|
|
553 |
if (asset === 'btc') {
|
554 |
address = 'bc1qxy2kgdygjrsqtzq2n0yrf2493w83f6u5hha40c';
|
|
|
555 |
} else if (asset === 'eth') {
|
556 |
address = '0x71C7656EC7ab88b098defB751B7401B5f6d8976F';
|
|
|
557 |
} else if (asset === 'sol') {
|
558 |
address = 'HN5XkCzZiuH3z8ZzhYQH5RfK8mJZ3Yq3X7Xq5vL9J2K';
|
|
|
|
|
|
|
|
|
|
|
|
|
559 |
}
|
560 |
|
561 |
navigator.clipboard.writeText(address).then(() => {
|
562 |
-
alert(
|
563 |
// Automatically switch to portfolio tab after copying
|
564 |
setTimeout(() => {
|
565 |
switchTab('portfolio');
|
|
|
322 |
<p class="mb-2"><i class="fas fa-info-circle mr-2 text-purple-600"></i> Send only BTC to this address</p>
|
323 |
<p><i class="fas fa-clock mr-2 text-purple-600"></i> Network confirmations required: 3</p>
|
324 |
</div>
|
325 |
+
<div class="mb-4">
|
326 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Amount to Stake</label>
|
327 |
+
<div class="relative rounded-md shadow-sm">
|
328 |
+
<input type="number" id="btc-amount" placeholder="0.00" class="block w-full pr-12 pl-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-purple-500 focus:border-purple-500 sm:text-sm">
|
329 |
+
<div class="absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none">
|
330 |
+
<span class="text-gray-500 sm:text-sm">BTC</span>
|
331 |
+
</div>
|
332 |
+
</div>
|
333 |
+
</div>
|
334 |
<div class="bg-gray-100 p-4 rounded-lg mb-4">
|
335 |
<p class="text-sm font-mono break-all">bc1qxy2kgdygjrsqtzq2n0yrf2493w83f6u5hha40c</p>
|
336 |
</div>
|
|
|
343 |
<p class="mb-2"><i class="fas fa-info-circle mr-2 text-purple-600"></i> Send only ETH to this address</p>
|
344 |
<p><i class="fas fa-clock mr-2 text-purple-600"></i> Network confirmations required: 12</p>
|
345 |
</div>
|
346 |
+
<div class="mb-4">
|
347 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Amount to Stake</label>
|
348 |
+
<div class="relative rounded-md shadow-sm">
|
349 |
+
<input type="number" id="eth-amount" placeholder="0.00" class="block w-full pr-12 pl-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-purple-500 focus:border-purple-500 sm:text-sm">
|
350 |
+
<div class="absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none">
|
351 |
+
<span class="text-gray-500 sm:text-sm">ETH</span>
|
352 |
+
</div>
|
353 |
+
</div>
|
354 |
+
</div>
|
355 |
<div class="bg-gray-100 p-4 rounded-lg mb-4">
|
356 |
<p class="text-sm font-mono break-all">0x71C7656EC7ab88b098defB751B7401B5f6d8976F</p>
|
357 |
</div>
|
|
|
364 |
<p class="mb-2"><i class="fas fa-info-circle mr-2 text-purple-600"></i> Send only SOL to this address</p>
|
365 |
<p><i class="fas fa-clock mr-2 text-purple-600"></i> Network confirmations required: 1</p>
|
366 |
</div>
|
367 |
+
<div class="mb-4">
|
368 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Amount to Stake</label>
|
369 |
+
<div class="relative rounded-md shadow-sm">
|
370 |
+
<input type="number" id="sol-amount" placeholder="0.00" class="block w-full pr-12 pl-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-purple-500 focus:border-purple-500 sm:text-sm">
|
371 |
+
<div class="absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none">
|
372 |
+
<span class="text-gray-500 sm:text-sm">SOL</span>
|
373 |
+
</div>
|
374 |
+
</div>
|
375 |
+
</div>
|
376 |
<div class="bg-gray-100 p-4 rounded-lg mb-4">
|
377 |
<p class="text-sm font-mono break-all">HN5XkCzZiuH3z8ZzhYQH5RfK8mJZ3Yq3X7Xq5vL9J2K</p>
|
378 |
</div>
|
|
|
577 |
// Copy address to clipboard
|
578 |
function copyAddress(asset) {
|
579 |
let address = '';
|
580 |
+
let amount = 0;
|
581 |
+
|
582 |
if (asset === 'btc') {
|
583 |
address = 'bc1qxy2kgdygjrsqtzq2n0yrf2493w83f6u5hha40c';
|
584 |
+
amount = document.getElementById('btc-amount').value;
|
585 |
} else if (asset === 'eth') {
|
586 |
address = '0x71C7656EC7ab88b098defB751B7401B5f6d8976F';
|
587 |
+
amount = document.getElementById('eth-amount').value;
|
588 |
} else if (asset === 'sol') {
|
589 |
address = 'HN5XkCzZiuH3z8ZzhYQH5RfK8mJZ3Yq3X7Xq5vL9J2K';
|
590 |
+
amount = document.getElementById('sol-amount').value;
|
591 |
+
}
|
592 |
+
|
593 |
+
if (!amount || parseFloat(amount) <= 0) {
|
594 |
+
alert('Please enter a valid amount to stake');
|
595 |
+
return;
|
596 |
}
|
597 |
|
598 |
navigator.clipboard.writeText(address).then(() => {
|
599 |
+
alert(`Address copied to clipboard!\nYou are staking ${amount} ${asset.toUpperCase()}`);
|
600 |
// Automatically switch to portfolio tab after copying
|
601 |
setTimeout(() => {
|
602 |
switchTab('portfolio');
|