Giter Site home page Giter Site logo

ufo-analysis's Introduction

UFO's

Overview

The purpose of this challenge is to create additional filter inputs for our webpage in order to filter out any UFO sighting data that corresponds to our selected date, city, state, country, and shape of the spacecraft.

We modify our javascript file in order to insert the values from user input into an object whose contents we loop through in order to check that each ufo sighting fulfills the conditions in the filter array.

Results

In order for the visitor to use the webpage, they must enter their data in the search fields according to the exact format provided in the input box. Not all search fields need a value in order for a search top occur.

An example for all search fields enetered:

All_Search_Values_Entered

An example for some search fields enetered:

Some_Search_Values_Entered

The user presses "enter" or "return" on their keyboard. The background javascript will first store the values of each filter into an array in the updateFilters() function. After creating the filter array inside the function, the script will then call the filterTable() function to loop through each value in the filter array in order to match each searchfiled to the filtered table data. It will do this several times depending on how many search values the user entered into the webpage until the final filtered table data contains all of the objects which match all search criteria.

The final result will be a filtered table as seen below:

An example of a filtered table:

Filtered_Table

Summary

In a summary statement, describe one drawback of this new design and two recommendations for further development.

One drawback for this design is that the "Filter Search" section of the webpage does not evenly line up all search fields. In order to develop this application even further, I would try to improve:

  • the bootstrap grid layout of all search fields so that the search fields line up.
  • I would change the input box to a dropdown selection for "State" and "Shape" since it's easier for the user to filter the data when they can see the options available instead of guessing. Since all data is from the US, I would also remove "Country" as a search field.

ufo-analysis's People

Contributors

namin1993 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.