-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
41 lines (39 loc) · 1.56 KB
/
index.html
File metadata and controls
41 lines (39 loc) · 1.56 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Finanças</title>
<link rel="stylesheet" href="./css/entradas.css">
<link rel="stylesheet" href="./css/final.css">
<link rel="stylesheet" href="./css/global.css">
<link rel="stylesheet" href="./css/saidas.css">
</head>
<body>
<h1>Finanças</h1>
<div id="vi">Valor Inicial (opcional): R$<input type="text" id="valorInicial" onchange="saveToStorage()"></div><br>
<div id="divs">
<div id=entradas>
<h2>Entradas:</h2>
<div>Valor: R$ <input type="text" id="valorEntrada"></div>
<div>Descrição: <input type="text" id="nomeEntrada"></div>
<button id="btnEntrada" onclick="addEntrada()">Adicionar</button>
</div>
<div id="saidas">
<h2>Saídas:</h2>
<div>Valor: R$ <input type="text" id="valorSaida"></div>
<div>Descrição: <input type="text" id="nomeSaida"></div>
<button id="btnSaida" onclick="addSaida()">Adicionar</button>
</div>
</div>
<div id="final">
<button id="calcular" onclick="calcular()">Calcular Dados</button>
<div id="res">Valor final: R$</div>
<div id="resEntradas" style="color: #00ff00;">Valor das entradas: R$</div>
<div id="resSaidas" style="color: #ff0000;">Valor das saídas: R$</div>
</div>
<div id="entradattxt"></div>
<div id="saidattxt"></div>
<script src="main.js"></script>
</body>
</html>