Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
RS2480 authored Oct 18, 2024
1 parent efce741 commit 1364934
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ <h1>Dynamic Electricity Price</h1>
<section>
<h2>Current Dynamic Electricity Price</h2>
<!-- Line added above date and time -->
<p>Here you will get the current dynamic electricity rate taken from the Tiber App.</p>
<p>Here you will get the current dynamic electricity price taken from the Tiber App.</p>
<p id="datetime"></p>
<p id="electricity-price">Fetching the latest electricity price...</p>
</section>
Expand Down Expand Up @@ -151,7 +151,7 @@ <h2>Contact Us</h2>
const time = new Date(priceInfo.startsAt).toLocaleTimeString();

// Display the fetched price on the webpage (without time)
document.getElementById('electricity-price').innerHTML = `${price} EUR/kWh`;
document.getElementById('electricity-price').innerHTML = `Current dynamic price: ${price} EUR/kWh`;
} catch (error) {
document.getElementById('electricity-price').innerHTML = 'Error fetching the electricity price.';
console.error('Error:', error);
Expand Down

0 comments on commit 1364934

Please sign in to comment.