Design comparison
SolutionDesign
Solution retrospective
1)Not sure how to change discount block text on mobile 2)Can Javascript code be more optimal
Community feedback
- @janegcaPosted almost 4 years ago
Hi, I used the suggestion in this Stackoverflow thread to show/hide the word ‘discount’, it worked well.
In your JS, both the slider event listeners are doing essentially the same thing so you could extract the code and create an ‘update(value)’ function that both could call, would make the code a little more compact.
Hope that’s of some help. Nice job overall. Happy coding.
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