-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaller3.html
More file actions
78 lines (76 loc) · 2.94 KB
/
taller3.html
File metadata and controls
78 lines (76 loc) · 2.94 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
<!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>Taller #3 | Media, Moda y Mediana en números enteros</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=Poppins:wght@200;400;500;700&display=swap"
rel="stylesheet"
/>
<link href="./assets/css/index.css" rel="stylesheet" type="text/css" />
</head>
<body>
<nav class="figuras-nav">
<a href="./index.html">Inicio</a>
<ul>
<li>
<a href="./figuras.html"> Taller #1</a>
</li>
<li>
<a href="descuentos.html"> Taller #2</a>
</li>
<li>
<a href="taller4.html"> Taller #4</a>
</li>
</ul>
</nav>
<header class="title">
<h1>Media, Moda y Mediana</h1>
<p>Este es el tercer taller del Curso práctico de JavaScript</p>
</header>
<div class="container-tallerTresCuatro">
<section class="item-taller3">
<img src="./assets/images/add.png" alt="Imagen de cuadrado" height="100"></img>
<h2>Agregar</h2>
<form >
<label for="InputValorLista">Ingrese un valor a la lista:</label>
<input id="InputValorLista" type="number" />
<button class="primary-button" type="button" onclick="addValue()">Agregar a la lista</button>
</form>
<p id="resultValue"></p>
</section>
<section class="item-list">
<h2>Lista de Valores cargados</h2>
<ul id="list-values" >
</ul>
<button class="primary-button" type="button" onclick="limpiarLista()"> Limpiar lista</button>
</section>
<section class="item-taller3">
<img src="./assets/images/delete-file.png" alt="Imagen de cuadrado" height="100"></img>
<h2>Eliminar</h2>
<form >
<label for="InputDelete">Ingresa la <strong>posición</strong>:</label>
<input id="InputDelete" type="number" />
<button class="primary-button" type="button" onclick="deleteValue()">Eliminar</button>
</form>
<p id="resultValueDelete"></p>
</section>
<section class="item-calcular" >
<p id="resultCalcular"></p>
<div class="calcular-buttons">
<button class="primary-button" type="button" onclick="calcularPromedio()">Calcular promedio</button>
<button class="primary-button" type="button" onclick="ejecutaCalcularModa()">Calcular moda</button>
<button class="primary-button" type="button" onclick="ejecutaCalcularMediana()">Calcular mediana</button>
</div>
</section>
</div>
<footer>
<p>Rabi León - Developer</p>
</footer>
<script src="./assets/js/taller3.js"/></script>
</body>
</html>