-
Notifications
You must be signed in to change notification settings - Fork 0
/
expenses.html
70 lines (61 loc) · 3.58 KB
/
expenses.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
<!DOCTYPE html>
<html data-bs-theme="light" lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>Oasis - Expense Tracker</title>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Cabin:700&display=swap">
<link rel="stylesheet" href="assets/fonts/font-awesome.min.css">
</head>
<body id="page-top" data-bs-spy="scroll" data-bs-target="#mainNav" data-bs-offset="77">
<nav class="navbar navbar-expand-md fixed-top navbar-light" id="mainNav">
<div class="container"><img src="assets/img/logo.png" width="63" height="49"><a class="navbar-brand" href="#">Oasis</a><button data-bs-toggle="collapse" class="navbar-toggler navbar-toggler-right" data-bs-target="#navbarResponsive" type="button" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation" value="Menu"><i class="fa fa-bars"></i></button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ms-auto">
<li class="nav-item nav-link"><a class="nav-link" href="/index.html">Home</a></li>
<li class="nav-item nav-link"><a class="nav-link" href="/interestcalculator.html">Interest Calculator</a></li>
<li class="nav-item nav-link"><a class="nav-link active" href="expenses.html">Expenses</a></li>
<li class="nav-item nav-link"><a class="nav-link active" href="stocks.html">STOCKS</a></li>
</ul>
</div>
</div>
</nav>
<div class="container mt-5">
<h2>Expense Tracker</h2>
<div id="calendar"></div>
<form id="expenseForm">
<div class="mb-3">
<label for="expenseCategory" class="form-label">Expense Category</label>
<select id="expenseCategory" class="form-select">
<option value="Rent">Rent</option>
<option value="Food">Food</option>
<option value="Transportation">Transportation</option>
<option value="Utilities">Utilities</option>
<option value="Subscription">Subscription</option>
<option value="Personal expenses">Personal expenses</option>
<option value="Savings, investment">Savings, investment</option>
<option value="Debt">Debt</option>
<option value="Health care">Health care</option>
<option value="Miscellaneous">Miscellaneous</option>
</select>
</div>
<div class="mb-3">
<label for="expenseAmount" class="form-label">Amount</label>
<input type="number" class="form-control" id="expenseAmount" required>
</div>
<button type="submit" class="btn btn-primary">Add Expense</button>
</form>
<h3 class="mt-4">Expenses</h3>
<ul id="expenseList"></ul>
<p id="totalExpenses"></p>
<canvas id="pieChart" width="400" height="400"></canvas>
</div>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
<script src="assets/js/bs-init.js"></script>
<script src="assets/js/grayscale.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="assets/js/expenses.js"></script>
</body>
</html>