-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (51 loc) · 1.94 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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap"
rel="stylesheet">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BinToDec Converter</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="text-wrapper">
<h2>BinToDec Converter</h2>
</div>
<form>
<label for="bin">Binary number</label>
<!-- Input that receives the binary number -->
<div class="input-wrapper">
<input type="text" id="bin" placeholder="Binary number">
<button type="reset" class="reset">
<ion-icon name="reload-outline"></ion-icon>
</button>
</div>
<label for="dec">Decimal</label>
<!-- Outputs the result -->
<div class="input-wrapper">
<input type="number" id="dec" placeholder="Decimal output" readonly>
<button type="button" id="copy-button">
<ion-icon name="clipboard-outline"></ion-icon>
</button>
</div>
</form>
</div>
<footer>
<div class="footer-wrapper">
<p>Made by <b>Imacoder</b></p>
<a href="https://github.com/ImaCod3r">
<ion-icon name="logo-github"></ion-icon>
</a>
</div>
</footer>
</body>
</html>
<!-- Local javascript -->
<script src="script.js"></script>
<!-- Ionicons import -->
<script type="module" src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.js"></script>