-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (57 loc) · 2.88 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
<!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="icon" href="./img/icon.png" type="image/png">
<link type="text/css" rel="stylesheet" href="./style.css">
<script src="./script.js" defer></script>
</head>
<body>
<h1>Calculator</h1>
<h3>With keyboard support!</h3>
<div class="calculator">
<div class="display">
<div class="display__history"> </div>
<div class="display__result"> </div>
</div>
<div class="buttons">
<div class="buttons__row" id="first">
<button class="buttons__item buttons__item--factorial">!</button>
<button class="buttons__item buttons__item--operator num-power">^</button>
<button class="buttons__item buttons__item--clear">C</button>
<button class="buttons__item buttons__item--backspace">⌫</button>
</div>
<div class="buttons__row">
<button class="buttons__item buttons__item--number num-7">7</button>
<button class="buttons__item buttons__item--number num-8">8</button>
<button class="buttons__item buttons__item--number num-9">9</button>
<button class="buttons__item buttons__item--operator num-divide">÷</button>
</div>
<div class="buttons__row">
<button class="buttons__item buttons__item--number num-4">4</button>
<button class="buttons__item buttons__item--number num-5">5</button>
<button class="buttons__item buttons__item--number num-6">6</button>
<button class="buttons__item buttons__item--operator num-multiply">x</button>
</div>
<div class="buttons__row">
<button class="buttons__item buttons__item--number num-1">1</button>
<button class="buttons__item buttons__item--number num-2">2</button>
<button class="buttons__item buttons__item--number num-3">3</button>
<button class="buttons__item buttons__item--operator num-minus">-</button>
</div>
<div class="buttons__row">
<button class="buttons__item buttons__item--number num-0">0</button>
<button class="buttons__item buttons__item--number num-dot">.</button>
<button class="buttons__item buttons__item--equal">=</button>
<button class="buttons__item buttons__item--operator num-plus">+</button>
</div>
</div>
</div>
<footer>
<a href="https://github.com/Shahir-47"><img src="./img/github.svg" alt="gitHub logo"> @Shahir-47</a> | <a href="https://github.com/Shahir-47/Calculator">Source Code</a>
</footer>
</body>
</html>