timoon811 commited on
Commit
9907b99
·
verified ·
1 Parent(s): b7f76e3

значок долара рядом с растущей цифрой

Browse files
Files changed (1) hide show
  1. index.html +10 -8
index.html CHANGED
@@ -80,8 +80,11 @@ animation: pulse 2s infinite;
80
  </p>
81
  <div class="bg-gray-800 bg-opacity-50 p-4 rounded-xl mb-8 border border-green-600">
82
  <p class="text-green-100 mb-1 text-center">Your balance:</p>
83
- <p id="balanceCounter" class="text-5xl font-bold text-green-300 text-center">$150</p>
84
- <div class="text-green-100 text-sm flex items-center justify-center">
 
 
 
85
  <i data-feather="trending-up" class="w-4 h-4 mr-1"></i>
86
  <span id="balanceChange">+$0</span>
87
  </div>
@@ -398,15 +401,14 @@ animation: pulse 2s infinite;
398
  animateCounter('userCounter', randomUsers);
399
  animateCounter('userCounter2', randomUsers);
400
  // Initialize balance and animate its growth
401
- let balance = 15000;
402
- let previousBalance = 15000;
403
  function updateBalance() {
404
  const change = Math.floor(Math.random() * 1000) + 100; // Larger increments for bigger numbers
405
  previousBalance = balance;
406
  balance += change;
407
-
408
  // Ensure balance never goes below initial value
409
- if (balance < 15000) balance = 15000;
410
  document.getElementById('balanceChange').textContent = `+${change}`;
411
 
412
  // Animate the counter
@@ -421,8 +423,8 @@ document.getElementById('balanceChange').textContent = `+${change}`;
421
  }
422
 
423
  // Initialize balance display
424
- document.getElementById('balanceCounter').textContent = balance;
425
- document.getElementById('balanceChange').textContent = '+0';
426
 
427
  // Update balance every 3-5 seconds
428
  function scheduleBalanceUpdate() {
 
80
  </p>
81
  <div class="bg-gray-800 bg-opacity-50 p-4 rounded-xl mb-8 border border-green-600">
82
  <p class="text-green-100 mb-1 text-center">Your balance:</p>
83
+ <div class="flex items-center justify-center gap-2">
84
+ <span class="text-5xl font-bold text-green-300">$</span>
85
+ <span id="balanceCounter" class="text-5xl font-bold text-green-300">150</span>
86
+ </div>
87
+ <div class="text-green-100 text-sm flex items-center justify-center">
88
  <i data-feather="trending-up" class="w-4 h-4 mr-1"></i>
89
  <span id="balanceChange">+$0</span>
90
  </div>
 
401
  animateCounter('userCounter', randomUsers);
402
  animateCounter('userCounter2', randomUsers);
403
  // Initialize balance and animate its growth
404
+ let balance = 150;
405
+ let previousBalance = 150;
406
  function updateBalance() {
407
  const change = Math.floor(Math.random() * 1000) + 100; // Larger increments for bigger numbers
408
  previousBalance = balance;
409
  balance += change;
 
410
  // Ensure balance never goes below initial value
411
+ if (balance < 150) balance = 150;
412
  document.getElementById('balanceChange').textContent = `+${change}`;
413
 
414
  // Animate the counter
 
423
  }
424
 
425
  // Initialize balance display
426
+ document.getElementById('balanceCounter').textContent = balance.toString();
427
+ document.getElementById('balanceChange').textContent = '+0';
428
 
429
  // Update balance every 3-5 seconds
430
  function scheduleBalanceUpdate() {