-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (36 loc) · 1.91 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
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="grid.css">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap" rel="stylesheet">
</head>
<body>
<div class="calculator">
<div class="calc_display" data-action="add" id="display">0</div>
<div class="calc_keys">
<button class="key-operator" data-action="add" id="add">+</button>
<button class="key-operator" data-action="subtract" id="subtract">-</button>
<button class="key-operator" data-action="multiply" id="multiply">×</button>
<button class="key-operator" data-action="divide" id="divide">÷</button>
<button class="active" id="seven">7</button>
<button class="active" id="eight">8</button>
<button class="active" id="nine">9</button>
<button class="active" id="four">4</button>
<button class="active" id="five">5</button>
<button class="active" id="six">6</button>
<button class="active" id="one">1</button>
<button class="active" id="two">2</button>
<button class="active" id="three">3</button>
<button class="active" id="zero">0</button>
<button class="active" id="decimal" data-action="decimal">.</button>
<button class="active" id="clear" data-action="clear">AC</button>
<button id="equals" class="key-equal" data-action="calculate">=</button>
</div>
</div>
<script src="calc.js" async defer></script>
</body>
</html>