-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
55 lines (46 loc) · 2.94 KB
/
index.html
File metadata and controls
55 lines (46 loc) · 2.94 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calculator</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="parent">
<div data-screen class="screen" aria-label="Calculator Screen">0</div>
<div class="sliding-part">
<button data-value="AC" class="child symbol" aria-label="All Clear">AC</button>
<button data-value="minus" class="child symbol minus" aria-label="Toggle Sign">+/-</button>
<button data-value="%" data-operator class="child symbol" aria-label="Percentage">%</button>
<button data-value="/" data-number class="child operator" aria-label="Divide">÷</button>
<button data-value="7" class="child digit" aria-label="Number 7">7</button>
<button data-value="8" data-number class="child digit" aria-label="Number 8">8</button>
<button data-value="9" class="child digit" aria-label="Number 9">9</button>
<button data-value="*" data-operator class="child operator" aria-label="Mutiply">x</button>
<button data-value="4" class="child digit" aria-label="Number 4">4</button>
<button data-value="5" class="child digit" aria-label="Number 5">5</button>
<button data-value="6" class="child digit" aria-label="Number 6">6</button>
<button data-value="-" data-operator class="child operator" aria-label="Minus">-</button>
<button data-value="1" class="child digit" aria-label="Number 1">1</button>
<button data-value="2" class="child digit" aria-label="Number 2">2</button>
<button data-value="3" class="child digit" aria-label="Number 3">3</button>
<button data-value="+" data-operator class="child operator" aria-label="Add">+</button>
<button data-value="0" class="child zero" aria-label="Number 0">0</button>
<button data-value="DE" class="child DE" aria-label="Delete">DE</button>
<button data-value="." class="child" aria-label="Decimal point">.</button>
<button data-value="=" data-operator class="child operator equals" aria-label="Equal sign">=</button>
<button data-value="history" class="history-btn" aria-label="History button">history</button>
<button data-value="(" data-operator class="child operator" aria-label="Opening parenthesis">(</button>
<button data-value=")" data-operator class="child operator" aria-label="Closing parenthesis">)</button>
</div>
<div class="computation-history-parent">
<h3>history</h3>
<ul class="computation-history" aria-label="Computation History"></ul>
<button class="clear-history-btn display" aria-label="Clear History">clear history</button>
</div>
</div>
</div>
<script src="dist/index.js"></script>
</body>
</html>