-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalculadoraSimple.html
94 lines (60 loc) · 1.91 KB
/
calculadoraSimple.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!doctype html>
<html>
<head>
<title>Calculadora Simple</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Calculadora Simple">
<meta name="keywords" content="HTML,CSS,JavaScript">
<meta name="author" content="Alvaro Mesa">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body{
background-color:cyan;
}
li{
list-style-type:none;
}
section{
background-color:white;
box-shadow:2px 2px black;
margin:2px 2px;
padding:5px 10px;
}
#calc{background-color:white;
margin:5px 5px;
}
form label {
display: flex;
}
</style>
<script src="simplecalculadora.js"></script>
</head>
<body>
<section>
<div id="calc">
<h1>Simple Calculadora Javascript</h1>
<p>Los operadores disponibles son:</p>
<ul>
<li>Sumar con +</li>
<li>Restar con -</li>
<li>Multiplicar con *</li>
<li>Dividir con /</li>
<li>El Modulus con %</li>
</ul>
<form>
<label> Primer Numero</label>
<input type="number" name="num1" id="num1">
<label> Segundo Numero</label>
<input type="number" name="num2" id="num2">
<input type="button" value=" + " id="suma"onclick='suma()'>
<input type="button" value=" - " id="resta"onclick='resta()'>
<input type="button" value=" * " id="multi"onclick='multi()'>
<input type="button" value=" / " id="dividir"onclick='dividir()'>
<input type="reset" value="cancelar">
</form>
<div id="resultado"> resultado aqui</div>
</div>
</section>
</body>
</html>