-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
60 lines (57 loc) · 2.54 KB
/
Copy pathindex.html
File metadata and controls
60 lines (57 loc) · 2.54 KB
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
<!DOCTYPE html>
<html lang="en">
<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">
</head>
<body>
<div class="history" id="history">
<button class="history-button" id="history-btn">History</button>
<div id="historySidebar" style="display: none;">
<h3>Calculation History</h3>
<ul id="historyList"></ul>
<div id="clear-close">
<button id="clearHistory">Clear History</button>
<button id="closeHistory">Close</button>
</div>
</div>
</div>
<div class="calculator" tabindex="0">
<input type="text" class="display" id="display" disabled>
<div class="buttons">
<div class="button-set" id="row-1">
<button class="btn-ac button" value="ac">AC</button>
<button class="btn-c" value="c">C</button>
<button class="btn-del button" value="del">DEL</button>
<button class="btn-multiply button" value="*">*</button>
</div>
<div class="button-set" id="row-2">
<button class="btn-9 button" value="9">9</button>
<button class="btn-8 button" value="8">8</button>
<button class="btn-7 button" value="7">7</button>
<button class="btn-divide button" value="/">/</button>
</div>
<div class="button-set" id="row-3">
<button class="btn-6 button" value="6">6</button>
<button class="btn-5 button" value="5">5</button>
<button class="btn-4 button" value="4">4</button>
<button class="btn-subtract button" value="-">-</button>
</div>
<div class="button-set" id="row-4">
<button class="btn-3 button" value="3">3</button>
<button class="btn-2 button" value="2">2</button>
<button class="btn-1 button" value="1">1</button>
<button class="btn-add button" value="+">+</button>
</div>
<div class="button-set" id="row-5">
<button class="btn-percent button" value="%">%</button>
<button class="btn-0 button" value="0">0</button>
<button class="btn-decimal button" value=".">.</button>
<button class="btn-equals button" value="=">=</button>
</div>
</div>
<script src="app.js"></script>
</body>
</html>