Git Product home page Git Product logo

m2-7-js--consolidation-1's Introduction

Consolidation

Exercise 1 ๐Ÿ˜‹

Build fun web page that renders GrubHub's top ten food for 2018 and 2019!

exercise 1 complete

The lists of foods are provided in assets/topTenList.js.

const topTenList = {
  2018: [
    { id: "1", name: "bean burritos" },
    { id: "2", name: "poke bowl" },
    { id: "3", name: "chicken sliders" },
    { id: "4", name: "pork baby back ribs" },
    { id: "5", name: "chicken burritos" },
    { id: "6", name: "chicken sandwich" },
    { id: "7", name: "cauliflower rice bowl" },
    { id: "8", name: "chicken and waffle sliders" },
    { id: "9", name: "parmesan chicken" },
    { id: "10", name: "buffalo-flavored cauliflower" },
  ],
  2019: [
    { id: "1", name: "cauliflower pizza" },
    { id: "2", name: "spicy brussel sprouts" },
    { id: "3", name: "portobello empanada" },
    { id: "4", name: "black bean & sweet potato taco" },
    { id: "5", name: "miso pork ramen" },
    { id: "6", name: "chicken burger" },
    { id: "7", name: "bone broth" },
    { id: "8", name: "brown sugar (bubble) tea" },
    { id: "9", name: "vegan pad thai" },
    { id: "10", name: "impossible burger" },
  ],
};

It has already been added to the HTML file, so it will be available for use in your scripts.js file.


Requirements

  1. The year in the header changes depending on which year is selected.

exercise 1 header

  1. To view each top ten item, the user has to hover over the numbers in the white area.
  2. If the user's mouse is not over one of the numbers, the bottom section should say "hover over a #!"
  3. The end result should look exactly like the provided mockup.
  4. You are not allowed to modify any of the CSS properties. see below
  5. In light of the horrible classnames, please add ids to the HTML elements and use .getElementById() for this exercise. This is to ensure that the CSS and JS don't interfere with each other.

CSS

All of the CSS has been provided for you. Adding the right class to the right HTML element will get you the desired outcome, but it was done by particularly evil developer. The class names are non-sensical ๐Ÿคฆโ€โ™‚๏ธ and won't help you. You'll have to do some detective work.

You are not allowed to modify any of the provided CSS properties, but you are definitely encouraged to change/improve the class names to make them more understandable.


๐ŸŸก - Minimally complete workshop (75%) - ๐ŸŸก

๐ŸŸข - Complete workshop (100%) - ๐ŸŸข

Stretch goals

  • Improve/add functionality to the page!

m2-7-js--consolidation-1's People

Contributors

scottanthonymorin avatar joshwcomeau 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.