Develop #3

Merged
WilliamSimao merged 26 commits from Develop into main 2022-11-29 01:13:27 +00:00
2 changed files with 8 additions and 4 deletions
Showing only changes of commit be5e962c53 - Show all commits

9
js.js
View File

@ -3,9 +3,9 @@ document.addEventListener('DOMContentLoaded', function () {
const inputFile = document.querySelector('#input__img'); const inputFile = document.querySelector('#input__img');
const labelInput = document.querySelector('.label-input'); const labelInput = document.querySelector('.label-input');
const textSpanInput = "Imagem"; const textLabelInput = "Imagem";
labelInput.innerHTML = textSpanInput; labelInput.innerHTML = textLabelInput;
inputFile.addEventListener('change', (e) => { inputFile.addEventListener('change', (e) => {
const inputTarget = e.target; const inputTarget = e.target;
@ -25,11 +25,14 @@ document.addEventListener('DOMContentLoaded', function () {
labelInput.appendChild(img); labelInput.appendChild(img);
}); });
reader.readAsDataURL(file); reader.readAsDataURL(file);
labelInput.innerHTML = ""; labelInput.innerHTML = "";
labelInput.style.border = "none";
}else { }else {
labelInput.innerHTML = textSpanInput; labelInput.innerHTML = textLabelInput;
} }
}); });

View File

@ -54,7 +54,8 @@
} }
.img-result { .img-result {
max-width: 100%; width: 100%;
border-radius: 8px;
} }
.wrapper-input__text { .wrapper-input__text {