-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (35 loc) · 1.34 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
<!DOCTYPE html>
<html>
<head>
<title>Js-Calculator</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="calculator.css">
</head>
<body>
<h4>Js.Calculator</h6>
<div id="display"></div>
<div id='container' style='display: grid;
grid-template-columns: 85px 85px 85px 85px;
grid-template-rows: 85px 85px 85px 85px 85px'>
<button id="number">7</button>
<button id="number">8</button>
<button id="number">9</button>
<button id="operator" class='add'>+</button>
<button id="number">4</button>
<button id="number">5</button>
<button id="number">6</button>
<button id="operator" class='subtract'>-</button>
<button id="number">1</button>
<button id="number">2</button>
<button id="number">3</button>
<button id="operator" class='multiply'>*</button>
<button class="clear">C</button>
<button id="number">0</button>
<button id="operator" class='divide'>/</button>
<button id="backspace">Backspace</button>
<button id="decimal">.</button>
<button class="equals">=</button>
</div>
<script src='calculator.js'></script>
</body>
</html>