-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
61 lines (53 loc) · 2.11 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
<!DOCTYPE html>
<html lang="pt-Br">
<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="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="style.css">
<script src="script.js" defer></script>
<title>Calculadora</title>
</head>
<body>
<div class="container">
<div class="calculator">
<table>
<tr>
<td colspan="4">
<input type="text" id="display" readonly>
</td>
</tr>
<tr>
<td><button class="calculatorButtons" id="cleanDisplay" value="C">C</td>
<td><button class="calculatorButtons" id="deleteDigit" value="CE">CE</td>
<td><button class="calculatorButtons" id="division" value="/">÷</td>
<td><button class="calculatorButtons" id="multiplication" value="*">×</td>
</tr>
<tr>
<td><button class="calculatorButtons" id="num7" value="7">7</td>
<td><button class="calculatorButtons" id="num8" value="8">8</td>
<td><button class="calculatorButtons" id="num9" value="9">9</td>
<td><button class="calculatorButtons" id="subtraction" value="-">-</td>
</tr>
<tr>
<td><button class="calculatorButtons" id="num4" value="4">4</td>
<td><button class="calculatorButtons" id="num5" value="5">5</td>
<td><button class="calculatorButtons" id="num6" value="6">6</td>
<td><button class="calculatorButtons" id="sum" value="+">+</td>
</tr>
<tr>
<td><button class="calculatorButtons" id="num1" value="1">1</td>
<td><button class="calculatorButtons" id="num2" value="2">2</td>
<td><button class="calculatorButtons" id="num3" value="3">3</td>
<td rowspan="2"><button class="calculatorButtons" id="result" value="=">=</td>
</tr>
<tr>
<td colspan="2"><button class="calculatorButtons" id="num0" value="0">0</td>
<td><button class="calculatorButtons" id="point" value=".">.</td>
</tr>
</table>
</div>
</div>
</body>
</html>