Coder Social home page Coder Social logo

hs-gif-generator's Introduction

GIF Generator

Build out a GIF generator using jQuery Giphy API.

Introduction

Build out a Gif Generator for the search query of your choice. The site should start with a static placeholder image. Clicking the "Get a New Gif!" button will replace the image with a GIF from Giphy. Clicking "Reset" will go back to the static image.

Live Example

Instructions

  • Look in the index.html file. Add a "src" for the image - it can either be a local picture that you include in the "public/images" folder or to another location on the web.
  • open up the app.js file. Save your original image location as a variable called "originalImage"
  • The Giphy API url has been defined for you. Declare a function, changeImage, that makes an API call to the Giphy API. Add a search query to limit your results by appending &q=whateter+you+want to the URL.
  • In the callback, change the src of the image on the page to the URL from the Giphy API. Feel free to play around in the browser to figure out how to access the correct URL.
  • Make another function, resetImage, that changes the picture back when you click the reset button.

Hints

View GIF Generator on Learn.co and start learning to code for free.

hs-gif-generator's People

Contributors

ipc103 avatar juliataitz avatar victhevenot avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hs-gif-generator's Issues

From FE2 Class

  • link to API needs to be https
  • need to consider syntax for declaration of function, use of anonymous functions, .on(click) vs .click
  • need to connect to learn.co for FE2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.