-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnumber-system.html
More file actions
51 lines (51 loc) · 2.22 KB
/
number-system.html
File metadata and controls
51 lines (51 loc) · 2.22 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
47
48
49
50
51
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Number System Converter</title>
<link rel="stylesheet" href="number-system.css">
</head>
<body>
<a href="index.html" class="back-button" style="position: absolute; top: 10px; left: 10px; padding: 10px; background-color: #007BFF; color: white; text-align: center; text-decoration: none; border-radius: 5px;">Back</a>
<div class="card">
<div class="card-header">
<h1 class="card-title">Number System Converter</h1>
<p class="card-description">Convert between decimal, binary, octal, and hexadecimal</p>
</div>
<div class="card-content">
<div class="input-group">
<label for="input">Input</label>
<input type="text" id="input" placeholder="Enter a number">
</div>
<div class="select-group">
<div class="select-wrapper">
<label for="from-system">From</label>
<select id="from-system">
<option value="decimal">Decimal</option>
<option value="binary">Binary</option>
<option value="octal">Octal</option>
<option value="hexadecimal">Hexadecimal</option>
</select>
</div>
<div class="select-wrapper">
<label for="to-system">To</label>
<select id="to-system">
<option value="decimal">Decimal</option>
<option value="binary">Binary</option>
<option value="octal">Octal</option>
<option value="hexadecimal">Hexadecimal</option>
</select>
</div>
</div>
<button id="convert-btn">Convert</button>
<div class="input-group">
<label for="result">Result</label>
<input type="text" id="result" readonly>
</div>
<p id="error" class="error" role="alert"></p>
</div>
</div>
<script src="number-system.js"></script>
</body>
</html>