-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfiguras.html
142 lines (109 loc) · 5.86 KB
/
figuras.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!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">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100;400;700&family=Work+Sans:ital,wght@0,100;0,400;0,700;1,700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./styles.css">
<title>Geometric Figures | Curso Práctico de Javascript en Platzi</title>
</head>
<body>
<header class="nav-bar">
<nav>
<div>
<a href="./index.html">
<img class="js" src="./icons/js.png" />
</a>
</div>
<a class="user" href="https://www.linkedin.com/in/ibrahim-gragirena-0a2a38190/" target="_blank">@IBRAGRAGIRENA</a>
</nav>
</header>
<main>
<section class="card">
<header>
<h2>Taller #2 Porcentajes y descuentos</h2>
<h1>Calcula el precio final con descuento</h1>
</header>
<!-- Square-->
<div class="taller tallerFiguras"">
<div class="square_section">
<form class="form">
<label class="label" for="inputSquare">
How long is each side of your square?
</label>
<img src="./icons/square.png" alt="square">
<input class="input" id="inputSquare" type="number"/>
<button class="primary-button" type="button" onclick="calculateSquarePerimeter()">Calculate perimeter</button>
<button class="primary-button" type="button" onclick="calculateSquareArea()">Calculate area</button>
</form>
<div class="result" id="squareResult"></div>
</div>
<!-- Circulo-->
<div class="circle_section">
<form class="form">
<label class="label" for="inputCircle">
How long is the radius of your circle?
</label>
<img src="./icons/circle.png" alt="circle">
<input class="input" id="inputCircle" type="number"/>
<button class="primary-button" type="button" onclick="calculateCirclePerimeter()">Calculate perimeter</button>
<button class="primary-button" type="button" onclick="calculateCircleArea()">Calculate area</button>
</form>
<div class="result" id="circleResult"></div>
</div>
<!-- Triangulo-->
<div class="triangle_section">
<form class="form">
<label class="label">How long are the parts of the triangle?</label>
<img src="./icons/triangle.png" alt="triangle">
<label class="label" for="inputTriangle1">
Side A
</label>
<input class="input" id="inputTriangle1" type="number"/>
<label class="label" for="inputTriangle2">
Side B
</label>
<input class="input" id="inputTriangle2" type="number"/>
<label class="label" for="inputTriangleBase">
Base
</label>
<input class="input" id="inputTriangleBase" type="number"/>
<label class="label" for="inputTriangleHeight">
Height
</label>
<input class="input" id="inputTriangleHeight" type="number"/>
<button class="primary-button" type="button" onclick="calculateTrianglePerimeter()">Calculate perimeter</button>
<button class="primary-button" type="button" onclick="calculateTriangleArea()">Calculate area</button>
</form>
<div class="result" id="triangleResult"></div>
</div>
<!-- Triangulo Isósceles-->
<div class="triangle_section">
<form class="form">
<label class="label">How long are the parts of the triangle?</label>
<img src="./icons/triangle.png" alt="triangle">
<label class="label" for="inputIsosceles1">
Side A
</label>
<input class="input" id="inputIsosceles1" type="number"/>
<label class="label" for="inputIsosceles2">
Side B
</label>
<input class="input" id="inputIsosceles2" type="number"/>
<label class="label" for="inputIsoscelesBase">
Base
</label>
<input class="input" id="inputIsoscelesBase" type="number"/>
<button class="primary-button" type="button" onclick="calculateIsoscelesHeight()">Calculate Height</button>
<div class="result" id="triangleSecondResult"></div>
</form>
</div>
</div>
</section>
</main>
<script src="./figuras.js"></script>
</body>
</html>