-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboletimDiario.html
168 lines (162 loc) · 4.87 KB
/
boletimDiario.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
156
157
158
159
160
161
162
163
164
165
166
167
168
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Dashboard - Sala de Situação</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css"
/>
<style>
body {
font-family: Arial, sans-serif;
}
.sidebar {
width: 250px;
background: #f8f9fa;
height: 100vh;
padding: 20px;
position: fixed;
left: 0;
top: 0;
transition: transform 0.3s ease-in-out;
z-index: 1050;
}
.content {
margin-left: 270px;
padding: 20px;
transition: margin-left 0.3s ease-in-out;
}
.toggle-btn {
position: fixed;
left: 10px;
top: 15px;
background: #007bff;
color: white;
border: none;
padding: 10px 15px;
cursor: pointer;
z-index: 1100;
display: none;
}
@media (max-width: 768px) {
.sidebar {
transform: translateX(-100%);
}
.sidebar.show {
transform: translateX(0);
}
.content {
margin-left: 0;
padding-top: 60px;
}
.toggle-btn {
display: block;
}
.sidebar h4 {
margin-top: 50px;
}
}
</style>
</head>
<body>
<button class="toggle-btn" onclick="toggleSidebar()">☰</button>
<div class="sidebar border" id="sidebar">
<h4>Menu</h4>
<ul class="nav flex-column">
<li class="nav-item">
<a href="/boletim.html" class="nav-link">Boletins</a>
</li>
<li class="nav-item">
<a href="/boletimDiario.html" class="nav-link">Boletins Diários</a>
</li>
<li class="nav-item">
<a href="/boletimMensal.html" class="nav-link">Boletins Mensais</a>
</li>
</ul>
</div>
<div class="content">
<p class="h3 fw-bold mb-4 text-center">Boletins Diários</p>
<div class="card mb-4">
<div class="card-body">
<div class="mb-4">
<p class="fw-bold h5">Procurar boletim:</p>
<input
type="text"
id="searchInput"
class="form-control search-bar"
placeholder="Digite aqui uma data (ex: 31/01/2025)"
/>
</div>
<div class="table-responsive">
<table class="table">
<thead>
<tr class="table-header">
<th class="h5 fw-bold">Data</th>
<th class="h5 fw-bold text-end">Documento PDF</th>
</tr>
</thead>
<tbody>
<tr>
<td>31/01/2025</td>
<td class="text-end">
<button class="btn btn-outline-primary">Baixar</button>
</td>
</tr>
<tr>
<td>30/01/2025</td>
<td class="text-end">
<button class="btn btn-outline-primary">Baixar</button>
</td>
</tr>
<tr>
<td>29/01/2025</td>
<td class="text-end">
<button class="btn btn-outline-primary">Baixar</button>
</td>
</tr>
<tr>
<td>28/01/2025</td>
<td class="text-end">
<button class="btn btn-outline-primary">Baixar</button>
</td>
</tr>
<tr>
<td>27/01/2025</td>
<td class="text-end">
<button class="btn btn-outline-primary">Baixar</button>
</td>
</tr>
</tbody>
</table>
</div>
<p class="text-muted small">
* Boletim mensal é disponibilizado a partir do segundo dia do mês
subsequente, porém as informações de índices de seca e queimadas são
disponibilizadas somente após o quinto dia do mês subsequente, devido
ao tempo de espera da disponibilização das informações pelos órgãos
competentes.
</p>
</div>
</div>
<script>
function toggleSidebar() {
document.getElementById("sidebar").classList.toggle("show");
}
</script>
<script>
document
.getElementById("searchInput")
.addEventListener("input", function () {
let filter = this.value.trim().toLowerCase();
let rows = document.querySelectorAll("tbody tr");
rows.forEach((row) => {
let dateCell = row.cells[0].textContent.toLowerCase();
row.style.display = dateCell.includes(filter) ? "" : "none";
});
});
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>