-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (39 loc) · 1.68 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Conversor Decimal - Binario</title>
<link rel="stylesheet" href="style.css">
<script src="https://kit.fontawesome.com/21bc9e53b5.js" crossorigin="anonymous"></script>
</head>
<body>
<div class="conversion-type-container">
<label for="conversionType">Tipo de conversão:</label>
<select id="conversionType" onchange="updateUnitOptions()">
<option value="numbers">Números</option>
<!-- Adicione outros tipos de conversão aqui -->
</select>
</div>
<div class="container">
<div class="top-container">
<input type="text" placeholder="Decimal" oninput="converter('decimalInput', 'binaryInput')" id="decimalInput">
<select class="top-select" id="inputUnit">
<option value="decimal">Decimal</option>
<option value="binary">Binário</option>
<!-- Adicione outras unidades aqui -->
</select>
</div>
<button onclick="swapInputs()"><i class="fa-solid fa-arrow-right-arrow-left fa-rotate-90 fa-xl"></i></button>
<div class="bottom-container">
<input type="text" placeholder="Binário" oninput="converter('binaryInput', 'decimalInput')" id="binaryInput">
<select class="bottom-select" id="outputUnit">
<option value="binary">Binário</option>
<option value="decimal">Decimal</option>
<!-- Adicione outras unidades aqui -->
</select>
</div>
</div>
<script src="index.js"></script>
</body>
</html>