Here Is my pen https://codepen.io/fotisoikonomou/pen/yaKBkN
for a reason I get the fcc api values undefined…
Please if anyone knows help me
Here Is my pen https://codepen.io/fotisoikonomou/pen/yaKBkN
for a reason I get the fcc api values undefined…
Please if anyone knows help me
I edited the link because it says the debug view already expired.
The page is displaying the weather (though the temperature only appears when you click the button). Probably a glitch on the API’s part? Or is it something else?
It works for me, i get my weather and location.
Your app works fine for me!
that thing …the temperature is shown only when clicked?
You can copy the code that displays the °C temperature just after you set the °F value. However, this will introduce duplicate code, so you might want to enclose that in a function.
var fTemp = data.main.temp * 9 / 5 + 32;
$("#temp").html(
"<h3>The current temperature in " +
data.name +
" is: " +
data.main.temp +
"℃</h3>"
);
$('.change').on('change', function() {...});