-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
89 lines (89 loc) · 3.85 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
<!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">
<script defer src="script.js"></script>
<link rel="stylesheet" href="style.css">
<title>iPhone Calculator</title>
</head>
<body>
<main id="main">
<form action="" 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">
<!-- all clear sign-->AC
</button>
<button data-type="operator" value="invert" class="btn btn-grey">
<!-- plus-minus sign -->+/-
</button>
<button data-type="operator" value="%" class="btn btn-grey">
<!-- percent sign -->%
</button>
<button data-type="operator" value="/" class="btn btn-orange">
<!-- division sign -->÷
</button>
</div>
<div class="btn_group">
<button data-type="operand" value="7" id="7" class="btn btn-dark-grey">
7
</button>
<button data-type="operand" value="8" id="8" class="btn btn-dark-grey">
8
</button>
<button data-type="operand" value="9" id="9" class="btn btn-dark-grey">
9
</button>
<button data-type="operator" value="*" class="btn btn-orange">
<!-- multiplication sign -->x
</button>
</div>
<div class="btn_group">
<button data-type="operand" value="4" id="4" class="btn btn-dark-grey">
4
</button>
<button data-type="operand" value="5" id="5" class="btn btn-dark-grey">
5
</button>
<button data-type="operand" value="6" id="6" class="btn btn-dark-grey">
6
</button>
<button data-type="operator" value="-" class="btn btn-orange">
<!-- minus symbol -->-
</button>
</div>
<div class="btn_group">
<button data-type="operand" value="1" id="1" class="btn btn-dark-grey">
1
</button>
<button data-type="operand" value="2" id="2" class="btn btn-dark-grey">
2
</button>
<button data-type="operand" value="3" id="3" class="btn btn-dark-grey">
3
</button>
<button data-type="operator" value="+" class="btn btn-orange">
<!-- add symbol -->+
</button>
</div>
<div class="btn_group">
<button data-type="operand" value="0" id="0" class="btn btn-grow btn-dark-grey">
0
</button>
<button data-type="operand" value="." class="btn btn-dark-grey">
<!-- decimal point symbol -->.
</button>
<button data-type="operator" value="=" class="btn btn-orange">
<!-- equals sign -->=
</button>
</div>
</footer>
</form>
</main>
</body>
</html>