Skip to content
This repository has been archived by the owner on May 15, 2022. It is now read-only.

Commit

Permalink
Alterando colas
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarcon83 committed Mar 17, 2021
1 parent 96a5d4a commit ff080ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/outros/
/Caverna do Dragao/
/.vscode
/Dia 20-21 - Projeto CSS/
/Dia 08 - Projeto - Site SoulCode/
/Dia 20-21 - Projeto CSS/
/Dia 35 e 36 - JS Projeto/
/ZZZ Modelo/
/FreeCode Camp/
/Idéias Paralelas/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
elemento.style.backgroundColor = "Green";
}

function inativar(elemento) {
function desativar(elemento) {
elemento.style.backgroundColor = "Red";
}
</script>
Expand All @@ -42,9 +42,9 @@
<!-- O segredo tá aqui. O "this" se refere a "esse elemento" então
quanto ativa a função ela ja passa como parâmetro o "endereço"
do próprio elemento.-->
<input onfocus="ativar(this)" onblur="inativar(this)" type="text">
<input onfocus="ativar(this)" onblur="inativar(this)" type="text">
<input onfocus="ativar(this)" onblur="inativar(this)" type="text">
<input onfocus="ativar(this)" onblur="desativar(this)" type="text">
<input onfocus="ativar(this)" onblur="desativar(this)" type="text">
<input onfocus="ativar(this)" onblur="desativar(this)" type="text">
</body>

</html>
1 change: 0 additions & 1 deletion Dia 34 - JS - Datas/D34E1 - Datas.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
document.getElementById("dia-de-hoje").innerHTML = agora
};


function atualizar() {
display.value = escreverData(input.value)
}
Expand Down

0 comments on commit ff080ed

Please sign in to comment.