Skip to content

Commit

Permalink
adjust script
Browse files Browse the repository at this point in the history
  • Loading branch information
Celo-Gomes committed Nov 4, 2024
1 parent 88f0511 commit 8209fa3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scriptLoad.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ document.addEventListener("DOMContentLoaded", function(){
const ipZap = document.querySelector('#zap')
send.onclick = () =>{
if(ipName.value && ipZap.value && mail.checkValidity()){
loader.style.opacity = '1'
let elements = document.querySelectorAll(".element")
elements.forEach((element)=>{
element.classList.add('animate')
})
}
loader.style.opacity = '1'
let elements = document.querySelectorAll(".element")
elements.forEach((element)=>{
element.classList.add('animate')
})
}
}
})

0 comments on commit 8209fa3

Please sign in to comment.