Skip to content

Commit

Permalink
agregando boton limpiar
Browse files Browse the repository at this point in the history
  • Loading branch information
alecapra96 committed Jan 19, 2021
1 parent 5c6f078 commit 9c23d63
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
22 changes: 20 additions & 2 deletions EDADES/grupoFamiliar.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,11 @@ footer {


}
#five-part{

#six-part{
display: flex;
flex-direction: column;
align-items: center;

}
#click-button-next{
display: none;
Expand Down Expand Up @@ -164,3 +167,18 @@ footer {
#labelResults{
font-size: 20px;
}
#limpiar{
display: none;
justify-content: center;
border-radius: 4px;
background: rgb(73, 6, 136);
border: none;
color: #FFFFFF;
text-align: center;
font-size: 16px;
padding: 6px;
width: 104px;
transition: all 0.5s;
cursor: pointer;
margin: 8px;
}
2 changes: 2 additions & 0 deletions EDADES/grupoFamiliar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
let $buttonNext = document.getElementById("buttonNext");
let $placeImputs=document.getElementById("second-part");
let $buttonClean=document.getElementById("limpiar");
let $buttonMore;
let arrayGenerado = [] ;
let num=0;
Expand Down Expand Up @@ -109,6 +110,7 @@ function ocultarInicio() { // Funcion para ocultar el imput y el button del prin
document.getElementById("buttonNext").style.display = "none";
document.getElementById("click-button-more").style.display = "flex";
document.getElementById("click-button-next").style.display = "flex";
document.getElementById("limpiar").style.display="flex";
}

function createInput(){
Expand Down
5 changes: 5 additions & 0 deletions EDADES/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,14 @@ <h1 id="titulo">Ingrese la cantidad de integrantes de su familia</h1>
</div>
<div id="four-part"></div>
<div id="five-part"></div>
<div id="six-part"><input type="reset" value="LIMPIAR" id="limpiar"/></div>

</main>

</div>

<footer>Proyecto para /r argentina</footer>

</div>
<script type="text/javascript" src="grupoFamiliar.js"></script>
</body>
Expand Down

0 comments on commit 9c23d63

Please sign in to comment.