Giter Site home page Giter Site logo

cookie-stand's Introduction

cookie-stand

In the Monday branch:

  1. I created an object for each location. I also made an array for each hours.
  2. I added some properties and a method in the object.
  3. I used the Math.random() to calculate how many cookies might be sold per hour and create an element plus putting the cookie number sold hourly into the element content. And then append the new element to its parent element.
  4. After doing the JavaScript I put it for the sales.html.
  5. I put basic stuff into my front page(index.html) and used some CSS to make it look better.

In the Tuesday branch:

  1. Replace all the object literals with constructior function with instances inside.
  2. call new to create each location's object.
  3. Replace the list with a table. (header row will be hrs and daily location total
    body rows will be different location's names and then hrly cookies num footer row will be the totals for each hr for each location)
  4. each location should have a separate render()metod that creates and appends its row to the table
  5. header and footer row get their own function
  6. commit oftenly for what I did for the branch.

In the Wednesday branch: Create a form that takes in the parameters/properties'name and then update the table with the new instance in it.

  1. create the form in the HTML
  2. In JS, make a variable to store the access for DOM to get the form. Also use event listener to get input data and event handler to pass the data to the constructor function to create the new instance. Then append that to the table.
  3. Validate the input data!
  4. update the total numbers in the footer.
  5. DRY the code by building functions for repeating codes.

In the Thursday branch: style the facing page

  1. use all the pictures in assets file.
  2. Include some business infor like location(address), hours open, contact infor
  3. references like About Us, Merchandiese(sales of t-shirt, mugs, stckers..), salmon event in washington
  4. also use the similar style to the sales

cookie-stand's People

Contributors

leyla-li 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.