-
Notifications
You must be signed in to change notification settings - Fork 0
/
testbook-calc-type-2.html
46 lines (41 loc) · 1.79 KB
/
testbook-calc-type-2.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>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>free calculator by testbook</title>
<link rel="stylesheet" type="text/css" href="./style/tb-calc-style.css">
</head>
<body class="calc-page">
<div class="card card--center">
<div class="card__header">
<h2>Find the Value of X</h2>
</div>
<div id="errorAlert"></div>
<div class="card__body" id="cardBody">
<div class="input-group">
<span class="input-addon">Multiplicand</span>
<input onkeypress="onkeyPressFun()" type="text" name="inputValNumber" id="inputValNumber" pattern="^[.0-9]*$" required minlength="1">
</div>
<div class="btn-group">
<div class="input-group">
<span class="input-addon">* x =</span>
<input onkeypress="onkeyPressFun()" type="text" name="inputValNumber2" id="inputValNumber2" pattern="^[.0-9]*$" required minlength="1">
</div>
<button class="input-btn">Product</button>
</div>
<div class="input-action">
<button onclick="calculateFun()">Convert</button>
<div onclick="resetFun()" class="input-reset">
<img src="https://cdn.testbook.com/images/reset-icon.svg" width="24" height="24" />
</div>
</div>
<div class="input-group" id=inputResultStyle>
<span class="input-addon">Value of x =</span>
<input type="text" name="resultValNumber" disabled value="" id="resultValNumber">
</div>
</div>
</div>
<script type="text/javascript" src="./script/tb-calc-type-2.js"></script>
</body>
</html>