Skip to content

UFO sightings reported in a dataset. Using JavaScript to have an input value to filter through multiple levels

Notifications You must be signed in to change notification settings

FAufenger/javascript-ufo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

javascript-challenge

The truth is out there

Background

WAKE UP SHEEPLE! The extra-terrestrial menace has come to Earth and we here at ALIENS-R-REAL have collected all of the eye-witness reports we could to prove it! All we need to do now is put this information online for the world to see and then the matter will finally be put to rest.

There is just one tiny problem though... our collection is too large to search through manually. Even our most dedicated followers are complaining that they are having trouble locating specific reports in this mess.

Thats why we need a code that will create a table dynamically based upon a dataset provided. We also need to allow users to filter the table data for specific values. There's a catch though... we only use pure JavaScript, HTML, and CSS, and D3.js on our web pages. They are the only coding languages which can be trusted.

Level 1: Automatic Table and Date Search

  • Using the UFO dataset provided in the form of an array of JavaScript objects, code appends a table to a web page and then adds new rows of data for each UFO sighting.
  • Uses a date form in HTML document to write JavaScript code that listens for events and search through the date/time column to find rows that match user input.

single level filter



Level 2: Multiple Search Categories

  • Utilizes multiple input tags and a select dropdown to either inclusively or exclusively filter the provided dataset
  • JavaScript code so the user can to set multiple filters and search for UFO sightings using all or some of the criteria

multi level  exclusive filter

Code sample of utilizing website responses if no in found, no input variables or if there is an unexpected error

user friendly example

Sample of console log after each search

sample console log

About

UFO sightings reported in a dataset. Using JavaScript to have an input value to filter through multiple levels

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published