-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
40 lines (40 loc) · 1.6 KB
/
Copy pathindex.html
File metadata and controls
40 lines (40 loc) · 1.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calculator</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="title">
Calculator
</div>
<div class="calculator-container">
<div class="output-screen"></div>
<div class="calculator-grid">
<button class="clear-button">AC</button>
<button class="negative">+ / -</button>
<button class="operator">%</button>
<button class="operator">/</button>
<button data-value="7" class="operand">7</button>
<button data-value="8" class="operand">8</button>
<button data-value="9" class="operand">9</button>
<button class="operator">*</button>
<button data-value="4" class="operand">4</button>
<button data-value="5" class="operand">5</button>
<button data-value="6" class="operand">6</button>
<button class="operator">-</button>
<button data-value="1" class="operand">1</button>
<button data-value="2" class="operand">2</button>
<button data-value="3" class="operand">3</button>
<button class="operator">+</button>
<button data-value="0" class="operand">0</button>
<button class="decimal">.</button>
<button class="equal">=</button>
</div>
</div>
<script src="calculator.js"></script>
</body>
</html>