27 AnswersNew Answer
27 AnswersNew Answer
got it. u have class now , i will check the code after class and let u know. thank my prodessor ^^
yeah. i got it. i just put else} . so this code only check the zip code that i want to check location . right. i put my city in html , and if i set anothet zip code it still show my city ^^
Where would be getting temperature data? User input or dynamic?
the temp of New Jersey , usa my professor ask use JSON to do it.
use openweathermap api. Here https://openweathermap.org/examples
There are lots of examples available. Try it.
thanks. do u know how to make the temp less than 50 the light blue will on?
Write the JS script to change background color to light blue under the specific condition
i tried but how i cant. i dk how the temp low the blue light will on. @[email protected]
Did you use the API and get temp from it? Just use a condition then... How much have you done already?
i just am taking class html and he want me to use js but he dont teach anything. i am taking online class and he didnt teach anythihg at all. thats why i dont know how to do. and it is my final . thats kill me
What, he is nuts??? Okay I'll do it, and tell you when I'm done...
thank you so much. you're the best . can u do it quickly cause its due on this weekend. can i have your email ? where u live?
So I did it. But here are some usage instructions. First you have to get an api key from openweathermap. For that you need to just sign up on its website. And you'll have it. Second, you need to edit the webpage. In the api_key variable, copy you api key as a string, and in the zip_code variable zip code for your location. Third, openweathermap api can only be called once in ten minutes. Fourth, your professor will know that you cheated.
i will tried to follow you guide. how can he know i cheated if i change location ?
Just because you are taking html class, and the webpage uses JS. since you're not knowing JS, you couldn't have wrote it.
yes, exactly . i dont know why he said we use js to make a weather app . he didnt teach anything about js. however , u help me , thank god. now i can have code through the webpage u post , right
Yep, whatever. Happy to help kid. At this point you won't be needing personal information. Still I'm at [email protected], from India.
the people from indian that really good about coding . right . thank you so much
Sololearn Inc.4 Embarcadero Center, Suite 1455
Send us a message