Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
manjunath7472 authored Jan 12, 2025
1 parent f70c505 commit 28809b5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions youtube/balance.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@
.animate-down-in {
animation: moveDownToPosition 1s forwards;
}
#coin {
width: 6.2%;
}
</style>
</head>
<body>
Expand All @@ -109,7 +112,8 @@
</div>

<div id="balance-container">
<div id="balance">&#8377;</div> <!-- Initial balance set to "Loading..." -->
<div id="balance"></div>
<img id="coin" src="rupee.gif" alt="Dollar Coin">
</div>

<div id="title">
Expand Down Expand Up @@ -163,7 +167,7 @@
document.getElementById('bottom-half').style.opacity = 1;
}
}
balanceElement.innerHTML = `${currentBalance} &#8377;`;
balanceElement.innerHTML = `${currentBalance} `;
}, 50); // Adjust the interval to control the speed
}

Expand Down Expand Up @@ -204,14 +208,14 @@
const balanceElement = document.getElementById('balance');
let currentBalance = parseInt(balanceElement.innerText.replace(' ₹', ''), 10);
currentBalance += 1;
balanceElement.innerHTML = `${currentBalance} &#8377;`;
balanceElement.innerHTML = `${currentBalance} `;
});

document.getElementById('decrement').addEventListener('click', () => {
const balanceElement = document.getElementById('balance');
let currentBalance = parseInt(balanceElement.innerText.replace(' ₹', ''), 10);
currentBalance -= 1;
balanceElement.innerHTML = `${currentBalance} &#8377;`;
balanceElement.innerHTML = `${currentBalance} `;
});

// Animate the title image on page load
Expand Down
Binary file added youtube/icons8-dollar-coin.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added youtube/rupee.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 28809b5

Please sign in to comment.