Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 4 years ago

Time Tracker: Tailwind, Async.

Zack Bauer•20
@thezrbauer
A solution to the Time tracking dashboard challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hello, this will the first project I upload. I had some trouble getting the daily/weekly/monthly JSON functions to not stack on top of each other, and to clear the previous function upon each onclick event. I eventually got it to work by creating functions that set the same json calls to null, and called those before the new JSON was called.

To me, my approach seemed kind of redundant. And I would appreciate any tips on how to streamline the JS, or if there was a more obvious way of handling it.

Thank you for your time.

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 Zack Bauer'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