Repository navigation
Expand file tree
/
Copy pathtracker.html
More file actions
91 lines (88 loc) · 3.57 KB
/
Copy pathtracker.html
File metadata and controls
91 lines (88 loc) · 3.57 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Expense Tracker</title>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/form-style.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="index.html">
<img src="pics/Beth_Jacob_Jerusalem_seminary.jpg" alt="Seminary Logo" height="50">
Seminary in Israel
</a>
<div class="collapse navbar-collapse">
<ul class="navbar-nav">
<li class="nav-item"><a class="nav-link" href="index.html">Home</a></li>
<li class="nav-item"><a class="nav-link" href="transportation.html">Transportation</a></li>
<li class="nav-item"><a class="nav-link" href="tracker.html">Expense Tracker</a></li>
</ul>
</div>
</nav>
</header>
<main>
<h1>Track Your Expenses</h1>
<p>Keep a record of your expenses while studying in Israel.</p>
<section>
<div class="form-inline justify-content-center mb-3">
<label class="mr-2 font-weight-bold">Monthly Budget (ILS):</label>
<input type="number" id="budget-limit" class="form-control mr-2" placeholder="Set limit (e.g. 2000)">
<button class="btn btn-info" onclick="setBudget()">Set Budget</button>
</div>
<p id="budget-status" class="text-center font-weight-bold"></p>
</section>
<section>
<form id="expense-form">
<div class="form-group">
<label for="item-name">Item Name:</label>
<input type="text" id="item-name" class="form-control" placeholder="Enter item name">
</div>
<div class="form-group">
<label for="item-category">Category:</label>
<select id="item-category" class="form-control">
<option value="Food">Food</option>
<option value="Transportation">Transportation</option>
<option value="Shopping">Shopping</option>
<option value="Simcha/Gifts">Simcha/Gifts</option>
<option value="Other">Other</option>
</select>
</div>
<div class="form-group">
<label for="item-cost-ils">Cost (ILS):</label>
<input type="number" id="item-cost-ils" class="form-control" placeholder="Enter cost in ILS">
</div>
<div class="form-group">
<label for="item-cost-usd">Cost (USD):</label>
<input type="number" id="item-cost-usd" class="form-control" placeholder="Enter cost in USD">
</div>
<button type="button" class="btn btn-primary" onclick="addExpense()">Add Expense</button>
</form>
</section>
<section>
<h2>Your Expenses</h2>
<table class="table table-striped" id="expenses-table">
<thead>
<tr>
<th>Item Name</th>
<th>Category</th>
<th>Cost (ILS)</th>
<th>Cost (USD)</th>
<th>Action</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<p id="total-expenses" class="mt-3"></p>
</section>
</main>
<footer>
<div id="footer" class="footer"></div>
<script src="js/script.js"></script>
</footer>
</body>
</html>