Design comparison
Solution retrospective
How I managed my first webpage using JS. I am also proud how I managed to insert the json data dynamically into the code. Next time, I might change how I populate the html string. I've look it up that modifying the innerHTML
property is security-breach prone, so it might be not safe to use it the same I did this time.
I am also proud that through the process of designing the app, I found out about ARIA standards. I would recommend everybody who learns about web accessibility to look it up.
It was pretty hard for me to understand the interaction between the CSS and HTML, how to add events to the tabs, so that both their state and the panels' states change, and how to do that while fetching the data from json. I overcame this challenge by separate the event handlers to the fetching process. Then, I manipulated the json data and split it into the 3 different timeframes, so that accessing the value would be made more easier in the HTML file. In the end, instead of thinking how to update the HTML string, I generated the 3 different panels in the javascript file.
What specific areas of your project would you like help with?I would love if I would be pointed better solutions for the json data manipulation, so that, if there would be added another timeframe as a tab, the whole process of adding is done easier.
Community feedback
- @flavin-jrPosted 2 months ago
great job, a little different form the main design, but great work!!!!
1
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