-
Notifications
You must be signed in to change notification settings - Fork 0
/
apple-calculator.html
99 lines (89 loc) · 2.56 KB
/
apple-calculator.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
<html>
<head>
<title>Apple Calculator</title>
<style>
#calculator {
background-color: #BBBBBB;
padding: 20px;
margin: 20px;
width: 435px;
height: 520px;
}
#output {
background-color: #F0FACA;
font-family: sans-serif;
font-size: 20pt;
width: 345px;
height: 85px;
margin-bottom: 20px;
padding-top: 10px;
padding-right: 50px;
text-align: right;
border: 1px solid #B0B596;
border-radius: 8px;
}
button {
background-color: #D4D4D4;
font-family: sans-serif;
font-size: 20pt;
width: 93px;
height: 54px;
margin-right: 4px;
margin-bottom: 8px;
border-radius: 8px;
}
.doublewidth {
width: 193px;
}
.doubleheight {
height: 116px;
padding-top: 54px;
}
.row {
height: 62px;
}
.row button {
vertical-align: top;
}
</style>
</head>
<body>
<div id="calculator">
<div id="output">4,856,995.2</div>
<div>
<button>MC</button>
<button>M+</button>
<button>M–</button>
<button>MR</button>
</div>
<div>
<button>C</button>
<button>±</button>
<button>÷</button>
<button>×</button>
</div>
<div>
<button>7</button>
<button>8</button>
<button>9</button>
<button>–</button>
</div>
<div>
<button>4</button>
<button>5</button>
<button>6</button>
<button>+</button>
</div>
<div class="row">
<button>1</button>
<button>2</button>
<button>3</button>
<button class="doubleheight">=</button>
</div>
<div>
<button class="doublewidth">0</button>
<button>.</button>
</div>
</div>
</body>
</html>