Skip to content
Advertisement

I need to create a ‘See more pictures’ button in JS

I’m creating a gif website, which uses GIPHY API. In this website, I added a “Search bar”, where you can type what kind of GIF you are looking for, and the websites returns 12 gifs from GIPHY.

This is my search function:

JavaScript

What I was trying to do, is to create a ‘see more’ function: When you click the ‘See more’ button, the limit is modified, and the web shows you 12 more gifs (plus the first 12 gifs from the initial search).

This is how I call the ‘buscarGifs’ (gif search) function:

JavaScript

});

How would you do this?

Thx!

Advertisement

Answer

save current search query, offset and total results

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement