-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
129 lines (117 loc) · 5.04 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
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
<!doctype html>
<html lang="en">
<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-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
<link rel="stylesheet" href="./styles/style.css">
<title>Calculator!</title>
</head>
<body>
<h1 class="d-flex justify-content-center py-5">Calculator</h1>
<div class="container py-5">
<div class="row g-3 d-flex justify-content-center">
<div class="col-auto">
<input type="text" id="inputBox" class="form-control">
</div>
</div>
<div class="row py-3">
<div class="col d-flex justify-content-center">
<h1 id="headerText">Operation Result Here</h1>
</div>
</div>
<div class="row d-flex justify-content-center">
<div class="cal-cont">
<div class="row py-3 cal-cont d-flex justify-content-center">
<div class="col-4 d-flex justify-content-center">
<button class="btn btn-primary" id="num" type="button">1</button>
</div>
<div class="col-4 d-flex justify-content-center">
<button class="btn btn-primary grey" id="num" type="button">2</button>
</div>
<div class="col-4 d-flex justify-content-center">
<button class="btn btn-primary green" id="num" type="button">3</button>
</div>
</div>
</div>
</div>
<div class="row d-flex justify-content-center">
<div class="cal-cont">
<div class="row py-3">
<div class="col d-flex justify-content-center">
<button class="btn btn-primary" id="num" type="button">4</button>
</div>
<div class="col d-flex justify-content-center">
<button class="btn btn-primary grey" id="num" type="button">5</button>
</div>
<div class="col d-flex justify-content-center">
<button class="btn btn-primary green" id="num" type="button">6</button>
</div>
</div>
</div>
</div>
<div class="row d-flex justify-content-center">
<div class="cal-cont">
<div class="row py-3">
<div class="col d-flex justify-content-center">
<button class="btn btn-primary" id="num" type="button">7</button>
</div>
<div class="col d-flex justify-content-center">
<button class="btn btn-primary grey" id="num" type="button">8</button>
</div>
<div class="col d-flex justify-content-center">
<button class="btn btn-primary green" id="num" type="button">9</button>
</div>
<div class="col d-flex justify-content-center">
<button class="btn btn-primary green" id="num" type="button">0</button>
</div>
</div>
</div>
</div>
<div class="row d-flex justify-content-center">
<div class="cal-cont">
<div class="row py-3">
<div class="col d-flex justify-content-center">
<button class="btn btn-primary" id="plusBtn" type="button">+</button>
</div>
<div class="col d-flex justify-content-center">
<button class="btn btn-primary grey" id="minusBtn" type="button">-</button>
</div>
<div class="col d-flex justify-content-center">
<button class="btn btn-primary green" id="timesBtn" type="button">*</button>
</div>
<div class="col d-flex justify-content-center">
<button class="btn btn-primary green" id="divideBtn" type="button">/</button>
</div>
</div>
</div>
</div>
<div class="row d-flex justify-content-center">
<div class="cal-cont">
<div class="row py-3">
<div class="col d-flex justify-content-center">
<button class="btn btn-primary" id="equalBtn" type="button">=</button>
</div>
<div class="col d-flex justify-content-center">
<button class="btn btn-primary" id="ClearBtn" type="button">Clear</button>
</div>
</div>
</div>
</div>
</div>
<!-- Optional JavaScript; choose one of the two! -->
<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4"
crossorigin="anonymous"></script>
<script src="./scripts/scripts.js"></script>
<!-- Option 2: Separate Popper and Bootstrap JS -->
<!--
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT" crossorigin="anonymous"></script>
-->
</body>
</html>