-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
60 lines (49 loc) · 2.16 KB
/
Copy pathindex.html
File metadata and controls
60 lines (49 loc) · 2.16 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="pt-br">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Css -->
<link rel="stylesheet" type="text/css" href="css/styles.css">
<!--[if lt IE 9]>
<script src="bower_components/html5shiv/dist/html5shiv.js"></script>
<![endif]-->
<title>Calculadora</title>
</head>
<body class="">
<div>
<form action="" name="calc">
<div id="calculadora">
<input type="text" id="visor" name="visor" onkeypress="return onlynumber();">
<div id="primeira">
<input type="button" value="7" class="botao borda" onclick="botao(value)">
<input type="button" value="8" class="botao borda" onclick="botao(value)">
<input type="button" value="9" class="botao borda" onclick="botao(value)">
<input type="button" value="/" class="botao borda" onclick="botao(value)">
</div>
<div id="segunda">
<input type="button" value="4" class="botao borda" onclick="botao(value)">
<input type="button" value="5" class="botao borda" onclick="botao(value)">
<input type="button" value="6" class="botao borda" onclick="botao(value)">
<input type="button" value="*" class="botao borda" onclick="botao(value)">
</div>
<div id="terceira">
<input type="button" value="1" class="botao borda" onclick="botao(value)">
<input type="button" value="2" class="botao borda" onclick="botao(value)">
<input type="button" value="3" class="botao borda" onclick="botao(value)">
<input type="button" value="-" class="botao borda" onclick="botao(value)">
</div>
<div id="quarta">
<input type="button" value="C" class="botao borda" onclick="reset()">
<input type="button" value="0" class="botao borda" onclick="botao(value)">
<input type="button" value="=" class="botao borda" onclick="calcula()">
<input type="button" value="+" class="botao borda" onclick="botao(value)">
</div>
</div>
</form>
</div>
<!-- JavaScript -->
<script language="JavaScript" src="js/calc.js"></script>
</body>
</html>