Skip to content

Commit

Permalink
Finished dynemic temperature feature
Browse files Browse the repository at this point in the history
  • Loading branch information
luhas21 committed Feb 7, 2024
1 parent 7e0a001 commit e79b9c7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h1>Test Your SPEEL Dev</h1>
</defs>
</svg>
<h2>Sunny Play</h2>
<p>Our center is located in beautiful Miami, and it&rsquo;s currently 84°F at our pet playground.</p>
<p>Our center is located in beautiful Miami, and it&rsquo;s currently <span id="temperature-output"></span>°F at our pet playground.</p>
</div>
<div class="intro-feature">
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none">
Expand Down Expand Up @@ -127,7 +127,7 @@ <h3>Barksalot</h3>
<div class="pet-card">
<div class="pet-card-text">
<h3>Barksalot</h3>
<p class="pet-description">Meowsalot is the most talkative cat weve ever come across. Constant meowing, chirping and purring!</p>
<p class="pet-description">Meowsalot is the most talkative cat we&rsquo;ve ever come across. Constant meowing, chirping and purring!</p>
<p class="pet-age">1 years old</p>
</div>
<div class="pet-card-photo">
Expand All @@ -147,7 +147,7 @@ <h3>Barksalot</h3>
<div class="pet-card">
<div class="pet-card-text">
<h3>Barksalot</h3>
<p class="pet-description">Purrsloud has the loudest and most relaxing purr thats come through our center. Come hear it yourself.</p>
<p class="pet-description">Purrsloud has the loudest and most relaxing purr that&rsquo;s come through our center. Come hear it yourself.</p>
<p class="pet-age">4 years old</p>
</div>
<div class="pet-card-photo">
Expand All @@ -160,6 +160,7 @@ <h3>Barksalot</h3>
<footer class="site-footer">
<p>&copy; 2023 Fake Adoption Center. All rights reserved</p>
</footer>
<script src="main.js"></script>
</body>

</html>
8 changes: 8 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
async function start() {
const weatherPromise = await fetch("https://api.weather.gov/gridpoints/MFL/110,50/forecast")
const weatherData = await weatherPromise.json()
const ourTemperature = weatherData.properties.periods[0].temperature
document.querySelector('#temperature-output').textContent = ourTemperature
}

start()

0 comments on commit e79b9c7

Please sign in to comment.