-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
41 lines (41 loc) · 1.74 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
<!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="https://fonts.googleapis.com/css2?family=Fraunces&display=swap" rel="stylesheet">
<link href="index.css" rel="stylesheet" />
<script src="Display.js" type="text/javascript"></script>
<script src="Calculadora.js" type="text/javascript"></script>
<script src="index.js" type="text/javascript" defer></script>
</head>
<body>
<div class="container">
<div class="calculadora">
<div class="display">
<div id="valor-anterior"></div>
<div id="valor-actual"></div>
</div>
<button class="btn col-2" onclick="display.borrarTodo()">C</button>
<button class="btn" onclick="display.borrar()">←</button>
<button class="operador btn" value="dividir">/</button>
<button class="numero">7</button>
<button class="numero">8</button>
<button class="numero">9</button>
<button class="operador btn" value="multiplicar">x</button>
<button class="numero">4</button>
<button class="numero">5</button>
<button class="numero">6</button>
<button class="operador btn" value="restar">-</button>
<button class="numero">1</button>
<button class="numero">2</button>
<button class="numero">3</button>
<button class="operador btn" value="sumar">+</button>
<button class="col-2 numero">0</button>
<button class="numero">.</button>
<button class="operador btn" value="igual">=</button>
</div>
</div>
</body>
</html>