-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (50 loc) · 2.09 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calculadora</title>
<link href="index.css" rel="stylesheet" />
</head>
<body>
<div class="container">
<div class="row">
<div class="col-6">
<div class="calculadora">
<div class="display">
<div id="valor-anterior"></div>
<div id="valor-actual"></div>
</div>
<button class="" onclick="display.borrarTodo()">C</button>
<button class="" onclick="display.borrarHistorial()">AC</button> <!--que este sea tu borrar todo -->
<button onclick="display.borrar()">←</button>
<button class="operador" value="dividir">%</button>
<button class="numero">7</button>
<button class="numero">8</button>
<button class="numero">9</button>
<button class="operador" value="multiplicar">X</button>
<button class="numero">4</button>
<button class="numero">5</button>
<button class="numero">6</button>
<button class="operador" value="restar">-</button>
<button class="numero">1</button>
<button class="numero">2</button>
<button class="numero">3</button>
<button class="operador" value="sumar">+</button>
<button class="col-2 numero">0</button>
<button class="numero">.</button>
<button class="operador" value="igual">=</button>
</div>
</div>
<div class="col-6">
<h4 class="result">Resultado: </h4>
<ul id="list">
</ul>
</div>
</div>
</div>
<script src="Display.js"></script>
<script src="Calculadora.js"></script>
<script src="index.js"></script>
</body>
</html>