-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
91 lines (87 loc) · 4.11 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="./src/style.css" />
<!-- Page Title -->
<title>Round-Off Rules</title>
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<div class="container">
<br>
<div class="card">
<div class="card-header">
<strong>
<h1>Round Off Decimal Number</h1>
<a href="https://github.com/artbindu">
<img width="15px" padding="1px" src="https://cdn.simpleicons.org/github"/>
Biswasindhu Mandal
<img width="18px" padding="1px" src="./favicon.ico"/>
</a>
</strong>
</div>
<div class="card-body">
<div>
<form class="row g-3" id="form">
<div class="col-12">
<label for="dcnumber" class="form-label">
<strong>Enter Round Off Place (1-10)</strong>
</label>
<input type="number" class="form-control" id="dcPlace" value="2" min="0" max="9"
onkeyup="onDPSubmit()" placeholder="Enter Round-Off Place (1-10)">
<label for="dcnumber" class="form-label">
<strong>Enter Decimal Number</strong>
</label>
<input type="text" class="form-control" id="dcnumber" value="0" onkeyup="onSubmit()"
placeholder="Enter Decimal Number">
<output type="text" class="form-control" id="rfnumber" value=""></output>
</div>
<!-- <div class="col-12">
<div class="btn-group float-end" role="group" style="display: flow-root !important;">
<button type="button" value="submit" id="submit" class="btn btn-success">
<strong>Round Off</strong>
</button>
</div>
</div> -->
</form>
</div>
<div>
<hr />
<h3>
<a href="https://medium.com/@artbindu">
<img align="left" width="40px" src="https://cdn.jsdelivr.net/npm/[email protected]/icons/medium.svg" />
</a>
<a href="https://medium.com/@artbindu/round-off-decimal-number-properly-using-regular-expression-1225d42239fb">
Round-Off Decimal Number
</a>
</h3>
<div>
<hr />
<h3>Rules in short</h3>
<iframe src="https://miro.medium.com/max/720/1*hEB1i4fDOk35lJS0KJguwA.webp"
title="Round Off Decimal Number" height="480px" width="100%">
</iframe>
<hr />
</div>
<div>
<!-- <h3>Example (2 Decimal Places)</h3> -->
<output id="sample_data"></output>
</div>
</div>
</div>
</div>
</div>
<!-- Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"></script>
<!-- JS Scripts -->
<script src="./src/script.js"></script>
</body>
</html>