-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (59 loc) · 2.59 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
59
60
61
62
63
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Number Conversion</title>
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<!-- Style.css -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<br>
<div class="other">
<h1 class="text-center mb-1">Number Conversion</h1>
<hr>
<div class="d-flex justify-content-center input-group-lg">
<input type="text" name="number" id="user-input" class="input-group-text" placeholder="Input">
</div>
<div class="container text-center pt-4">
<h4 style="color: white;">Select the conversion:</h4><br>
<div class="text-center">
<select class="form-select-lg" id="from">
<option value="" selected disabled>From</option>
<option value="decimal">Decimal</option>
<option value="binary">Binary</option>
<option value="octal">Octal</option>
<option value="hexadecimal">Hexadecimal</option>
</select>
<div>
<br>
</div>
<select class="form-select-lg" id="to">
<option value="" selected disabled>To</option>
<option value="decimal">Decimal</option>
<option value="binary">Binary</option>
<option value="octal">Octal</option>
<option value="hexadecimal">Hexadecimal</option>
</select>
</div><br>
<div class="btn-group">
<button id="convert" onclick="convert()" class="btn btn-outline-light fs-5 m-2">Convert</button>
<button id="reset" onclick="reset()" class="btn btn-outline-light fs-5 m-2">Reset</button>
</div>
<br><br>
<input disabled class="fs-3 text-center" placeholder="Conversion Result" id="result"></input>
</div>
</div>
<br>
<hr>
<footer>
<p class="text-center info-foot fs-4">Made by <a target="_blank" href="https://github.com/Manraj29">Manraj Singh
Virdi</a></p>
</footer>
<script src="convert.js"></script>
</body>
</html>