-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
147 lines (138 loc) · 4.32 KB
/
index.html
File metadata and controls
147 lines (138 loc) · 4.32 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Planificador de Procesos</title>
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<header>
<h1>Planificador de Procesos</h1>
</header>
<main>
<section aria-labelledby="form-heading">
<h2 id="form-heading">Agregar Nuevo Proceso</h2>
<form id="addProcessForm">
<div>
<label for="processName">Nombre del Proceso:</label>
<input type="text" id="processName" name="processName" required />
</div>
<div>
<label for="processTime">Tiempo de Ejecución:</label>
<input
type="number"
id="processTime"
name="processTime"
min="1"
required
/>
</div>
<div>
<label for="processPriority">Prioridad:</label>
<input
type="number"
id="processPriority"
name="processPriority"
min="1"
required
/>
</div>
<button type="submit" id="addButton">Agregar Proceso</button>
<button type="button" id="clearButton">Limpiar Todo</button>
</form>
<!-- Modal para editar proceso -->
<div
id="editModal"
style="
display: none;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.4);
z-index: 1000;
align-items: center;
justify-content: center;
"
>
<div
style="
background: #fff;
padding: 2rem;
border-radius: 8px;
max-width: 350px;
margin: auto;
position: relative;
"
>
<h3>Editar Proceso</h3>
<form id="editProcessForm">
<div>
<label for="editName">Nombre:</label>
<input type="text" id="editName" required />
</div>
<div>
<label for="editTime">Tiempo:</label>
<input type="number" id="editTime" min="1" required />
</div>
<div>
<label for="editPriority">Prioridad:</label>
<input type="number" id="editPriority" min="1" required />
</div>
<input type="hidden" id="editIndex" />
<button type="submit">Guardar Cambios</button>
<button type="button" id="closeModal">Cancelar</button>
</form>
</div>
</div>
</section>
<hr />
<section aria-labelledby="summary-heading">
<h2 id="summary-heading">Resumen de Procesos</h2>
<div class="table-container">
<table id="processTable">
<thead>
<tr>
<th>Nombre</th>
<th>Tiempo</th>
<th>Prioridad</th>
<th>Acciones</th>
</tr>
</thead>
<tbody>
<!-- Las filas de procesos se insertarán aquí -->
</tbody>
</table>
</div>
</section>
<hr />
<section aria-labelledby="scheduling-heading">
<h2 id="scheduling-heading">Ejecutar Planificación</h2>
<div class="scheduling-controls">
<button id="calculateAllButton">
Calcular Planificaciones (FCFS, SJF, Prioridad)
</button>
</div>
<div class="rr-controls">
<h3>Round Robin</h3>
<label for="quantumInput">Quantum:</label>
<input type="number" id="quantumInput" min="1" />
<button id="rrButton">Calcular/Recalcular RR</button>
</div>
</section>
<hr />
<section aria-labelledby="results-heading">
<h2 id="results-heading">Resultados de la Planificación</h2>
<div id="resultsOutput">
<p>Seleccione un algoritmo para ver los resultados.</p>
</div>
</section>
</main>
<footer>
<p>Aplicación de Planificación de Procesos</p>
</footer>
<script src="js/main.js"></script>
</body>
</html>