-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (41 loc) · 1.62 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Wallet Wisdom: Expense Analysis</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1 id="heading">Expense Analysis</h1>
<div>
<div class="centerDiv">
<input id="valueInput" class="centerInput" type="text" >
</div>
<div class="centerDiv">
<div>
<button class="incomeButton" type="submit" onclick="addTotalIncome(parseFloat(valueInput.value))">Income</button>
<div class="centerDiv">
<p id="incomeTotal" class="displayValue" style="color: #6A9C89;">Income: 0</p>
</div>
</div>
<div>
<!-- <input> has value property but not <p>-->
<!-- valueInput.value is a string -->
<button class="expenseButton" type="submit" onclick="addTotalExpense(parseFloat(valueInput.value))">Expense</button>
<div class="centerDiv">
<p id="expenseTotal" class="displayValue" style="color: #CD5C08;">Expense: 0</p>
</div>
</div>
</div>
<div class="centerDiv">
<button type="submit" class="analyzeButton" onclick="analyze()">Analyze</button>
<button class="resetButton" onclick="reset()">Reset</button>
</div>
<div class="centerDiv">
<h3 id="result"></h3>
</div>
</div>
<script src="app.js"></script>
</body>
</html>