-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (68 loc) · 2.36 KB
/
index.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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Jose Estrada">
<meta name="description" content="Simulador de préstamos">
<meta name="keywords" content="simulador, prestamos">
<link rel="stylesheet" href="prestamos.css">
<script src="prestamos.js" defer></script>
<title>Simulador de Préstamos</title>
</head>
<body>
<div id="contenedor">
<div class="header">
<h2>Solicitud de préstamo</h2>
</div>
<div name="frmPrestamo" id="frmPrestamo">
<div class="control">
<label for="nombre">Nombre: <input type="text" name="nombre" id="nombre" placeholder="nombre"></label>
</div>
<div class="control">
<label for="fecha">Fecha: <input type="date" name="fecha" id="fecha" placeholder="fecha"></label>
</div>
<div class="control">
<label for="monto">Monto: <input type="number" name="monto" id="monto" placeholder="monto" min="500"
step="500"></label>
</div>
<div class="control">
<label for="periodo">Periodo de pago:
<select name="periodo" id="periodo">
<option value="semanal">semanal</option>
<option value="quincenal">quincenal</option>
<option value="mensual">mensual</option>
</select>
</label>
</div>
<div class="control">
<label for="interes">Interés (anual): <input type="number" name="interes" id="interes" placeholder="interés"
min="5" max="100" step=".01"></label>
</div>
<div class="control">
<label for="plazo">Plazo:
<div class="radios">
<label for="mensual" class="radioContenedor">Mensual
<input type="radio" name="tipoPlazo" id="mensual" value="mensual">
<span class="circle"></span>
</label>
<label for="anual" class="radioContenedor">Anual
<input type="radio" name="tipoPlazo" id="anual" value="anual">
<span class="circle"></span>
</label>
</div>
<input type="number" name="plazo" id="plazo" min="1" max="12" step="1">
</label>
</div>
<button id="simular" onclick="simularPrestamo()">Simular préstamo</button>
</div>
</div>
<div id="contenedorTabla">
<div class="header">
<h2>Tabla de amortizaciones</h2>
</div>
<div id="amortizaciones">
</div>
</div>
</body>
</html>