-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (44 loc) · 1.95 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
<!DOCTYPE html>
<html lang="en-GB">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>JS Calculator</title>
<link rel="icon" type="image/png" sizes="16x16" href="img/calculator-logo.png">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<!-- Display -->
<main class="calculator-display">
<div id="display" class="output">
<div data-previous-operand class="previous-operand"></div>
<div data-current-operand class="current-operand"></div>
</div>
<!-- Keys -->
<button data-all-clear class="span-two" id="all-clear">AC</button>
<button data-delete id="clear">⌫</button>
<button data-operation id="divide">÷</button>
<button data-number id="seven">7</button>
<button data-number id="eight">8</button>
<button data-number id="nine">9</button>
<button data-operation id="multiply">×</button>
<button data-number id="four">4</button>
<button data-number id="five">5</button>
<button data-number id="six">6</button>
<button data-operation id="substract">-</button>
<button data-number id="one">1</button>
<button data-number id="two">2</button>
<button data-number id="three">3</button>
<button data-operation id="add">+</button>
<button data-number class="span-two" id="zero">0</button>
<button data-number id="decimal">.</button>
<button data-equals id="equals">=</button>
</main>
<!-- Footer -->
<footer><abbr title="Calculator"><i class="fas fa-calculator"></i></abbr> made with <abbr title="love"><i class="fas fa-heart"></i></abbr> by <a href="https://github.com/renatajarmova" target="_blank">Renata</a></footer>
<!-- JavaScript -->
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<script src="js/script.js"></script>
</body>
</html>