In the Monday branch:
- I created an object for each location. I also made an array for each hours.
- I added some properties and a method in the object.
- 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.
- After doing the JavaScript I put it for the sales.html.
- I put basic stuff into my front page(index.html) and used some CSS to make it look better.
In the Tuesday branch:
- Replace all the object literals with constructior function with instances inside.
- call new to create each location's object.
- 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) - each location should have a separate render()metod that creates and appends its row to the table
- header and footer row get their own function
- 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.
- create the form in the HTML
- 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.
- Validate the input data!
- update the total numbers in the footer.
- DRY the code by building functions for repeating codes.
In the Thursday branch: style the facing page
- use all the pictures in assets file.
- Include some business infor like location(address), hours open, contact infor
- references like About Us, Merchandiese(sales of t-shirt, mugs, stckers..), salmon event in washington
- also use the similar style to the sales