-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (39 loc) · 2.38 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
<!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">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<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=Russo+One&display=swap" rel="stylesheet">
<link href="css/bin2Dec.css" rel="stylesheet">
<title>Bin2Dec</title>
</head>
<body>
<div class="col-lg-8 mx-auto p-3 py-md-5">
<header class="d-flex align-items-center pb-3 mb-5">
<span class="navbar-brand mb-0 h1">BIN2DEC</span>
</header>
<main>
<h1>Convert binary to decimal numbers</h1>
<p class="fs-5 col-md-8">Bin2Dec is an application created to solve the <a class="text-light" href="https://github.com/florinpop17/app-ideas/blob/master/Projects/1-Beginner/Bin2Dec-App.md" target="_blank" rel="noopener">Bin2Dec</a> challenge proposed by the <a class="text-light" href="https://github.com/florinpop17/app-ideas" target="_blank" rel="noopener">App Ideas Collection</a> repository. The application is a calculator that takes a binary number as input and returns the equivalent decimal (base 10) number.</p>
<div class="col-lg-6 col-sm-12">
<label for="bin" class="form-label mb-3">Enter a binary number</label>
<input type="numer" class="form-control mb-3" id="bin" name="bin">
</div>
<input id="submitButton" type="button" class="btn btn-primary mb-5" value="Submit"
onclick="validateInput();">
<div id="result">
</div>
</div>
<script src="js/bin2Dec.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
</body>
</html>