Skip to content

vrwatson/Pursuit-Core-Web-Promises-Fetch-Lab-v2

 
 

Repository files navigation

Pursuit Logo

Pursuit-Core-Web-Promises-Fetch-Lab

Getting Started

  • Fork this repo
  • Clone the forked repository
  • cd to the directory where you cloned it
  • npm install to install dependencies
  • npm test to open the cypress testing window

Note: Remember to git add, git commit and git push regularly

1. MVP

Use the Official Joke API and fetch to build the site described below:

  • A list of ten jokes that are randomly loaded when the page is refreshed, each with the "card" class
  • Clicking on a joke card should expand it and reveal the punchline
  • Clicking on it again should contract it and hide the punchline
  • A button with id "reload" that clears all the jokes on the screen and loads new random ones

Recording of refreshing and then clicking some jokes tiles

2. Bonus

  • Have a select at the top for either general, random, or programming and only load jokes of that type
  • Keep track of all of the jokes the user has seen so far, and don't show them the same joke twice when they click a button for new jokes

Submission Guidelines

  • When finished, commit and push your work.
  • Make a pull request on github.
  • Submit the link to your pull request on Canvas.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.2%
  • HTML 4.6%
  • CSS 3.2%