in the word document Midterm Assignment.docx
. This is also under Files. You will create two web pages. One is the home page for a small cafe and the other is a place where the user can enter an order for some pies. Make sure to read the document carefully. Please make sure you ask any questions you may have about the assignment. Some general points:
- You must style the logo and slogan exactly as described but you can use whatever font and color for the rest of the document. So you can use green for the font color in any place besides the logo and slogan.
- The picture should be on the right side and the paragraph text should wrap around it (remember exercise 3.4?).
- On the order form, the totals must update when the user leaves the text box.
- A hint on how to do the calculations: Since you have to update the total whenever the quantity goes up or down, my recommendation is that you create separate functions to get the cost for each pie,
getAppleCost(),getPumpkinCost(), etc. and separate functions to handle the user leaving the text box events. This allows you to call other functions, maybe even one which updates the total of all 3 pies, after calculating the individual pie total. - The submit button doesn’t have to do anything since the total is calculated whenever the quantity changes.
- The read only text box is done the same way as we talked about in class, see the nochange.html
example. - Do not use the style attribute.
- Make sure you use the HTML 5 skeleton.


0 comments