Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 3 years ago

CSS grid, flex box, fetch API

General Fib•50
@Kandy-Hamisi
A solution to the Time tracking dashboard challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


I fetched the data from the data.json file provided. It turns out that the timetracking cards I have rendered via javascript from the json file are only accessible when using css but when I use javascript "querySelector" I cannot access the elements. I started debugging and realised its because I used innerHTML, hence the elements are in form of a string thus I cannot access them via javascript. I hope I dont look like a help vampire, I really need to figure this out so that a user can be able to view the daily, weekly and monthly data dynamically. Thanks in advance

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on General Fib's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License