A project based on Javascript, HTML 5, CSS and free APIs to demonstrate how to obtain data and print the values for each array element when the program is executed.
TRY IT HERE! Version 1.0
- When the page has loaded, the MAIN tag at the HTML will be empty, but once the program loads by the click listener of the search button, then new tags will be created. Take a look at the HTML
- In the Javascript file, the first API to load information is Rest Countries API. This service retrieves additional data like the multiple versions of the country's name. This is how the program searches the country and then retrieves information for the weather. Take a look at the JS
- Now that we have the name, Open Weather API loads the weather conditions for the chosen country.
- Finally, the Javascript creates the HTML tags to print the data.
You can find a country by typing the name in any of the available languages at the program. Attention: This version of the program recognizes only names without typos.
- English
- Spanish
- Dutch
- Portuguese
- Japanese
- French
- Italian
- And more...
Any country you are interested. You only need to type the name and press Enter or click the button to obtain results. The data is updated by minute, so everytime you search, the program shows updated info about the country's weather.
- Enter the name in the search bar
- Remember to enter the name without typos
- If the input has typos, the program will not show any results
- Forget about Capital letters, the APP will do it for you
- Press ENTER key or CLICK the search button
- GET the data you are looking for
If you are looking for the weather, then you must be also interested in some other facts. Every result will show additional data related to the country to document the most important facts about the place you are looking for. You may find:
- The Flag
- The actual hour
- Related names to the country
- Citizenship
- Continent and region
- Timezones, Sunset, and Sunrise hour
- Population and languages
- Currencies and frontiers
The website prioritize mobile displays, so give it a try in your mobile phone.