-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (62 loc) · 2.99 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
<!DOCTYPE html>
<html>
<head>
<title>Calculator</title>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1"
crossorigin="anonymous"
/>
<link href="styles.css" rel="stylesheet">
<link href="icon.png" rel="icon">
</head>
<body>
<div id="app-container" class="d-inline-block mt-spacing noselect">
<div id="history-container">
<p id="history" class="m-0 text-left h4"></p>
</div>
<div id="calc-container">
<div class="row">
<div id="calc-display" class="rounded-3"></div>
</div>
<div id="calc-btn-group">
<div class="row">
<div class="col-sm"><button id="plus-minus-btn" class="calc-btn">+/-</button></div>
<div class="col-sm"><button id="c-btn" class="calc-btn">C</button></div>
<div class="col-sm"><button id="ce-btn" class="calc-btn">CE</button></div>
<div class="col-sm"><button id = "del-btn" class="calc-btn">DEL</button></div>
</div>
<div class="row">
<div class="col-sm"><button data-num="7" class="calc-btn num-btn">7</button></div>
<div class="col-sm"><button data-num="8" class="calc-btn num-btn">8</button></div>
<div class="col-sm"><button data-num="9" class="calc-btn num-btn">9</button></div>
<div class="col-sm"><button data-op="+" class="calc-btn op-btn">+</button></div>
</div>
<div class="row">
<div class="col-sm"><button data-num="4" class="calc-btn num-btn">4</button></div>
<div class="col-sm"><button data-num="5" class="calc-btn num-btn">5</button></div>
<div class="col-sm"><button data-num="6" class="calc-btn num-btn">6</button></div>
<div class="col-sm"><button data-op="-" class="calc-btn op-btn">-</button></div>
</div>
<div class="row">
<div class="col-sm"><button data-num="1" class="calc-btn num-btn">1</button></div>
<div class="col-sm"><button data-num="2" class="calc-btn num-btn">2</button></div>
<div class="col-sm"><button data-num="3" class="calc-btn num-btn">3</button></div>
<div class="col-sm"><button data-op="*" class="calc-btn op-btn">×</button></div>
</div>
<div class="row">
<div class="col-sm"><button data-num="0" class="calc-btn num-btn">0</button></div>
<div class="col-sm"><button id="decimal-btn" class="calc-btn ">.</button></div>
<div class="col-sm"><button id="equals-btn" class="calc-btn">=</button></div>
<div class="col-sm"><button data-op="/" class="calc-btn op-btn">÷</button></div>
</div>
</div>
</div>
<!-- end calc-btn-group -->
</div>
<!-- end calc-container -->
<script src="helpers.js"></script>
<script src="scripts.js"></script>
</body>
</html>