-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (39 loc) · 2.06 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
<!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">
<link rel="stylesheet" href="styles.css">
<title>JavaScript Calculator</title>
</head>
<body>
<div id ="calculator">
<div id="screenContainer">
<div id ="screenInput" data-cy="screenInput"> </div>
<div id="screenOutput" data-cy=screenOutput> </div>
</div>
<div id = "buttons">
<button id="ac" class="buttons specialButtons" data-cy="ac">AC</button>
<button id="negativeNumber" class="buttons specialButtons" data-cy="negativeNumber">+/-</button>
<button id="delete" class="buttons specialButtons" data-cy="delete">DEL</button>
<button id="multiply" class="buttons specialButtons" data-cy="multiply">*</button>
<button id="add" class="buttons specialButtons" data-cy="add">+</button>
<button id="subtract" class="buttons specialButtons" data-cy="subtract">-</button>
<button id="divide" class="buttons specialButtons" data-cy="divide">÷</button>
<button id="decimalPoint" class="buttons specialButtons" data-cy="decimalPoint">.</button>
<button id="equals" class="buttons specialButtons" data-cy="equals">=</button>
<button id="one" class="buttons numbers" data-cy="one">1</button>
<button id="two" class="buttons numbers" data-cy="two">2</button>
<button id="three" class="buttons numbers" data-cy="three">3</button>
<button id="four" class="buttons numbers" data-cy="four">4</button>
<button id="five" class="buttons numbers" data-cy="five">5</button>
<button id="six" class="buttons numbers" data-cy="six">6</button>
<button id="seven" class="buttons numbers" data-cy="seven">7</button>
<button id="eight" class="buttons numbers" data-cy="eight">8</button>
<button id="nine" class="buttons numbers" data-cy="nine">9</button>
<button id="zero" class="buttons numbers" data-cy="zero">0</button>
</div>
<script src="main.js" defer> </script>
</body>
</html>