-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
155 lines (139 loc) · 4.75 KB
/
index.html
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8" />
<title>TodoList</title>
<link
rel="shortcut icon"
href="img/todoListFavicon.png"
type="image/x-icon"
/>
<link rel="stylesheet" href="css/styles.css" />
</head>
<body>
<div id="app">
<!--Logotipo do TodoList-->
<div class="center">
<img src="img/todoList.png" />
</div>
<div id="loading">
<img src="./img/loading.gif" alt="Animação de carregamento" />
</div>
<!--Conteúdo destinado para usuários não autenticados-->
<div class="auth center">
<!--Formulário de autenticação-->
<form id="authForm">
<h3 id="authFormTitle">Acesse a sua conta para continuar</h3>
<label for="email">E-mail: </label>
<input type="email" placeholder="E-mail" id="email" />
<div style="position: relative">
<label for="password">Senha: </label>
<input type="password" placeholder="Senha" id="password" />
<img
class="img-showPassword"
src="./img/eye.png"
alt="imagem de um olho para mostrar ou ocultar senha"
onclick="togglePasswordVisibility()"
/>
</div>
<button type="submit" id="submitAuthForm">Acessar</button>
</form>
<!--Possibilita a redefinição de senha-->
<p id="passwordReset">
Esqueceu a senha?
<button onclick="sendPasswordResetEmail()" class="alternative">
Redefini minha senha
</button>
</p>
<!--Alternar o formulário de autenticação para o cadastro de novas contas-->
<p id="register">
Não possui uma conta?
<button onclick="toggleToRegister()" class="alternative">
Cadastrar uma nova conta
</button>
</p>
<!--Alternar o formulário de autenticação para o acesso de contas já existentes-->
<p id="access" class="startHidden">
Já possui uma conta?
<button onclick="toggleToAccess()" class="alternative">
Acesse a sua conta
</button>
</p>
<!-- Outros provedores de autenticação -->
<p>
Ou acesse usando:<br />
<img
src="./img/google.png"
alt="Autenticação pelo Google"
onclick="signInWithGoogle()"
/>
<img
src="./img/github.png"
alt="Autenticação pelo GitHUb"
onclick="signInWithGitHub()"
/>
</p>
</div>
<!--Conteúdo destinado para usuários autenticados-->
<div id="userContent" class="startHidden">
<hr />
<div id="userInfo" class="center">
<img id="userImg" />
<p id="userName"></p>
<p id="userEmail"></p>
<p id="pEmailVerified"></p>
<div id="sendEmailVerificationDiv">
<button class="alternative" onclick="sendEmailVerification()">
Verificar e-mail
</button>
</div>
<button class="alternative" onclick="updateUserName()">
Atualizar meu nome
</button>
<button class="alternative" onclick="signOut()">Sair</button>
<button class="danger" onclick="deleteCount()">Excluir conta</button>
</div>
<hr>
<!-- Lista de tarefas do usuário -->
<div class="todoList">
<h3 class="todoCount">Carregando tarefas</h3>
<div class="center">
<label for="search">Buscar</label>
<input type="text " placeholder="Buscar" id="search">
</div>
<ul class="ulTodoList"></ul>
</div>
<hr>
<div class="center">
<!-- Formulário de tarefas -->
<form class="todoForm">
<h3 id="todoFormTitle">Adicionar tarefa:</h3>
<label for="name">Tarefa:</label>
<input type="text" class="name" placeholder="Tarefa">
<label for="file"></label>
<input type="file" id="file" accept="image/">
<button type="submit" class="submitTodoForm">Adicionar tarefa</button>
</form>
<div id="divUpdateTodo" class="startHidden">
<button onclick="confirmTodoUpdate()">Confirmar Atualização</button>
<button onclick="resetTodoForm()" class="alternative">Cancelar Atualização</button>
</div>
<div id="progressFeedback" class="startHidden">
<progress max="100" id="progress"></progress>
<button id="playPauseBtn" class="alternative">Pausar</button>
<button id="cancelBtn" class="danger">Cancelar</button>
</div>
</div>
</div>
</div>
<script src="https://www.gstatic.com/firebasejs/7.8.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.8.1/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.8.1/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.8.1/firebase-storage.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.8.1/firebase-firestore.js"></script>
<script src="./js/firebase.js"></script>
<script src="./js/utils.js"></script>
<script src="./js/auth.js"></script>
<script src="./js/todo.js"></script>
</body>
</html>