-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfigures.html
More file actions
121 lines (111 loc) · 3.62 KB
/
Copy pathfigures.html
File metadata and controls
121 lines (111 loc) · 3.62 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
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
<!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
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous"
/>
<script
src="https://kit.fontawesome.com/eaff5cb52e.js"
crossorigin="anonymous"
></script>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="stylesheet" href="figures.css" />
<title>Geometric figures</title>
</head>
<body>
<header>
<h1 class="title"><i class="fas fa-shapes"></i> Geometric figures</h1>
</header>
<div class="container d-flex">
<!-- SQUARE -->
<section class="">
<div class="card bg-light m-2" style="width: 26rem">
<h5>Calculate the area and perimeter of a square</h5>
<form>
<label for="squareInput">
Escribe cuanto mide cada lado de tu cuadrado:
</label>
<input id="squareInput" type="number" />
<button type="button" onclick="calculateSquarePerimeter()">
Calcula el perimetro
</button>
<button type="button" onclick="calculateSquareArea()">
Calcula el area
</button>
</form>
</div>
</section>
<!-- TRIANGLE -->
<section>
<div class="card bg-light m-2" style="width: 26rem">
<h5>Calculate the area and perimeter of a triangle</h5>
<form class="m-2">
<label for="triangleSide1Input">
Escribe cuanto miden cada lado y base de tu triangulo:
</label>
<input
id="triangleSide1Input"
type="number"
placeholder="side"
style="width: 8rem"
/>
<input
id="triangleSide2Input"
type="number"
placeholder="side"
style="width: 8rem"
/>
<input
id="triangleBaseInput"
type="number"
placeholder="base"
style="width: 8rem"
/>
<button
class=""
type="button"
onclick="calculateTrianglePerimeter()"
>
Calcula el perimetro
</button>
<!-- TRIANGLE AREA-->
<br />
<br />
<input
id="triangleHeightInput"
type="number"
placeholder="height"
/>
<input id="triangleBase2Input" type="number" placeholder="base" />
<button type="button" onclick="calculateTriangleArea()">
Calcula el area
</button>
</form>
</div>
</section>
<!-- CIRCLE -->
<section>
<div class="card bg-light m-2" style="width: 26rem">
<h5>Calculate the area and perimeter of a circle</h5>
<form>
<label for="circleInput"> Escribe el radio de tu circulo: </label>
<input id="circleInput" type="number" />
<button type="button" onclick="calculateCirclePerimeter()">
Calcula el perimetro
</button>
<button type="button" onclick="calculateCircleArea()">
Calcula el area
</button>
</form>
</div>
</section>
</div>
<script src="./figures.js"></script>
</body>
</html>