Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solved lab #1201

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ Each individual topping has its own HTML element.

In this iteration, your goal is to:

- Add click event listener on `<button class="btn btn-sauce">` and change `state.whiteSauce`
- Add click event listener on `<button class="btn btn-white-sauce">` and change `state.whiteSauce`
- Write the function `renderWhiteSauce()`
- Add click event listener on `<button class="btn btn-crust">` and change `state.glutenFreeCrust`
- Add click event listener on `<button class="btn btn-gluten-free-crust">` and change `state.glutenFreeCrust`
- Write the function `renderGlutenFreeCrust()`

As you can see, the initial value for `state.whiteSauce` and `state.glutenFreeCrust` is false. The reason is that, by default, we want a pizza with pepperoni, mushrooms, green peppers but no white sauce nor gluten-free crust.
Expand All @@ -139,7 +139,6 @@ For now, **don't worry about updating the price**.

<br>


### Iteration 3: Make the buttons active or not

Currently, all buttons look the same, no matter if the option is activated or not. If you notice, all the buttons have an `active` class.
Expand All @@ -161,7 +160,6 @@ Write the function `renderPrice()` that:
- Displays the list of all items selected
- Displays the total price.


<br>

**Happy coding!** 💙
Loading