-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
112 lines (108 loc) · 4.87 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<title>Calculadora Juros Compostos</title>
</head>
<body>
<div class="container">
<section class="content">
<h3 class="text-center">Calculadora de Juros Compostos</h3>
<hr>
<form onsubmit="return false">
<div class="row">
<div class="col-md-6">
<label class="control-label">Valor Inicial:</label>
<input class="montante form-control" type="number" placeholder="Valor inicial">
</div>
<div class="col-md-6">
<label class="control-label">Aporte Mensal:</label>
<input class="aporte form-control" type="number" placeholder="Senão, vazio">
</div>
</div>
<hr>
<div class="row">
<legend>Taxa</legend>
<div class="col-md-6">
<label class="control-label">Mensal (padrão)</label>
<input class="taxa form-control" type="number" placeholder="Taxa de juros">
</div>
<div class="col-md-6">
<label class="control-label">Ou taxa anual</label>
<input class="taxaAno form-control" type="number" placeholder="Senão, vazio">
</div>
</div>
<hr>
<div class="row">
<legend>Prazo</legend>
<div class="col-md-4">
<label class="control-label">Em meses (padrão)</label>
<input class="prazo form-control" type="number" placeholder="Meses">
</div>
<div class="col-md-4">
<label>Ou em anos</label>
<input class="prazoAno dataput form-control" type="number" placeholder="Senão, vazio">
</div>
<div class="col-md-4">
<label>Ou até data específica</label>
<input class="ateVencer dataput form-control" type="date" placeholder="Data do Vencimento">
</div>
</div>
<hr>
<div class="row">
<div class="col-md-12 text-center">
<input type="submit" class="btn btn-primary btn-block btn-lg simulaUm" value="Calcular">
</div>
</div>
</form>
<hr>
<div class="row resultados">
<div class="table-responsive">
<table class="table table-bordered table-hover table-striped table-dark">
<thead>
<tr>
<th>Aplicação inicial</th>
<th>Soma Aplicações</th>
<th>Juros totais</th>
<th>Acumulado</th>
</tr>
</thead>
<tbody>
<tr>
<td>R$ <span class="apIn">.</span></td>
<td>R$ <span class="apOut">.</span></td>
<td>R$ <span class="apJu">.</span></td>
<td>R$ <span class="apTot">.</span></td>
</tr>
</tbody>
</table>
</div>
<section>
<label class="control-label">Dados parciais e acumulados:</label>
<p></p>
<div id="printfinal" class="table-responsive">
<table class="table table-bordered table-hover table-striped table-dark">
<thead>
<tr>
<th>Mês</th>
<th>Aportes</th>
<th>Juros no mês</th>
<th>Juros total</th>
<th>Acumulado</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</section>
</div>
</section>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="js/script.js"></script>
</body>
</html>