Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

kenziebottoms/nss-front-02-sales

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Seasonal Sales

Run Locally

git clone git@github.com:kenziebottoms/nss-front-02-sales.git
cd nss-front-02-sales
npm install
grunt
hs -o

You work as a developer for a big box store.

  • Here is a JSON representation of a small sample of the products you sell.
  • Here is a JSON representation of some of the departments in your stores.

Requirements

  1. Build a web page that lists all of the products, the name of the department it's in, and the price.
  2. Put a <select> element at the top of the page that contains all possible values of the season_discount key in the categories file.
  3. As soon as you select one of the seasons, all prices on the page should immediately be discounted by the corresponding percentage.
    • Example: When "spring" is chosen, all products in the corresponding Household category should have their prices updated with a 15% discount off the base price.
  4. The two JSON representations above should be in products.json, and categories.json. Load both files via XHRs and store the contents in two different JavaScript variables in your code.

Resources

  1. Use JSON Lint to validate your JSON documents.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published