Gold Challenge: Adding Achievements
When users submit an order for the largest, strongest coffee with a
flavor shot, unlock an achievement: Bring up a
Bootstrap modal to inform them of their amazing intensity and
commitment to flavor.
Ask them if they would like to use their achievement, and, if so, add
an additional form field that is only visible when their email
address is entered in the email
field.
It should let them choose one or more power-up
options for their coffee, like time travel,
mind reading, or bug-free code.
Refer to the documentation at getbootstrap.com/javascript for information
on how to include and trigger Bootstrap’s modal behaviors. (You will need to add a
<script>
tag from cdnjs.com for Bootstrap’s JavaScript ...
Get Front-End Web Development: The Big Nerd Ranch Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.