This webpage will take order from user and calculate the price based on toppings and size. Options consist of crust type, toppings, size. It will return the results after submitting the form through order button, which will be displayed in the bottom of the page. Working webpage posted on https://goenchan.github.io/pizza-order/
Spec | Input | Output |
---|---|---|
The program can accept the user input and process it to linked value. | Brooklyn crust with Pepperoni and Philly Stake topping, small size. | pizzaInstance = { crust:0 , topping:[0,2], size: 0} |
The program can compute the price based on user's choice. | Choices | Special crusts: + $1~$2, More than one topping: + $2/ea, Size up: +$4. |
The program prints out results price and inputted value in texts in confirmation section. | Choose Thin crust/ Ham/ Large | price: $18 |
- Clone the repository.
- Open html file in a web browser.
None.
chanethanleegmail.com
HTML
CSS
JavaScript
This is licensed under MIT.
Copyright (c) 2018 Chan Lee