From ebf5ac2dcade7c435c878a3f5ca7b14d365d2b84 Mon Sep 17 00:00:00 2001 From: GMarin89 Date: Mon, 30 Dec 2024 12:31:54 -0300 Subject: [PATCH] alt_tam_logos --- assets/{libras_logo.png => logo_libras.png} | Bin scripts.js | 41 +++++++++++--------- style.css | 4 -- 3 files changed, 22 insertions(+), 23 deletions(-) rename assets/{libras_logo.png => logo_libras.png} (100%) diff --git a/assets/libras_logo.png b/assets/logo_libras.png similarity index 100% rename from assets/libras_logo.png rename to assets/logo_libras.png diff --git a/scripts.js b/scripts.js index 7d6740f..3c4d7ac 100644 --- a/scripts.js +++ b/scripts.js @@ -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); diff --git a/style.css b/style.css index cd437db..402de62 100644 --- a/style.css +++ b/style.css @@ -134,7 +134,3 @@ color: blueviolet; } -#currency-img{ - width: 50px; - height: 50px; -} \ No newline at end of file