This app allows the user to create their own customized pizza and have the order tied to their address. The user first selects the size of pizza they want, along with crust type and toppings. This information is placed in a JavaScript object and used to calculate the price of the pizza. The user also must enter their name and address for delivery. This information, along with the calculated price, is displayed on the final page of the website.
- Clone this repository at:
- Move into the project folder
- Open index.html in the browser of your choice (we suggest Chrome)
- To view on web browser, open GitHub pages webpage of this application: https://kjohnston1149.github.io/pizzaOrder/
-
Create an initial object from form inputs.
- Example Input: [Large, medium (selected), small], [Thin-crust(selected), Regular-Crust Deep-Dish],[Cheese (selected), Pepperoni (selected), Anchovies]
- Example Output: newPizza{"Large", Thin-crust, ["Cheese", "Pepperoni"], 0}
-
Calculate the cost based on size property in object.
- Example Input: Large, medium (selected), small], [Cheese (selected), Pepperoni (selected), Anchovies]
- Example Output: newPizza{"Large", Thin-crust, ["Cheese", "Pepperoni"], 12}
-
Calculate the cost using size, crust, and toppings properties in object.
- Example Input: Large, medium (selected), small], [Cheese (selected), Pepperoni (selected), Anchovies]
- Example Output: newPizza{"Large", Thin-crust, ["Cheese", "Pepperoni"], 11}
-
Create an Address object that includes name and specific address.
- Example Input: Name: Kevin, Street: 123 Fake St, City: Portland, State: OR
- Example Output: newAddress {"Kevin", "123 Fake St", "Portland", "OR"}
-
Create a prototype to display the address in common format
- Example Input: newAddress.fullAddress();
- Example Output: 123 Fake St, Portland, OR
There are no known bugs at this time.
For help, contact:
This application uses HTML, CSS, JavaScript & jQuery, Bootstrap
This website is licensed under the MIT license
Copyright (c) 2016 Kevin Johnston