-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (43 loc) · 1.48 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bin2Dec</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.14.0/css/all.css" integrity="sha384-HzLeBuhoNPvSl5KYnjx0BT+WB0QEEqLprO+NBkkk5gbc67FTaL7XIGa2w1L0Xbgc" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Binary and Decimal Converter</h1>
<section>
<div id="form">
<select name="conv" id="first" >
<option value="">...</option>
<option value="bin">Binary</option>
<option value="dec">Decimal</option>
</select>
<p>to</p>
<select name="conv" id="second" >
<option value="">...</option>
<option value="bin">Binary</option>
<option value="dec">Decimal</option>
</select>
<div>
<input type="number" name="num" id="num" placeholder="Enter a number.">
</div>
</div>
<div class="button">
<input type="button" id="button" value="Convert" onclick="convert()">
</div>
<div>
<div>
<input type="text" name="ans" id="ans">
</div>
</div>
</section>
<footer>
<p>© <i class="fas fa-heart"> </i> Lai ! </p>
</footer>
<script src="script.js"></script>
</body>
</html>