/pokeapi-ajax-nojquery

Search Pokémon by pokédex entry with ajax no JQuery needed. Just put a number between 1 and 1017 and you'll get the Pokémon.

Primary LanguageCSS

Responsive Bootstrap Ajax

Search Pokémon

Search Pokémon by Pokédex entry with ajax no JQuery needed. Just put a number between 1 and 1017 and you'll get the Pokémon.

API

For this we're using Pokéapi for fetching the Pokémons

Optional config parameters

In the if/else condition, you can customize your error alert.

else {
    alert('There was an error with the request')
}

Or using sweetalert.

else {
    Swal.fire("Your message here","","type of alert");
}

Libraries included


Bootstrap v5.2.3

Sweetalert2

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b your-branch
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin your-branch
  5. Submit a PR
  6. Support Pokéapi❤️

Get in touch with me:

adhir2099

Created with ❤️ by Adhir2099