Skip to content

Commit

Permalink
alt_tam_logos
Browse files Browse the repository at this point in the history
  • Loading branch information
GMarin89 committed Dec 30, 2024
1 parent 836bff9 commit ebf5ac2
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 23 deletions.
File renamed without changes
41 changes: 22 additions & 19 deletions scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,33 +54,36 @@ function changeCurrency() {
currencyName.innerHTML = "Dólar Americano";
currencyImg.src = "./assets/logo_eua.png";
currencyImg.alt = "logo_EUA";
currencyImg.width = 50;
currencyImg.height = 50;
}

if (moedaDestino === "euro") {
currencyName.innerHTML = "Euro";
currencyImg.src = "./assets/logo_euro.png"; // Certifique-se de ter essa imagem no diretório correto
currencyImg.alt = "logo_Euro";
currencyImg.src = "./assets/logo_euro.png";
currencyImg.width = 50;
currencyImg.height = 50;
}

if (moedaDestino === "libras") {
currencyName.innerHTML = "libras";
currencyImg.src = "./assets/libras_logo.png"; // Certifique-se de ter essa imagem no diretório correto
currencyImg.alt = "logo_Libras"
currencyImg.width = 100;
currencyImg.height = 70;

}

if (moedaDestino === "ienes") {
currencyName.innerHTML = "Ienes";
currencyImg.src = "./assets/ienes_logo_.png"; // Certifique-se de ter essa imagem no diretório correto
currencyImg.alt = "logo_Ienes"
currencyImg.width = 60;
currencyName.innerHTML = "Libras";
currencyImg.src = "./assets/logo_libras.png";
currencyImg.alt = "logo_Libras";
currencyImg.width = 70;
currencyImg.height = 60;

}

convertValues()
}
if (moedaDestino === "ienes") {
currencyName.innerHTML = "ienes";
currencyImg.src = "./assets/ienes_logo_.png"; // Certifique-se de ter essa imagem no diretório correto
currencyImg.alt = "logo_Ienes";
currencyImg.width = 60;
currencyImg.height = 60;
}

convertValues()
}

currencySelect.addEventListener("change", changeCurrency);
convertButton.addEventListener("click", convertValues);
currencySelect.addEventListener("change", changeCurrency);
convertButton.addEventListener("click", convertValues);
4 changes: 0 additions & 4 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,3 @@ color: blueviolet;

}

#currency-img{
width: 50px;
height: 50px;
}

0 comments on commit ebf5ac2

Please sign in to comment.