Closed CharityBunyon closed 5 years ago
reworked the plan for this a little. Found it worked better to write one function for both expanding and hiding the track list, which toggles the classes and reuses the same arrow event listener. New function name: displayAndHideTracks
, new id for arrows: toggleTracks-${[i]}
Story
As a user, I would like to click an expand arrow to view the track list for each album.
Acceptance Criteria
WHEN The user clicks the arrow THEN The album cover image minimizes AND a track list displays to the right of the image AND the expand arrow changes to a minimize arrow
Development Notes
expandTracks[i]
displayTracks
which should:col-sm-4 offset-2
)col-sm-4
)minimizeTracks[i]
expandTracks
that runsdisplayTracks
hideTracks
which should:col-sm-8 offset-2
)expandTracks[i]
minimizeTracks
that runshideTracks