-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfiguras.html
More file actions
77 lines (76 loc) · 3.26 KB
/
Copy pathfiguras.html
File metadata and controls
77 lines (76 loc) · 3.26 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!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">
<title>Calculadora | Cuso Practico de JavaScript Platzi</title>
</head>
<body onload="myOnLoad()">
<header>
<h1>
Calculadora Figuras Geometricas, Procentajes y Descuentos
</h1>
<p>Primer Taller del curso practico de JavaScript</p>
</header>
<section>
<h3>Calcula el area y el perimetro de un cuadrado</h3>
<form action="">
<label for="inputCuadrado">
Escribe cuanto miden los lados de tu Cuadrado
</label>
<input id="inputCuadrado" type="number">
<button type="button" onclick="calcularPerimetroCuadrado()">Calcula el Perimetro</button>
<button type="button" onclick="calcularAreaCuadrado()">Calcula el Area</button>
</form>
</section>
<section>
<h3>Calcula el Diametro, el area y el perimetro de un circulo</h3>
<form action="">
<label for="inputCirculo">
Escribe el Radio del circulo
</label>
<input id="inputCirculo" type="number">
<button type="button" onclick="calcularDiametroCirculo()">Calcula el Diametro</button>
<button type="button" onclick="calcularPerimetroCirculo()">Calcula el Perimetro</button>
<button type="button" onclick="calcularAreaCirculo()">Calcula el Area</button>
</form>
</section>
<section>
<h3>Calcula el area y el perimetro de un triangulo</h3>
<form action="">
<label for="inputTriangulo">
Escribe el cuanto mide el Lado 1 del triangulo
</label>
<input id="lado1" type="number">
<label for="inputTriangulo">
Escribe el cuanto mide el Lado 2 del triangulo
</label>
<input id="lado2" type="number">
<label for="inputTriangulo">
Escribe el cuanto mide la base del triangulo
</label>
<input id="base" type="number">
<button type="button" onclick="calcularPerimetroTriangulo()">Calcula el Perimetro</button>
<button type="button" onclick="calcularAreaTriangulo()">Calcula el Area</button>
</form>
</section>
<section>
<h3>Porcetajes y Descuentos</h2>
<p>Segundo Taller curso practico de JavaScript</p>
<form action="">
<p>selecciona un cupon de la lista</p>
<select name="cupon" id="selectCupon">
</select>
<label for="inputPrice">Ingresa el precio de tu producto</label>
<input type="number" id="inputPrice">
<label for="inputDiscount">si tienes un descuento especial que no figura en la lista ingresalo aqui</label>
<input type="number" id="inputDiscount">
<button type="button" onclick="precioDescuento()">Calcula el precio con descuento</button>
<p id="responsePrice"></p>
</form>
</section>
<script src="./figuras.js"></script>
<script src="./descuentos.js"></script>
</body>
</html>