Git Product home page Git Product logo

tv-show-gif-generator's Introduction

TV Show GIF Generator

Tv Show GIF generator is an app that uses the giphy api to display gifs captured from tv dramas and animated cartoons.

Live Version

Go here to view the app.

About the Application

Getting Started

These instructions will get you a copy of the project up and running on your local machine.

Prerequisites

Install the following programs if they aren't on your local machine.

GIT - https://git-scm.com/book/en/v2/Getting-Started-Installing-Git

Installing

Open your terminal and clone this repository to your computer.

git clone https://github.com/crystalodi/tv-show-gif-generator.git

Navigate to the /tv-show-gif-generator directory with your terminal

cd tv-show-gif-generator

Open file explorer from the /tv-show-gif-generator directory

explorer .

Open the index.html file by double clicking on it. The app will open in a web browser and should look like this:

Folder Structure

After following the instructions in the installation section, the contents of the /tv-show-gif-generatorwill look like this

│   index.html
│   README.md
│
└───assets
    ├───css
    │       reset.css
    │       style.css
    │
    ├───images
    │       add_gif_search_term_1.png
    │       add_gif_search_term_2.png
    │       ezgif-4-e75bd4e6bd.gif
    │       home.png
    │       retrieve_gifs.jpg
    │
    └───javascript
            app.js
  • index.html contains the ui for the application. This includes the form used to add buttons used to search for gifs.
  • assets/css/reset.css removes any default styling applied by web browsers
  • assets/css/style.css Contains styling for add tv show form, tv show search buttons, and gif search results.
  • assets/javascript/app.js Each time a tv show search button is clicked, an ajax GET request is sent using the url https://api.giphy.com/v1/gifs/search to retrieve 10 gifs that match the tv show text on the button. The code also allows users to add more search terms and display them as buttons.

How to Use

Adding a gif search term

In the form below the page header, fill out the tv show field

Press the Add TV Show Button

The tv show you entered will appear as a button underneath the add tv show form.

Retrieving gifs

Press any button located underneath the add tv show form. If there are any gifs associated with the tv show you entered they will appear like this:

Stopping and Starting a gif

All gifs retrieved will be loaded as still images. To make the gif move, click on the gif. To make it stop moving, click on the gif again.

Built With

  • HTML
  • jQuery
  • JavaScript
  • CSS
  • Giphy Developer's API

Authors

Acknowledgments

  • jQuery Documentation
  • Mozilla Developer's Network
  • Giphy Developer's API Documentation

tv-show-gif-generator's People

Contributors

crystalodi avatar

Watchers

James Cloos avatar  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.