Coder Social home page Coder Social logo

get-giphy's Introduction

Get Giphy

Objective

Use your knowledge of HTTP requests and XHR to get gifs to render onto your web page.

Prerequisites

  • Basic knowledge of HTTP requests.
  • Basic understanding of API's.
  • Basic understanding of JSON.
  • Understanding of Event Listeners
  • Understanding of Using Forms

Setup

  • Fork Repo
  • Clone repo to local machine.
  • Create and link index.html app.js style.css

Your Challenge

You will be creating your own version of GIPHY

Create a search bar using HTML Form and rendering gif from that search value.

Make a GET request using XHR to the gifphy endpoint with your API key. Grab and append the respective values requested onto the DOM.

Sign up for Giphy API KEY

HTML

  • Create div element with id container
    • Create h1 element with content "GIF Finder"
    • Create form element with id form
      • Create text input with id text
      • Create submit button
    • Create div element with id result

JS

  • Before implementing your search function, check if you can pull data from GIPHY API

    [Host][Get Path]?[q=YOUR VALUE]&[api_key=YOUR API KEY]&[limit= YOUR LIMIT AMOUNT]
    

Stretch Goals

  1. Delete previous gifs before rendering new gifs when submitting more than 1 search request.
  2. Create a lightbox.

Resources

GIPHY

Using XMLHttpRequest - Web APIs | MDN

HTML DOM createElement() Method

HTML DOM appendChild() Method

get-giphy's People

Contributors

jaygiang avatar elijahrich1113 avatar

Watchers

James Cloos avatar

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.