Skip to content

Commit

Permalink
Feat(JS) Added flag api
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorSvertoka committed Nov 7, 2023
1 parent e3927d9 commit bf6e6ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ function displayCatInfo(catData) {
const cat = catData[0].breeds[0];
catInfo.innerHTML = `
<div class="wrapper">
<img class="cat-img" src="${catData[0].url}" alt="Cat Image"/>
<img class="cat-img" src="${catData[0].url}" alt="Cat image"/>
<div class="wrap">
<h2 class="text">${cat.name}</h2>
<p><b class="primary">Description:</b> ${cat.description}</p>
<p><b class="primary">Temperament:</b> ${cat.temperament}</p>
<p><b class="primary">Country:</b> ${cat.origin}</p>
<img src="https://flagsapi.com/${cat.country_code}/shiny/64.png" alt="Country code">
</div>
</div>
`;
Expand Down

0 comments on commit bf6e6ce

Please sign in to comment.