-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
78 lines (64 loc) · 3.89 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html lang="pt-br">
<head>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"
integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/animate.css">
<title>Calculadora</title>
</head>
<body>
<div class="container zoomIn">
<div class="calculadora">
<h4 id="sub"></h4>
<input class="textview" id="textbox" value="0">
<table>
<tr>
<td><input class="button" type="button" value="C" onclick="clean()"></td>
<td><input class="button" type="button" value="DEL" onclick="del()"></td>
<td><input class="button" type="button" value="÷" onclick="inserirFuncao('÷')"></td>
<td><input class="button" type="button" value="x" onclick="inserirFuncao('x')"></td>
<td><input class="button" type="button" value="(" onclick="inserirNumero('(')"></td>
<td><input class="button" type="button" value=")" onclick="inserirNumero(')')"></td>
</tr>
<tr>
<td><input class="button" id="numeros" type="button" value="7" onclick="inserirNumero(7)"></td>
<td><input class="button" id="numeros" type="button" value="8" onclick="inserirNumero(8)"></td>
<td><input class="button" id="numeros" type="button" value="9" onclick="inserirNumero(9)"></td>
<td><input class="button" type="button" value="-" onclick="inserirFuncao('-')"></td>
<td><input class="button" type="button" value="√" onclick="inserirFuncao('√')"></td>
</tr>
<tr>
<td><input class="button" id="numeros" type="button" value="4" onclick="inserirNumero(4)"></td>
<td><input class="button" id="numeros" type="button" value="5" onclick="inserirNumero(5)"></td>
<td><input class="button" id="numeros" type="button" value="6" onclick="inserirNumero(6)"></td>
<td><input class="button" type="button" value="+" onclick="inserirFuncao('+')"></td>
<td><input class="button" type="button" value="n!" onclick="inserirFuncao('!')"></td>
</tr>
<tr>
<td><input class="button" id="numeros" type="button" value="1" onclick="inserirNumero(1)"></td>
<td><input class="button" id="numeros" type="button" value="2" onclick="inserirNumero(2)"></td>
<td><input class="button" id="numeros" type="button" value="3" onclick="inserirNumero(3)"></td>
<td rowspan="5"><input class="button" id="igual" type="button" value="=" onclick="equals()"></td>
</tr>
<tr>
<td><input class="button" id="zero" type="button" value="0" onclick="inserirNumero(0)"></td>
<td><input class="button" type="button" value="." onclick="inserirNumero('.')"></td>
<td><input class="button" type="button" value="x" onclick="inserirFuncao('x')"></td>
</tr>
</table>
</div>
<div class="hist">
<h1>Histórico</h1>
<table id="historico">
</table>
<input type="button" class="btnLimpar" value="Limpar" onclick="cleanHist()">
</div>
</div>
<!-- JavaScript -->
<script src="assets/js/calculator.js"></script>
<script src="assets/js/jquery.min.js"></script>
</body>
</html>