Responsive Time tracking Dashboard with JavaScript and CSS

Solution retrospective
- working performant with little javascript code
- using data attributes to be more efficient
- no challenge but redundant code, because I did not use a framework to implement components
Is it a good solution or is there an easier way to solve this challenge (without frameworks)?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @MoisesAlfar0o
Hey, your solution looks good, but it doesn't work when I click on any of the timeframes. I checked the HTML and everything seems in place, but it looks like the issue might be with this line: fetch("/data.json").
This tries to load the file from the root of the domain, which won’t work if your data.json is in the same folder as your index.html. Try changing it to: fetch("./data.json").
Marked as helpful
Join 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