implemented currency selection
This commit is contained in:
parent
c2ad2306aa
commit
b74b96fe25
@ -26,7 +26,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="your_javascript_file.js"></script>
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
@ -31,7 +31,7 @@ function updateBitcoinPrice() {
|
|||||||
// Function to refresh the Bitcoin price every 30 seconds
|
// Function to refresh the Bitcoin price every 30 seconds
|
||||||
function refreshBitcoinPrice() {
|
function refreshBitcoinPrice() {
|
||||||
updateBitcoinPrice(); // Call the function immediately to display the price on page load
|
updateBitcoinPrice(); // Call the function immediately to display the price on page load
|
||||||
setInterval(updateBitcoinPrice, 30000); // Call the function every 30 seconds (30,000 milliseconds)
|
setInterval(updateBitcoinPrice, 5000); // Call the function every 5 seconds (5,000 milliseconds)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Call the function to refresh the Bitcoin price
|
// Call the function to refresh the Bitcoin price
|
||||||
|
Loading…
Reference in New Issue
Block a user