Submitted over 2 years ago
Advice Generator Web App using HTML/CSS/Vanilla-Js
@preetamvarun
Design comparison
SolutionDesign
Community feedback
- @deepak-parmarPosted over 2 years ago
@preetamvarun, Advice is only generated when clicked on the button but not when the page loads. You should call the function once
getAdvice( )
in your main.js.It would be better to call the function once page is loaded, like this...
window.onload = getAdvice("https://api.adviceslip.com/advice")
Marked as helpful0@preetamvarunPosted over 2 years ago@deepak-parmar Thanks for your advice. I didn't think of that! I will definitely implement that functionality😀.
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord