Created a favorites tab and now wanting to be able to favorite a GIF which then goes to that favorites tab/page

Created a favorites tab and now wanting to be able to favorite a GIF which then goes to that favorites tab/page
0.0 0

#1

First of all, I’d like to thank everyone who has helped me this far. Means the world too me and I’ve learned a lot!
Here is the codepen i am working on.

I have made a giphy web page with the giphy API. I want to be able to search or pull a giphy from trending and save that gif as a favorite.
I have created the tab and made it operational through js, but I am not sure what I need to do next.
Help, please!


#2

Hi again!
I would have a click event on each image and when the user clicks it saves this image detail (many ways to do this) as an array of objects which you can then recall after clicking “favorites”.
This could work in a similar fashion to the “trending” button.


#3

Hi again! Thanks for the info! How does my js look? How similar should it be? Check out my js and see how it is.


#4

If any one is able to assist that would be greatly appreciated! Thanks!