-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
114 lines (100 loc) · 4.2 KB
/
index.html
File metadata and controls
114 lines (100 loc) · 4.2 KB
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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>📡 Calculadora de Fibra Óptica</title>
<link rel="stylesheet" href="css/style.css" />
<style>
footer {
margin-top: 30px;
padding: 10px;
font-size: 0.9em;
color: #666;
text-align: center;
border-top: 1px solid #ddd;
}
footer a {
color: #333;
text-decoration: none;
font-weight: bold;
}
footer a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="container">
<h1>🛠️ Calculadora de Fibra Óptica</h1>
<form id="fibraForm">
<fieldset>
<legend>🧰 Dados da Fibra</legend>
<label for="fiberNumber">Digite o numero da fibra 🎯:</label>
<input type="number" id="fiberNumber" name="fiberNumber" min="1" required />
<label for="cableType">Tipo do cabo (Qtd. fibras) 📦:</label>
<select id="cableType" name="cableType" required>
<option value="12">12</option>
<option value="24">24</option>
<option value="48">48</option>
<option value="72">72</option>
<option value="144">144</option>
<option value="288">288</option>
</select>
<label for="fibersPerTube">Fibras por tubo (de 2,3,4,6,12)🧪:</label>
<select id="fibersPerTube" name="fibersPerTube" required>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="6">6</option>
<option value="12">12</option>
</select>
</fieldset>
<fieldset>
<legend>📝 Dados opcionais</legend>
<label for="projectName">Nome do projeto 🏷️:</label>
<input type="text" id="projectName" name="projectName" placeholder="Ex: Projeto Construção" />
<label for="cableNumber">Lote do cabo 🔢:</label>
<input type="text" id="cableNumber" name="cableNumber" placeholder="Ex: 01" />
<label for="boxName">Nome da caixa 📦:</label>
<input type="text" id="boxName" name="boxName" placeholder="Ex: Caixa A" />
</fieldset>
<button type="submit">🔍 Consultar Fibra</button>
</form>
<section id="result" class="hidden">
<h2>🎯 Resultado</h2>
<p><strong>Cor da fibra:</strong> <span id="fiberColor"></span></p>
<p><strong>Cor no grupo:</strong> <span id="groupColor"></span></p>
<p><strong>Número da fibra:</strong> <span id="fiberNum"></span></p>
<p><strong>Número do grupo:</strong> <span id="groupNumber"></span></p>
<p><strong>Posição da fibra no tubo:</strong> <span id="fiberPosition"></span></p>
</section>
<section id="historySection">
<h2>📜 Histórico de Fibras</h2>
<table id="historyTable">
<thead>
<tr>
<th>Projeto</th>
<th>Cabo</th>
<th>Caixa</th>
<th>Fibra</th>
<th>Posição</th>
<th>Cor Fibra</th>
<th>Grupo</th>
<th>Cor Grupo</th>
</tr>
</thead>
<tbody></tbody>
</table>
<div class="buttons">
<button id="exportCSV">📥 Exportar para CSV</button>
<button id="exportPDF">📥 Exportar para PDF</button>
</div>
</section>
<footer>
<p>Pix chave aleatória: <strong>1de17b05-ff7e-4fc1-a003-022151caa5fe</strong> | Feito por Bruno Araujo | Ajude quem te ajudou 👍🏼.</p>
</footer>
</div>
<script src="js/script.js"></script>
</body>
</html>