-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
46 lines (39 loc) · 1.94 KB
/
index.html
File metadata and controls
46 lines (39 loc) · 1.94 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="author" content="Bruno Gomes">
<meta name="description" content="Conversor de números Decimais para Binário">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Rubik&display=swap" rel="stylesheet">
<link rel="icon" href="vector-creator2.png">
<title>DecBin</title>
<script data-ad-client="ca-pub-1630449266026590" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
</head>
<body onload="Theme()">
<header>
<h1>Conversor Dec<span id="subtitle">Bin</span></h1>
</header>
<main>
<fieldset>
<div class="container">
<input class="switch" onclick="generate()" type="radio" id="decbin" name="switch" value="decbin" checked>
<label for="decbin" >Dec-Bin</label>
<input class="switch" onclick="generate()" type="radio" id="dechex" name="switch" value="dechex">
<label for="dechex" >Dec-Hex</label>
<input class="switch" onclick="generate()" type="radio" id="decoct" name="switch" value="decoct">
<label for="decoct" >Dec-Oct</label><br>
</div>
<!-- CONVERSÃO-->
<label for="resultado" class="sr-only">Resultado</label>
<input type="text" id="resultado" name="resultado" placeholder="Resultado" readonly >
<label for="valor" class="sr-only">Valor a converter</label>
<input type="number" id="valor" name="valor" placeholder="Insira um valor" autofocus onchange="generate()">
<button type="submit" id="copy" onclick="clipBoard()">Copiar!</button>
</fieldset>
</main>
<script src="script.js"></script>
</body>
</html>