diff --git a/css/styles.css b/css/styles.css index 3d5790c..161feb1 100644 --- a/css/styles.css +++ b/css/styles.css @@ -288,7 +288,7 @@ h3 { overflow: hidden; height: fit-content; position: relative; - overflow-y: scroll; + overflow-y: auto; } #description-carousel .description-carousel-item { diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..bc6fe6d Binary files /dev/null and b/favicon.ico differ diff --git a/js/scripts.js b/js/scripts.js index 40c4e36..4d58b78 100644 --- a/js/scripts.js +++ b/js/scripts.js @@ -740,7 +740,12 @@ function pokemonCarousel(direction) { rightButton.style.display = "block"; } - transitionPokemonCarousel(activePokemonCarousel); + try { + transitionPokemonCarousel(activePokemonCarousel); + } catch { + //carousel not built yet + } + } function transitionPokemonCarousel(i) { diff --git a/readme.md b/readme.md index 68d09b0..cb1ed00 100644 --- a/readme.md +++ b/readme.md @@ -21,4 +21,6 @@ The `js/scripts.js` file contains a simple console.log statement to confirm that All images inside `assets/photos` folder are from https://pixabay.com and used under the licence outlined here https://pixabay.com/service/terms/ -All SVG Vectors are from https://www.svgrepo.com \ No newline at end of file +All SVG Vectors are from https://www.svgrepo.com + +This application makes use of the PokeAPI, which can be found at https://pokeapi.co/ \ No newline at end of file