-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
47 lines (32 loc) · 1.19 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
const $entrar = document.getElementById("entrar")
const $modalLogin = document.getElementById('login')
const $closeButton = document.getElementById('close-button')
const $usuario = document.getElementById('usuario')
const $senha = document.getElementById('senha')
const $btnEntrar = document.getElementById('btn-entrar')
const $conatainerSenha = document.getElementById('containerSenha')
const $senhaInvalida = document.getElementById('msg-erroSenha')
const $btnCadastrar = document.getElementById("btn-cadastrarLogin")
const openModal = ()=>{
$modalLogin.style.display ="block"
}
const closeModal = ()=>{
$modalLogin.style.display ="none"
}
$closeButton.addEventListener('click',()=> closeModal())
$entrar.addEventListener('click', ()=> openModal())
//verificar se o usuario é cadastrado e então verificar a senha
var a = []
$btnEntrar.addEventListener('click',()=>{
const $usuario = document.getElementById('usuario')
const $senha = document.getElementById('senha')
const body = {
$usuario,
$senha
}
a.push(body)
})
// //Cadastrar
// $btnCadastrar.addEventListener('click',()=>{
// window.location.assign("../Externoo/Cadastros/cliente.html")
// })