-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (70 loc) · 2.75 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calculator</title>
<script src="script.js" defer></script>
<link rel="apple-touch-icon" sizes="180x180" href="icon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="icon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="icon/favicon-16x16.png">
<link rel="manifest" href="icon/site.webmanifest">
<link rel="stylesheet" href="app.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap" rel="stylesheet">
</head>
<body>
<audio src="sound/click.wav"></audio>
<div class="calculator">
<div id="display-box">
<div id="display">0</div>
<div id="result">0</div>
</div>
<div class="all-buttons">
<div class="row1">
<button id="clear">AC</button>
<button id="delete">DEL</button>
<button id="percentage">%</button>
<button id="equal">=</button>
</div>
<div class="row2">
<button class="digit">7</button>
<button class="digit">8</button>
<button class="digit">9</button>
<button class="operator">/</button>
</div>
<div class="row3">
<button class="digit">4</button>
<button class="digit">5</button>
<button class="digit">6</button>
<button class="operator">*</button>
</div>
<div class="row4">
<button class="digit">1</button>
<button class="digit">2</button>
<button class="digit">3</button>
<button class="operator">-</button>
</div>
<div class="row5">
<button id="dot">.</button>
<button class="digit">0</button>
<button id="ans">ANS</button>
<button class="operator">+</button>
</div>
</div>
</div>
<div id="controls">
<u id="list">Keyboard Controls:</u>
<ul>
<li>C : AC
<li>A : ANS <br>[use ANS get previously calculated result]<br>
<li>Delete/Backspace : DEL
<li>=/Enter : =</li>
<li>and rest same as buttons</li>
</ul>
</div>
<p class="credits"><a href="https://github.com/EmberTSeal">TRISHA SEAL</a> || 2023 || <a
href="https://www.theodinproject.com/about">THE ODIN PROJECT</a></p>
</body>
</html>