-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
112 lines (87 loc) · 5.31 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TIMER</title>
<link rel="stylesheet" href="./timer.css">
<link rel="icon" href="./img/icon.png" type="image/x-icon">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" integrity="sha384-KyZXEAg3QhqLMpG8r+vc+k2w01t9pWc7l+ks5nVdVBz5ONXCF2tvF5i5fn5jBKb0" crossorigin="anonymous">
</head>
<body data-bs-theme="dark">
<div class="container text-center mt-5">
<h1>Contador de Cubo Mágico</h1>
<div class="container timer d-flex justify-content-center align-items-center p-5 bg-body-secondary w-50 mt-3 mb-3">
<div id="cube-timer">--</div>
</div>
<button id="start-stop-button" class="btn btn-success"><i class="fas fa-play"></i></button>
<button id="reset-button" class="btn btn-danger"><i class="fas fa-redo"></i></button>
<div>
<div class="mt-3">
<p>Pressione a barra de espaço para iniciar/pausar o timer:</p>
</div>
</div>
<div class="container text-center">
<div class="nav-flutuante mt-3 d-flex align-items-center justify-content-center m-4 p-3 rounded-2 w-50 mx-auto bg-body-secondary">
<button id="save-time-button" class="btn btn-success"><i class="fas fa-save"></i></button>
<button id="clear-table-button" class="btn btn-danger m-1"> <i class="fas fa-trash-alt"></i></button>
<select id="ordenar-tabela" class="form-select primary m-2 w-50">
<option value="asc">Menor ao maior</option>
<option value="desc">Maior ao menor</option>
</select>
</div>
</div>
<div class="mx-auto d-flex align-items-center justify-content-center">
<table id="tabela-de-tempos" class="table table-bordered table-striped table-hover w-50 bg-body-secondary p-5 rounded">
<thead class="thead-light">
<tr>
<th class="bg-body-secondary">ID</th>
<th class="bg-body-secondary">Tempo Salvo</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<nav aria-label="Page navigation">
<ul class="pagination d-flex justify-content-center " id="pagination">
</ul>
</nav>
<div class="modal fade" id="confirmClearModal" tabindex="-1" aria-labelledby="confirmClearModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="confirmClearModalLabel">Limpar Tabela</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
Tem certeza de que deseja limpar a tabela? Isso apagará todos os dados.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancelar</button>
<button id="confirmClearButton" type="button" class="btn btn-danger">Limpar</button>
</div>
</div>
</div>
</div>
<div id="alerta" class="alert alert-success alert-dismissible fade position-fixed end-0 top-0 m-3" role="alert">
<span class="toast-body">Mensagem padrão</span>
</div>
<div class="position-fixed bottom-0 end-0 p-3" id="floating-buttons">
<a href="https://github.com/geovaniorsoli/Timer-cubomagico" target="_blank" class="d-block mb-2">
<button class="btn btn-outline-secondary">
<i class="fab fa-github"></i>
</button>
</a>
<button class="btn btn-outline-secondary d-block" onclick="toggleTheme()">
<i class="fas fa-adjust"></i>
</button>
</div>
</div>
<script src="./timer.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js" integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.min.js" integrity="sha384-BBtl+eGJRgqQAUMxJ7pMwbEyER4l1g+O15P+16Ep7Q9Q+zqX6gSbd85u4mG4QzX+" crossorigin="anonymous"></script>
</body>
</html>