-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (49 loc) · 2.97 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
<html lang="en">
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calculator</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="bootstrap/bootstrap-5.0.2-dist/css/bootstrap.css">
</head>
<body>
<div class="main">
<div class="container">
<form class="calculatorform" name="calculatorform">
<div class="screen ">
<input type="text" class="scn" style="width: 150px ;" class="screen" name="screen">
</div>
<div class="clearbtn ">
<input type="button" class="button" style="width: 150px;" value="clear" onclick="Clear()">
</div>
<div class="btn d-flex">
<input type="button" class="button" style="width: 50px;" value="7" onclick="valuebutton(this)">
<input type="button" class="button" style="width: 50px;" value="8" onclick="valuebutton(this)">
<input type="button" class="button" style="width: 50px;" value="9" onclick="valuebutton(this)">
<input type="button" class="button" style="width: 50px;" value="/" onclick="valuebutton(this)">
</div>
<div class="btn d-flex">
<input type="button" class="button" style="width: 50px;" value="4" onclick="valuebutton(this)">
<input type="button" class="button" style="width: 50px;" value="5" onclick="valuebutton(this)">
<input type="button" class="button" style="width: 50px;" value="6" onclick="valuebutton(this)">
<input type="button" class="button" style="width: 50px;" value="*" onclick="valuebutton(this)">
</div>
<div class="btn d-flex">
<input type="button" class="button" style="width: 50px;" value="1" onclick="valuebutton(this)">
<input type="button" class="button" style="width: 50px;" value="2" onclick="valuebutton(this)">
<input type="button" class="button" style="width: 50px;" value="3" onclick="valuebutton(this)">
<input type="button" class="button" style="width: 50px;" value="-" onclick="valuebutton(this)">
</div>
<div class="btn d-flex">
<input type="button" class="button" style="width: 50px;" value="0" onclick="valuebutton(this)">
<input type="button" class="button" style="width: 50px;" value="." onclick="valuebutton(this)">
<input type="button" class="button" style="width: 50px;" value="=" onclick="calculate()">
<input type="button" class="button" style="width: 50px;" value="+" onclick="valuebutton(this)">
</div>
</form>
</div>
</div>
<script src="main.js"></script>
</body>
</html>