Repository navigation
Conversation
LonMcGregor
left a comment
There was a problem hiding this comment.
- Functionality is mostly present
- Appropriate caching is used
I've left a few comments if you want to work on improvements.
| episodesView.hidden = true; | ||
| rootElem.appendChild(episodesView); | ||
|
|
||
| const footer = document.createElement("footer"); |
There was a problem hiding this comment.
Given this code never changes, does it need to be done in js, or could it have been done in the HTML?
| </head> | ||
|
|
||
| <body> | ||
| <div id="root"> |
There was a problem hiding this comment.
Did you try running the lighthouse tool to see if it offers any suggestions for improving the semantics and accessibility of the HTML?
| if (episode.image && episode.image.medium) { | ||
| const image = document.createElement("img"); | ||
| image.src = episode.image.medium; | ||
| image.alt = episode.name; |
There was a problem hiding this comment.
Is this an appropriate use of an alt tag? See if https://axesslab.com/alt-texts/ has any suggestions
| renderEpisodes(term === "" ? allEpisodes : filtered); | ||
| } | ||
|
|
||
| function handleSelect(event) { |
There was a problem hiding this comment.
Did you implement a show selector menu as well?
| white-space: nowrap; | ||
| } | ||
|
|
||
| #episodes-container { |
There was a problem hiding this comment.
Some of the grids in certain episode views don't fully line up if the descriptions are different lengths, can this be fixed or is it intentional?
Learners, PR Template
Self checklist
Task code
CYF-1115
Changelist
All tasks done until level 500.
https://mrafeie.github.io/Project-TV-Show/
Questions