Giter Club home page Giter Club logo

lab-02's Introduction

Time Estimate For each of the features listed below, make an estimate of the time it will take you to complete the feature, and record your start and finish times for that feature:

Number and name of feature: index.html, js/app.js, css (4 files), page-1.json, README.md, .eslintrc.json, and .gitignore

Estimate of time needed to complete: 2 hours__

Start time: 7.00pm___

Finish time: 11.00pm___

Actual time needed to complete: 5 hours___

Feature #1: Display images Why are we implementing this feature? As a user, I want to view the images on the page so that I can browse the photo collection. What are we going to implement? Given that a user opens the application in the browser When the user navigates to the home page Then the photo gallery should display all of the images in the gallery

How are we implementing it? Use AJAX, specifically $.get(), to read the provided JSON file. Each object should become a new instance of a constructor function. Refer to the data to determine the necessary properties. Use jQuery to make a copy of the HTML template of the photo component. For each object, fill in the duplicated template with its properties, then append the copy to the DOM.

Feature #2: Filter images Why are we implementing this feature? As a user, I want to be able to filter the images so that I can view only images that match a keyword. What are we going to implement? Given that a user clicks on the dropdown menu When the user selects one of the options Then only the images whose keyword matches the option should be displayed

How are we implementing it? Create a element which contains unique elements extracted dynamically from the JSON file, one for each keyword. Use an event handler to respond when the user chooses an option from the select menu. Hide all of the images, then show those whose keyword matches the option chosen. Feature #3: Style the application Why are we implementing this feature? As a user, I want a simple, clean looking UI so that my photo gallery clearly displays the images in a grid like pattern. What are we going to implement? Given that a user opens the application in the browser When the user navigates to the home page Then the images should be displayed in rows across the screen How are we implementing it? Style your application using floats. Utilize at least one Google font. Stretch Goal: Sort the images Why are we implementing this feature? As a user, I want to be able to sort the images so there is an order to how they render. What are we going to implement? Given that a user is presented with sort options When the user clicks on one option Then the images should be sorted accordingly How are we implementing it? Add the ability for the user to sort the images by either title or by number of horns. Sort the images by one of the properties on page load. This should also apply to the second page of images.

lab-02's People

Contributors

rjimmy2512 avatar

Watchers

James Cloos avatar  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.