- HTML
-
container(default)
- text: How satisfied are you with our customer support performance?
- button*3: ๐ Unhappy, ๐ Neutral, ๐ Satisfied
- button: Send Review
-
container(review sent)
- โค๏ธ
Thank you!
Feedback ${feedback}
We'll use your feedback to improve our customer support
- โค๏ธ
-
CSS
-
JavaScript
- event bubbling
- click the emoji changes class to 'active'
Challenge from Brad Traversy & Florin Pop on Udemy '50 Projects in 50 Days'
- HTML
- divs instead of buttons
- emojis from flaticon.com
-
CSS
-
JavaScript
- event bubbling is good when there are (too) many elements to add event listener.
- defaultContainer.innerHTML instead of removing the default div and create another div and add it to body