👽 Use JavaScript to create a dynamic webpage for UFO sighting data.
This analysis aimed to view information related to UFO sightings based on five search criteria.
- Date 📅
- City 🏙️
- State 🗽
- Country 🗺️
- Type 🔵
The information is displayed on a webpage that accepts user input for any combination of the search criteria. The UFO data is pulled from the data.js file, well app.js holds the code for the filters, and the index.html holds the webpage code.
The filters to search by are located below the introduction to the webpage.
- Use the "Date" filter, type a date in the mm/dd/yyyy format into the box, and then click outside the box to update the table.
- Use the "City" filter, type a city's name in lowercase into the box, then click outside the box to update the table.
- Use the "State" filter, type the two-letter abbreviation of a state in the United States in lowercase into the box, then click outside the box to update the table.
- Use the "Country" filter, type the two-letter abbreviation of a country using lowercase into the box, and then click outside the box to update the table.
- To use the "Type" filter, type a shape name like "triangle" or "circle" into the box using lowercase, then click outside the box to update the table.
- To use multiple filters, follow the instructions for each of the search criteria in any order, one after the other. You will see the table update with each filter added.
If the table is empty, there is no data for the information inputted in the search criteria.
One drawback of this design is that it did not explicitly state when the search criteria returned no results.
Two things that may be helpful for further development of the webpage are an error message when no results are found from the search and a more flexible date search that would allow for filtering by month or year instead of a specific date.