-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
55 lines (53 loc) · 2.27 KB
/
index.html
File metadata and controls
55 lines (53 loc) · 2.27 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="index.css">
<title>Calculadora</title>
</head>
<body>
<table>
<!-- Display da calculadora -->
<tr>
<tr>
<td class="heading"> Calculadora Simples </td>
</tr>
<td>
<input type="text" id="input" placeholder="0" readonly ="readonly">
<input type="text" id="answer" readonly="readonly">
</td>
</tr>
<!-- Números da calculadora -->
<tr>
<td>
<input type="button" value="CE" onclick="clearScreen()" id="cee">
<input type="button" value="÷" onclick="getOperand('/')">
<input type="button" value="x" onclick="getOperand('x')">
<input type="button" value="←" onclick="backspace()" id="backspace">
</br>
<input type="button" value="7" onclick="getNumber(7)">
<input type="button" value="8" onclick="getNumber(8)">
<input type="button" value="9" onclick="getNumber(9)">
<input type="button" value="+" onclick="getOperand('+')">
</br>
<input type="button" value="4" onclick="getNumber(4)">
<input type="button" value="5" onclick="getNumber(5)">
<input type="button" value="6" onclick="getNumber(6)">
<input type="button" value="-" onclick="getOperand('-')">
</br>
<input type="button" value="1" onclick="getNumber(1)">
<input type="button" value="2" onclick="getNumber(2)">
<input type="button" value="3" onclick="getNumber(3)">
<input type="button" value="()" onclick="brackets()">
</br>
<input type="button" value="." onclick="getNumber('.')">
<input type="button" value="0" onclick="getNumber(0)">
<input type="button" value="=" onclick="compute()" id="igual">
</td>
</tr>
</table>
</body>
<script src="index.js"></script>
</html>