Giter Site home page Giter Site logo

gif-loader's Introduction

Gif Loader

This project contains starter files used to create a way to search for gifs using the Giphy Api using vanilla JavaScript.

This project is used to enforce core concepts. As such, successful completion of this project would mean that you are using the following techniques:

The Task

Given the included stylesheet and html files, write JavaScript so that when a user enters text into the search bar and submits, a request for a gif is made and the image would appear beneath the input, replacing the previous gif.

  • Proper usage of const and let. No usage of var
  • Usage of arrow functions. No usage of function declarations
  • Grabbing the document items without reaching for jQuery
  • Fetching data from the Giphy Api without using a 3rd party library
  • Attaching event listeners
  • Usage of es6 template strings
  • Handling asynchronous code via callback, promises, or async/await

Assignments

To be completed after the above requirements are met.

As our project stands currently, the paragraph tag doesn't update to reflect the newly added gif.

  • update the paragraph tag

Right now our API fetches a bunch of results when a request is made! Let's just limit that to 5.

  • Limit the amount of gifs coming back to 5.

If you attended one of my class sessions, then in your code, you have the line: searchGiphy(inputText)

After that line, we use .then() to have some code run. What is that code doing? That make that more functional by extracting it out into its own function to updateFields.

  • Remove the logic after the .then() and refactor it into its own function.

gif-loader's People

Contributors

micahbolen avatar

Watchers

 avatar

Forkers

ccalbaugh

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.