-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
136 lines (132 loc) · 4.22 KB
/
index.html
File metadata and controls
136 lines (132 loc) · 4.22 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Wallet App</title>
<link rel="icon" href="./monthly.jpg" type="image/x-icon" />
<!-- sweetalert -->
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<!-- alert -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/notyf@3/notyf.min.css"
/>
<script src="https://cdn.jsdelivr.net/npm/notyf@3/notyf.min.js"></script>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="./style.css" />
<!-- font awesome cdn -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
</head>
<body>
<header class="text-warning text-center display-5 my-4">
Monthly Expense Tracking
</header>
<main class="container" style="max-width: 800px">
<form class="d-flex gap-2">
<input
type="number"
class="form-control"
min="0"
id="gelir"
autofocus
required
placeholder="Enter your income."
/>
<button type="submit" id="submit" class="btn btn-warning">Add</button>
</form>
<form class="row g-3 p-3 mt-4 border rounded-4 m-0">
<h1 class="text-center">Expenditure form</h1>
<div class="mb-3 col-md-6">
<label for="harcama" class="form-label">Spending Field</label>
<input
type="text"
placeholder="Shopping Bill GYM"
class="form-control"
id="harcama"
required
/>
</div>
<div class="mb-3 col-md-6">
<label for="exampleInputPassword1" class="form-label">
Last payment date
</label>
<input type="date" class="form-control" id="tarihInput" required />
</div>
<div class="mb-3 col-md-12">
<label for="harcamaMiktar" class="form-label">Spent Amount</label>
<input
type="number"
placeholder="1000₺"
class="form-control"
id="harcamaMiktar"
required
/>
</div>
<div class="col-12 text-center">
<button type="submit" id="saveBtn" class="btn btn-warning">
Save
</button>
</div>
</form>
<div class="table-responsive">
<table
class="table table-primary tb1 table-striped table-hover table-bordered text-center mt-4"
>
<thead>
<tr>
<th scope="col" class="w-50">Spending Field</th>
<th scope="col">Date</th>
<th scope="col" class="w-25">Amount (₺)</th>
<th scope="col">Action</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<table
class="table tb2 table-primary table-bordered table-hover table-striped mt-4 text-center w-50 ms-auto"
>
<tbody class="text-end">
<tr>
<th>Your income:</th>
<td id="geliriniz"></td>
</tr>
<tr>
<th>Your Expenses:</th>
<td id="gideriniz"></td>
</tr>
<tr>
<th>Remaining:</th>
<td id="kalan"></td>
</tr>
</tbody>
</table>
<div class="d-flex pt-5">
<button
id="clearAll"
class="btn btn-warning ms-auto mx-auto justify-content-center"
>
Clear all
</button>
</div>
</main>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"
></script>
<script src="./script.js"></script>
</body>
</html>