-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
108 lines (104 loc) · 2.92 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
<!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" />
<link rel="stylesheet" href="index.css" />
<script
src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"
type="text/javascript"
></script>
<script
src="https://plentz.github.io/jquery-maskmoney/javascripts/jquery.maskMoney.min.js"
type="text/javascript"
></script>
<title>Document</title>
</head>
<body>
<div class="principal">
<h1>Simulador de juros compostos com aumento anual nos aportes</h1><br>
<label for="initial-value-input">
Valor inicial
<div>
<h4>R$</h4>
<input type="text" id="initial-value-input" placeholder="R$ 0,00" />
</div>
</label>
<br>
<label for="capital-injection-input">
Aportes mensais
<div>
<h4>R$</h4>
<input
type="text"
id="capital-injection-input"
placeholder="R$ 0,00"
/>
</div>
</label>
<br>
<label for="growth-rate-input">
Taxa de crescimento anual de aportes
<div>
<h4 style="font-size:18px;">%</h4>
<input type="text" id="growth-rate-input" placeholder="0%" />
</div>
</label>
<br>
<select name="results-interval" id="results-interval">
<option value="invalid" selected disabled>
Escolha um período para seu cálculo
</option>
<option value="yearly">Anual</option>
<option value="monthly">Mensal</option>
</select>
<br><br>
<label for="interest-rate-input">
<span class="interest-span">Taxa de juros</span>
<div>
<h4 style="font-size:18px;">%</h4>
<input type="text" id="interest-rate-input" placeholder="0%" />
</div>
</label>
<br>
<label for="total-period-input">
<span class="period-span">Tempo de investimento</span>
<input
type="number"
id="total-period-input"
onkeypress="return event.charCode >= 48" min="0"
placeholder="duração do investimento"
/>
</label>
<br>
<div class="buttons">
<button type="submit" id="calculate-button">CALCULAR</button>
<button type="reset" id="clean-button">LIMPAR</button>
</div>
<br>
<div class="results">
<div>
<h3>VALOR TOTAL FINAL</h3>
<div id="total-result"></div>
</div>
</div>
<br>
<div class="results">
<div>
<h3>VALOR TOTAL INVESTIDO</h3>
<div id="total-invested"></div>
</div>
</div>
<br>
<div class="results">
<div>
<h3>TOTAL EM JUROS</h3>
<div id="total-interests"></div>
</div>
</div>
<br>
</div>
<script src="index.js" type="module"></script>
</body>
</html>