-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
108 lines (108 loc) · 3.21 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<title>Document</title>
</head>
<body>
<main id="main">
<form id="calc_form">
<header class="calc_header">
<input
type="text"
disabled
id="output"
class="calc_output"
value="0"
/>
</header>
<footer class="calc_footer">
<div class="btn_group">
<button
data-type="clear"
type="reset"
value="clear"
class="btn btn-grey"
>
AC
</button>
<button data-type="operator" value="invert" class="btn btn-grey">
+/-
</button>
<button data-type="operator" value="%" class="btn btn-grey">
%
</button>
<button data-type="operator" value="/" class="btn btn-orange">
÷
</button>
</div>
<div class="btn_group">
<button
data-type="operand"
value="7"
class="btn btn-dark-grey"
id="7"
>
7
</button>
<button data-type="operand" value="8" class="btn btn-dark-grey">
8
</button>
<button data-type="operand" value="9" class="btn btn-dark-grey">
9
</button>
<button data-type="operator" value="*" class="btn btn-orange">
x
</button>
</div>
<div class="btn_group">
<button data-type="operand" value="4" class="btn btn-dark-grey">
4
</button>
<button data-type="operand" value="5" class="btn btn-dark-grey">
5
</button>
<button data-type="operand" value="6" class="btn btn-dark-grey">
6
</button>
<button data-type="operator" value="-" class="btn btn-orange">
-
</button>
</div>
<div class="btn_group">
<button data-type="operand" value="1" class="btn btn-dark-grey">
1
</button>
<button data-type="operand" value="2" class="btn btn-dark-grey">
2
</button>
<button data-type="operand" value="3" class="btn btn-dark-grey">
3
</button>
<button data-type="operator" value="+" class="btn btn-orange">
+
</button>
</div>
<div class="btn_group">
<button
data-type="operand"
value="0"
class="btn btn-grow btn-dark-grey"
>
0
</button>
<button data-type="operand" value="." class="btn btn-dark-grey">
.
</button>
<button value="=" data-type="operator" class="btn btn-orange">
=
</button>
</div>
</footer>
</form>
</main>
</body>
<script src="script.js"></script>
</html>