-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.js
48 lines (37 loc) · 1.63 KB
/
login.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
48
class Login extends HTMLElement {
constructor() {
super();
}
connectedCallback() {
this.innerHTML = `
<header class="header">
<div class="container">
<a href="#" class="grid-4">
<img src="./img/naxos_telecom_logo.png" alt="Naxos Telecom" />
</a>
</div>
</header> <!-- header -->
<section class="container">
<div class="grid-6 formLogin box">
<form id="formFormulario" method="POST" class="formFormulario">
<label for="email"></label>
<input type="email" id="email" name="email" placeholder="Email" class="inputLogin" data-rules="required|min=3">
<!-- <label for="password"></label>
<input type="password" name="password" id="password" placeholder="Senha" class="inputLogin" data-rules="required"> -->
<button type="submit" id="btnLogin" name="btnLogin" class="btn btnLogin">Login</button>
<button type="submit" id="btnLimpaLogin" name="btnLimpaLogin" class="btn BtnCopiar btnAcoes" onclick="apagaLogin(event)">Limpar</button>
<br />
</form>
</div>
</section>
`
// <script type="module" src="./js/auth.js"></script>
// browser calls this method when the element is added to the document
// (can be called many times if an element is repeatedly added/removed)
}
disconnectedCallback() {
// browser calls this method when the element is removed from the document
// (can be called many times if an element is repeatedly added/removed)
}
}
customElements.define('login-auth', Login);