forked from ayoisaiah/javascript-calculator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
66 lines (52 loc) · 1.58 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
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html lang="en">
<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>JavaScript Calculator</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="calculator">
<div class="top">
<span class="unit">deg</span>
<section class="screen">
<div class="input"></div>
<div class="result"></div>
</section>
</div>
<div class="bottom">
<section class="keys">
<div class="column">
<span data-key="7">7</span>
<span data-key="4">4</span>
<span data-key="1">1</span>
<span data-key=".">.</span>
</div>
<div class="column">
<span data-key="8">8</span>
<span data-key="5">5</span>
<span data-key="2">2</span>
<span data-key="0">0</span>
</div>
<div class="column">
<span data-key="9">9</span>
<span data-key="6">6</span>
<span data-key="3">3</span>
<span class="equals-to" data-key="=">=</span>
</div>
</section>
<section class="operators">
<span class="delete">del</span>
<span data-key="÷">÷</span>
<span data-key="x">x</span>
<span data-key="-">-</span>
<span data-key="+">+</span>
</section>
</div>
</main>
<span class="credit">View on <a href="https://github.com/ayoisaiah/javascript-calculator">Github</a></span>
<script src="main.js"></script>
</body>
</html>