Description
Currently, when users click the "Click here!" button, there's no visual feedback that the API call is in progress. Users might click multiple times thinking it's not working. We should add a loading state to improve the user experience.
Acceptance Criteria
Technical Details
You could:
- Change button text to "Loading..." during fetch
- Add a CSS spinner animation
- Or show loading text on the card front
Files to Modify
Resources/References
Estimated Difficulty: Beginner Friendly ⭐
Additional Notes
This teaches async JavaScript concepts and improves user experience. Start simple with text changes before adding fancy animations!
Description
Currently, when users click the "Click here!" button, there's no visual feedback that the API call is in progress. Users might click multiple times thinking it's not working. We should add a loading state to improve the user experience.
Acceptance Criteria
advice.jsandluckyNumberAdvice.jsTechnical Details
You could:
Files to Modify
scripts/advice.js- Add loading state logicscripts/luckyNumberAdvice.js- Add loading state logicstyles.css- Add loading styles (optional)Resources/References
Estimated Difficulty: Beginner Friendly ⭐
Additional Notes
This teaches async JavaScript concepts and improves user experience. Start simple with text changes before adding fancy animations!