-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
143 lines (140 loc) · 6.79 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
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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Calculadora</title>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT"
crossorigin="anonymous"
/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Share+Tech+Mono&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css" />
</head>
<body>
<main class="ContenidoPrincipal">
<div class="container">
<div id="calculadora" class="shadow-lg rounded-4">
<div class="d-flex justify-content-around align-items-center ">
<p class="fs-4 d-inline text-white">Casio</p>
<p class="fs-6 d-inline text-white">KK-82MS</p>
</div>
<div id="pantalla" class="shadow-lg rounded-3 ">
<div id="resultado"><p>_</p></div>
<div id="previo"><p>0</p></div>
</div>
<div id="teclado">
<div class="row my-3 mx-auto">
<div class="col-2 ">
<button type="button" class="btn btn-dark" value="(">(</button>
</div>
<div class="col-2">
<button type="button" class="btn btn-dark" value=")">)</button>
</div>
<div class="col-2">
<button type="button" class="btn btn-dark" value="">x!</button>
</div>
<div class="col-2">
<button type="button" class="btn btn-dark" value="">x<sup>2</sup></button>
</div>
<div class="col-2">
<button type="button" class="btn btn-dark" value="">√</button>
</div>
<div class="col-2">
<button type="button" class="btn btn-dark" value=""><sup>n</sup>√</button>
</div>
</div>
<!-- 2fila -->
<div class="row my-3 mx-auto ">
<div class="col-2 ">
<button type="button" class="btn btn-dark" value="">sin</button>
</div>
<div class="col-2">
<button type="button" class="btn btn-dark" value="">cos</button>
</div>
<div class="col-2">
<button type="button" class="btn btn-dark" value="">tg</button>
</div>
<div class="col-2">
<button type="button" class="btn btn-dark" value="">x<sup>3</sup></button>
</div>
<div class="col-2">
<button type="button" class="btn btn-dark" value=""><sup>3</sup>√</button>
</div>
<div class="col-2">
<button type="button" class="btn btn-dark" value="">x<sup>n</sup></button>
</div>
</div>
<!-- 3fila -->
<div class="row my-3 mx-auto">
<div class="col-2">
<button type="button" class="btn btn-primary" value="1" onclick="numero(this)">1</button>
</div>
<div class="col-2">
<button type="button" class="btn btn-primary" value="2" onclick="numero(this)">2</button>
</div>
<div class="col-2">
<button type="button" class="btn btn-primary" value="3" onclick="numero(this)">3</button>
</div>
<div class="col-2"><button type="button" class="btn btn-secondary" value="/">/</button></div>
<div class="col-2"><button type="button" class="btn btn-secondary" value="%">%</button></div>
<div class="col-2"><button type="button" class="btn btn-secondary" value="">In</button></div>
</div>
<!-- 4fila -->
<div class="row my-3 mx-auto">
<div class="col-2">
<button type="button" class="btn btn-primary" value="4" onclick="numero(this)">4</button>
</div>
<div class="col-2 ">
<button type="button" class="btn btn-primary" value="5" onclick="numero(this)">5</button>
</div>
<div class="col-2">
<button type="button" class="btn btn-primary" value="6" onclick="numero(this)">6</button>
</div>
<div class="col-2"><button type="button" class="btn btn-secondary"value="*">*</button></div>
<div class="col-2"><button type="button" class="btn btn-secondary"value="log">log</button></div>
<div class="col-2"><button type="button" class="btn btn-danger"value="">e</button></div>
</div>
<!-- 5fila -->
<div class="row my-3 mx-auto">
<div class="col-2">
<button type="button" class="btn btn-primary" value="7" onclick="numero(this)">7</button>
</div>
<div class="col-2">
<button type="button" class="btn btn-primary" value="8" onclick="numero(this)">8</button>
</div>
<div class="col-2">
<button type="button" class="btn btn-primary" value="9" onclick="numero(this)">9</button>
</div>
<div class="col-2"><button type="button" class="btn btn-secondary" value="-">-</button></div>
<div class="col-2"><button type="button" class="btn btn-danger" value="ac">AC</button></div>
<div class="col-2 "><button type="button" class="btn btn-success" value="=">=</button></div>
</div>
<!-- 6fila -->
<div class="row my-3 mx-auto">
<div class="col-2"><button type="button" class="btn btn-primary" value="." onclick="numero(this)" >.</button></div>
<div class="col-2"><button type="button" class="btn btn-primary" value="0" onclick="numero(this)">0</button></div>
<div class="col-2"><button type="button" class="btn btn-secondary" value="pi">π</button></div>
<div class="col-2"><button type="button" class="btn btn-secondary" value="+" >+</button></div>
<div class="col-2"><button type="button" class="btn btn-secondary" value="mr">MR</button></div>
<div class="col-2"><button type="button" class="btn btn-info" value="bol">OFF</button></div>
</div>
</div>
<div>
<p class="text-end Autor"> Merlo Osvaldo Matias</p>
</div>
</div>
</div>
</main>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8"
crossorigin="anonymous"
></script>
<script src="App.js"></script>
</body>
</html>