-
Notifications
You must be signed in to change notification settings - Fork 0
/
Calculadora com aba.html
150 lines (144 loc) · 3.67 KB
/
Calculadora com aba.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!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">
<!--<link rel="stylesheet" type="text/css" href="estilos73.css" />-->
<title>Calculadora com aba</title>
<style>
*{
padding: 0px;
margin: 0px;
border: none;
box-sizing:border-box;
font-size: large;
}
.calc{
display: flex;
justify-content: center;
align-items: center;
flex-direction: row;
position: absolute;
/*top:0px;*/
left:-230px;
/*background-color: #eee;*/
/*border: 2px solid #bbb;*/
width: 250px;
border-radius: 5px;
transition: all 0.2s;
}
.calc_exibir{
left:0px !important;
transition: all 0.2s;
}
.calc_principal{
diaplay: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background-color: #eee;
border: 2px solid #bbb;
width: 230px;
border-radius: 5px;
}
.calc_aba{
display: flex;
justify-content: center;
align-items:center;
width: 20px;
height: 50px;
background-color: rgba(128,128,128,0.2);
border-radius: 0px 8px 8px 0px;
cursor: pointer;
}
.div_nome{
diaplay: flex;
justify-content: center;
align-items: center;
width: 230px;
}
.div_display{
diaplay: flex;
justify-content: center;
align-items: center;
width: 220px;
/*border: 1px solid #f00;*/
}
.display{
width: 220px;
background-color: #8a8;
text-align: right;
padding: 5px;
font-family: monospace;
font-size: larger;
/*border: 1px solid #00f;*/
}
.div_teclas{
diaplay: flex;
justify-content: center;
align-items: center;
width: 230px;
flex-wrap: wrap;
}
.tecla{
diaplay: flex;
justify-content: center;
align-items: center;
background-color: #aaa;
border: 1px solid #888;
border-radius: 10px;
font-weight: bold;
width: 50px;
height: 50px;
cursor: pointer;
margin: 1px;
}
.teclaOp{
background-color: #f44 !important;
border-color: #800 !important;
}
</style>
</head>
<body>
<div id="calc" class="calc">
<div id="calc_principal" class="calc_principal">
<div id="div_nome" class="div_nome">
<p style="text-align:center">Calculadora</p>
</div>
<div id="div_display" class="div_display">
<p id="display" class="display">0</p>
</div>
<div id="div_teclas" class="div_teclas">
<button id="tcpy" class="tecla teclaOp">CPY</button>
<!--<button id="ton" class="tecla teclaOp">ON</button>-->
<button id="tlimpar" class="tecla">CL</button>
<button id="t(" class="tecla num">(</button>
<button id="t)" class="tecla num">)</button>
<button id="t7" class="tecla num">7</button>
<button id="t8" class="tecla num">8</button>
<button id="t9" class="tecla num">9</button>
<button id="t+" class="tecla teclaOp op">+</button>
<button id="t4" class="tecla num">4</button>
<button id="t5" class="tecla num">5</button>
<button id="t6" class="tecla num">6</button>
<button id="t-" class="tecla teclaOp op">-</button>
<button id="t1" class="tecla num">1</button>
<button id="t2" class="tecla num">2</button>
<button id="t3" class="tecla num">3</button>
<button id="t*" class="tecla teclaOp op">*</button>
<button id="t0" class="tecla num">0</button>
<button id="tseparador" class="tecla num">,</button>
<button id="tigual" class="tecla teclaOp res">=</button>
<button id="td" class="tecla teclaOp op">/</button>
</div>
</div>
<div id="calc_aba" class="calc_aba">
<!--<img id="img_aba_calc" src="seta-direita.svg"/>-->
<p id="img_aba_calc">»</p>
</div>
</div>
<!--<input type="text" id="teste" name="teste" style="border:1px solid #000;"/>-->
<script src="aula73.js"></script>
</body>
</html>