-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathindex.html
48 lines (39 loc) · 1.72 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
<!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">
<title>Calculadora</title>
<link rel="stylesheet" href="css/styles.css">
<script src="js/script.js" defer></script>
</head>
<body>
<div class="calculator">
<h1 class="container">Mi calculadora Js</h1>
<!-- log -->
<div id="log" class="container">1 + 2 + 3 + 4</div>
<!-- the input -->
<input type="number">
<!-- the buttons -->
<div class="calculator-buttons">
<button id="button-clear" class="calc-button is-clear">C</button>
<button id="button-divide" class="calc-button">÷</button>
<button id="button-7" class="calc-button">7</button>
<button id="button-8" class="calc-button">8</button>
<button id="button-9" class="calc-button">9</button>
<button id="button-times" class="calc-button">×</button>
<button id="button-4" class="calc-button">4</button>
<button id="button-5" class="calc-button">5</button>
<button id="button-6" class="calc-button">6</button>
<button id="button-minus" class="calc-button">−</button>
<button id="button-1" class="calc-button">1</button>
<button id="button-2" class="calc-button">2</button>
<button id="button-3" class="calc-button">3</button>
<button id="button-plus" class="calc-button">+</button>
<button id="button-0" class="calc-button is-zero">0</button>
<button id="button-equals" class="calc-button is-equals">=</button>
</div>
</div>
</body>
</html>