Design comparison
Solution retrospective
What are some of a bit more eloquent ways to counteract Js from running a function twice? Grateful for lessons
Community feedback
- @grace-snowPosted almost 4 years ago
Hi, not sure what you mean about running a function twice?
I had a quick look at your code but can't quite work out what you're trying to do with a checkbox, but the click event being on the div and something happening on the label too... I'd probably understand better looking in browser but am on my phone today
All seems to look nice and works on mobile when tapping screen 👍
1@vytkuklysPosted almost 4 years ago@grace-snow Hi, thank you for your feedback 👍. As for Js, I've noticed that onclick console.log prints out twice. Which most likely has something to do with checkbox, since console.log with other elements onclick print out, as it probably should, once.
As for checkbox, I used it with hopes to finish this interesting challenge without Js. Yet adding styles to elements or finding other ways to change font weight and rotate an arrow icon with Css only proved to be too troublesome for my current ability.
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