This repository contains code that will create a table dynamically based upon a dataset provide. The code allows the users to filter the table data for specific values. We only use pure JavaScript, HTML, and CSS, and D3.js on our web pages.
-
Create a HTML web page.
-
Using the UFO dataset provided in the form of an array of JavaScript objects, write code that appends a table to the web page and then adds new rows of data for each UFO sighting. The table has the following columns:
date/time
,city
,state
,country
,shape
, andcomment
.
- Use a date form in the HTML document and use JavaScript code that will listen for events and search through the
date/time
column to find rows that match user input
-
Based on the HTML page of the level 1 above, build a new HTML web page that allows multiple search criteria.
-
Using multiple
input
tags, use JavaScript code so the user can to set multiple filters and search for UFO sightings using the following criteria based on the table columns:date/time
city
state
country
shape
The user is able to filter using a single or multiple fiels, as can be seen below.
Here, the result is based on a multiple fiels search: