-
Notifications
You must be signed in to change notification settings - Fork 0
/
calculator-2.html
154 lines (147 loc) · 5.39 KB
/
calculator-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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Calculator GUI</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<link rel="stylesheet" href="css/app.css">
</head>
<body>
<section class="my-4">
<div class="container">
<div class="row text-center">
<div class="col-12 p-1 text-right">
<div class="bg-1 p-4">
<div id="res" class="mb-2">
</div>
<div id="display">
</div>
</div>
</div>
<div class="col-3 p-1">
<div class="bg p-4">
<button value="1" class="bttn px-5 py-3" type="button" name="button">
<h3>1</h3>
</button>
</div>
</div>
<div class="col-3 p-1">
<div class="bg p-4">
<button value="2" class="bttn px-5 py-3" type="button" name="button">
<h3>2</h3>
</button>
</div>
</div>
<div class="col-3 p-1">
<div class="bg p-4">
<button value="3" class="bttn px-5 py-3" type="button" name="button">
<h3>3</h3>
</button>
</div>
</div>
<div class="col-3 p-1">
<div class="bg p-4">
<button id="eq" class="px-5 py-3 action" type="button" name="eq">
<h3>=</h3>
</button>
</div>
</div>
<div class="col-3 p-1">
<div class="bg p-4">
<button value="4" class="bttn px-5 py-3" type="button" name="button">
<h3>4</h3>
</button>
</div>
</div>
<div class="col-3 p-1">
<div class="bg p-4">
<button value="5" class="bttn px-5 py-3" type="button" name="button">
<h3>5</h3>
</button>
</div>
</div>
<div class="col-3 p-1">
<div class="bg p-4">
<button value="6" class="bttn px-5 py-3" type="button" name="button">
<h3>6</h3>
</button>
</div>
</div>
<div class="col-3 p-1">
<div class="bg p-4">
<button value="0" class="bttn px-5 py-3" type="button" name="button">
<h3>0</h3>
</button>
</div>
</div>
<div class="col-3 p-1">
<div class="bg p-4">
<button value="7" class="bttn px-5 py-3" type="button" name="button">
<h3>7</h3>
</button>
</div>
</div>
<div class="col-3 p-1">
<div class="bg p-4">
<button value="8" class="bttn px-5 py-3" type="button" name="button">
<h3>8</h3>
</button>
</div>
</div>
<div class="col-3 p-1">
<div class="bg p-4">
<button value="9" class="bttn px-5 py-3" type="button" name="button">
<h3>9</h3>
</button>
</div>
</div>
<div class="col-3 p-1">
<div class="bg p-4">
<button value="." class="bttn px-5 py-3" type="button" name="button">
<h3>.</h3>
</button>
</div>
</div>
<div class="col-3 p-1">
<div class="bg p-4">
<button id="div" class="px-5 py-3 action" type="button" name="div">
<h3>/</h3>
</button>
</div>
</div>
<div class="col-3 p-1">
<div class="bg p-4">
<button id="mul" class="px-5 py-3 action" type="button" name="mul">
<h3>*</h3>
</button>
</div>
</div>
<div class="col-3 p-1">
<div class="bg p-4">
<button id="sub" class="px-5 py-3 action" type="button" name="sub">
<h3>-</h3>
</button>
</div>
</div>
<div class="col-3 p-1">
<div class="bg p-4">
<button id="add" class="px-5 py-3 action" type="button" name="add">
<h3>+</h3>
</button>
</div>
</div>
<div class="col-12 p-1">
<button id="clr" class="btn-block bg-2 py-4" type="button" name="button">
<h3>Clear</h3>
</button>
</div>
</div>
</div>
</section>
<script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T" crossorigin="anonymous"></script>
<script type="text/javascript" src="js/calculator-2.js"></script>
</body>
</html>