You've already worked with the PokéApi in class. Now it's time to use it on your own! Using the API, create a Pokédex where users can not only browse a list of Pokémon characters, but also search for their favorites!
Starter code is provided for you, which includes some HTML and CSS. The styling
is provided by Bootstrap,
which is already linked in the head
of the HTML boilerplate, and your script
file is connected in the body
. When you finish the base requirements, look
into Bootstrap for the bonuses!
- DOM & Events
- APIs & AJAX
- Fork and clone this repository.
- Change into the new directory.
- Fulfill the listed requirements.
- Submit your solution with a pull request on this repository.
Please turn in your submission by the deadline on your cohort calendar.
- Create a submit button called "Catch 'Em All!" that, when clicked, makes a
request to the PokéApi and lists all Pokémon in the browser. Each character
should appear in
section#results
element include the Pokémon's name. - Add an input field/search bar with a submit button called "Search". When the
user enters the name of the Pokémon and clicks submit, a request is made to
the PokéApi and the approprate Pokémon's name should appear in the
section#results
element. The new results should clear out any existing results before displaying the new results. - Add a dropdown that includes the following options: Name, Move, Ability, and Location.
- Focus the search based on the option the user selects for the dropdown menu. When the Search button is clicked, make a request to the PokéApi to search the Pokémon property that matches the selected option for what is in the input field.
- If the input does match any data from the PokéApi, create an alert that says "No matches! Try something else!"
- Use Bootstrap to style your form input and pokemon search results
- Make your Pokédex responsive using the Bootstrap grid!
- For the "Name" and "Catch 'Em All" searches, show the image of the pokemon in the results.
Take a moment to refamiliarize yourself with the Plagiarism policy. Plagiarized work will not be accepted.
- All content is licensed under a CCBYNCSA 4.0 license.
- All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact [email protected].