-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
150 lines (148 loc) · 4.55 KB
/
index.html
File metadata and controls
150 lines (148 loc) · 4.55 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!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>Figuras Geometrícas</title>
<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=Roboto:wght@500&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="./css/styles.css" />
<link
rel="apple-touch-icon"
sizes="57x57"
href=".favicon/apple-icon-57x57.png"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href=".favicon/apple-icon-60x60.png"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href=".favicon/apple-icon-72x72.png"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href=".favicon/apple-icon-76x76.png"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="favicon/apple-icon-114x114.png"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="favicon/apple-icon-120x120.png"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="favicon/apple-icon-144x144.png"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="favicon/apple-icon-152x152.png"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="favicon/apple-icon-180x180.png"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="favicon/android-icon-192x192.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="favicon/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="favicon/favicon-96x96.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="favicon/favicon-16x16.png"
/>
<link rel="manifest" href="favicon/manifest.json" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="favicon/ms-icon-144x144.png"
/>
<meta name="theme-color" content="#ffffff" />
</head>
<body>
<main class="main">
<div class="wrapper">
<h1>Cálcula el area de las figuras geométricas</h1>
<div class="main-content">
<section class="section-content">
<h2>Cuadrado</h2>
<form class="form" action="">
<label for="input-square">Escribe cuanto mide el lado:</label>
<input required min="1" id="input-square" type="number" />
<button type="button" onclick="calculateAreaOfSquare()">
Calcular Área
</button>
<button type="button" onclick="calculatePerimeterOfSquare()">
Calcular Périmetro
</button>
</form>
<p id="result-square"></p>
</section>
<section class="section-content">
<h2>Triángulo</h2>
<form class="form" action="">
<label for="side-a">Escribe cuanto mide el lado A:</label>
<input required min="1" id="side-a" type="number" />
<label for="side-b">Escribe cuanto mide el lado B:</label>
<input required min="1" id="side-b" type="number" />
<label for="base">Escribe cuanto mide la base:</label>
<input required min="1" id="base" type="number" />
<button type="button" onclick="calculateAreaOfTriangle()">
Calcular Área
</button>
<button type="button" onclick="calculatePerimeterOfTriangle()">
Calcular Périmetro
</button>
</form>
<p id="result-triangle"></p>
</section>
<section class="section-content">
<h2>Círculo</h2>
<form class="form" action="">
<label for="radio">Escribe cuanto mide el radio:</label>
<input required min="1" id="radio" type="number" />
<button type="button" onclick="calculateAreaOfCircle()">
Calcular Área
</button>
<button type="button" onclick="calculatePerimeterOfCircle()">
Calcular Périmetro
</button>
</form>
<p id="result-circle"></p>
</section>
</div>
</div>
</main>
<script src="./js/index.js"></script>
</body>
</html>