As a user when I click on a single Dino photo I see all the details about that single dino
AC
WHEN the user clicks onto a single Dino THEN I should see a "new page" for that single dino
AND all the Dino properties should be shown
AND I should see all the adventures the dino has been on
Dev Notes
Each card should have an event listener on it that when clicked would run a clickDinoEvent() function
clickDinoEvent() finds the id of the card that was clicked, finds the dino in the dinos array, and passes it to a new printDino(dino) function
printDino() does just that: prints all the info about the dino on the card, replacing the dino cards, hospital, graveyard, etc
User Story
As a user when I click on a single Dino photo I see all the details about that single dino
AC
WHEN the user clicks onto a single Dino
THEN I should see a "new page" for that single dino AND all the Dino properties should be shown AND I should see all the adventures the dino has been on
Dev Notes
clickDinoEvent()
functionclickDinoEvent()
finds the id of the card that was clicked, finds the dino in thedinos
array, and passes it to a newprintDino(dino)
functionprintDino()
does just that: prints all the info about the dino on the card, replacing the dino cards, hospital, graveyard, etc