Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
mirak-oracle authored Jun 27, 2024
1 parent 80779c3 commit 9687dd8
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,19 @@
.nav-button {
width: 20%;
text-align: center;
margin: 0 0.5rem;
}
.holographic-text {
background: linear-gradient(45deg, #ff0099, #493240, #1CB5E0, #000046);
background-size: 200% 200%;
color: transparent;
-webkit-background-clip: text;
background-clip: text;
animation: gradient-animation 2s linear infinite;
animation: gradient-animation 2s linear infinite, rotate-animation 2s linear infinite;
}
@keyframes rotate-animation {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
</head>
Expand Down Expand Up @@ -147,7 +152,7 @@ <h2 class="text-2xl mb-4">Wallet</h2>
}

function updateMiningAmount(secondsLeft) {
const ratePerSecond = 6.0001; // Adjust mining rate per second
const ratePerSecond = 0.0001; // Adjust mining rate per second
const currentBalance = parseFloat(localStorage.getItem('balance')) || 0;
const miningAmount = currentBalance + (ratePerSecond * (60 * 60 * 24 - secondsLeft)); // Total mined amount
document.getElementById('miningAmount').innerText = `Current Balance: ${miningAmount.toFixed(4)} CosmicCoin`;
Expand Down Expand Up @@ -182,23 +187,23 @@ <h2 class="text-2xl mb-4">Wallet</h2>
alert(`Task ${taskId} completed!`);
// Add logic for completing tasks and boosting mining rate
const currentBalance = parseFloat(localStorage.getItem('balance')) || 0;
localStorage.setItem('balance', currentBalance + 5); // Reward for task completion
localStorage.setItem('balance', currentBalance + 1); // Reward for task completion
updateBalanceDisplay();
}

function claimDailyReward() {
alert('Daily reward claimed!');
// Add logic for claiming daily rewards
const currentBalance = parseFloat(localStorage.getItem('balance')) || 0;
localStorage.setItem('balance', currentBalance + 15); // Daily reward amount
localStorage.setItem('balance', currentBalance + 5); // Daily reward amount
updateBalanceDisplay();
}

function inviteFriend() {
alert('Invite sent!');
// Add logic for inviting friends
const currentBalance = parseFloat(localStorage.getItem('balance')) || 0;
localStorage.setItem('balance', currentBalance + 20); // Reward for inviting friend
localStorage.setItem('balance', currentBalance + 2); // Reward for inviting friend
updateBalanceDisplay();
}

Expand Down

0 comments on commit 9687dd8

Please sign in to comment.