-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
60 lines (58 loc) · 3.63 KB
/
index.html
File metadata and controls
60 lines (58 loc) · 3.63 KB
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
<!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">
<link rel="stylesheet" href="/css/index.css">
<title>Calculadora</title>
</head>
<body>
<section class="secao1">
<div id="divHistorico">
<button type="button" onclick="salvarNoHistorico()" class="botaoHistorico">Histórico</button>
<button type="button" onclick="limparHistorico()" class="botaoHistorico">Limpar Histórico</button>
<p id="historico"></p>
</div>
<div id="layoutCalculadora">
<p id="display"></p>
<div id="divBotoes">
<table>
<tr>
<td><button type="button" onclick="limpar()" id="botaoClear">C</button></td>
<td><button type="button" onclick="inserirOperacoes('√')" class="botoesOperacoes">√</button></td>
<td><button type="button" onclick="inserirOperacoes('%')" class="botoesOperacoes">%</button></td>
<td><button type="button" onclick="inserirOperacoes('ˆ')" class="botoesOperacoes">ˆ</button></td>
</tr>
<tr>
<td><button type="button" onclick="inserirNumeros(7)" class="botao">7</button></td>
<td><button type="button" onclick="inserirNumeros(8)" class="botao">8</button></td>
<td><button type="button" onclick="inserirNumeros(9)" class="botao">9</button></td>
<td><button type="button" onclick="inserirOperacoes('+')" class="botoesOperacoes">+</button></td>
</tr>
<tr>
<td><button type="button" onclick="inserirNumeros(4)" class="botao">4</button></td>
<td><button type="button" onclick="inserirNumeros(5)" class="botao">5</button></td>
<td><button type="button" onclick="inserirNumeros(6)" class="botao">6</button></td>
<td><button type="button" onclick="inserirOperacoes('-')" class="botoesOperacoes">-</button></td>
</tr>
<tr>
<td><button type="button" onclick="inserirNumeros(1)" class="botao">1</button></td>
<td><button type="button" onclick="inserirNumeros(2)" class="botao">2</button></td>
<td><button type="button" onclick="inserirNumeros(3)" class="botao">3</button></td>
<td><button type="button" onclick="inserirOperacoes('x')" class="botoesOperacoes">x</button></td>
</tr>
<tr>
<td><button type="button" onclick="inserirNumeros(0)" class="botao">0</button></td>
<td><button type="button" onclick="inserirNumeros('.')" class="botao">.</button></td>
<td><button type="button" onclick="calcula()" class="botao">=</button></td>
<td><button type="button" onclick="inserirOperacoes('÷')" class="botoesOperacoes">÷</button></td>
</tr>
</table>
</div>
</div>
</section>
<script src="/index.js"></script>
<script src="/testes.js"></script>
</body>
</html>