-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
223 lines (213 loc) · 13.3 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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<!-- a basic html document -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bucks Graph Generator</title>
<link rel="icon" href="money.png" />
<!-- link to chart js lib -->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<!-- link to script.js -->
<script src="script.js"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe"
crossorigin="anonymous"></script>
</head>
<body>
<!-- black bootstrap navbar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="https://dassujan.github.io/Bucks-Graph-Generator/#">Bucks Graph Generator</a>
</div>
</div>
</nav>
<!-- bootstrap tabs, with 2 tabs, first one called Data, second one called Chart -->
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" id="data-tab" data-bs-toggle="tab" data-bs-target="#data" type="button"
role="tab" aria-controls="data" aria-selected="true">Data</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="chart-tab" data-bs-toggle="tab" data-bs-target="#chart" type="button"
role="tab" aria-controls="chart" aria-selected="false">Chart</button>
</li>
</ul>
<!-- data tab content -->
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="data" role="tabpanel" aria-labelledby="data-tab">
<!-- bootstrap grid with 12 rows and 1 column for small screens, and 6 rows and 2 columns for medium screens and above,
each cell contains label of the month from January to December,
and 2 bootstrap number inputs side by side with labels, 1 for income and 1 for expenses -->
<div class="container" style="padding: 10px;">
<div class="row">
<div class="col-sm-12 col-md-6">
<label for="january" class="fw-bold">January</label>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1">Income</span>
<input type="number" class="form-control" id="januaryIncome" placeholder="Income"
aria-label="Income" aria-describedby="basic-addon1" />
<span class="input-group-text" id="basic-addon1">Expenses</span>
<input type="number" class="form-control" id="januaryExpenses" placeholder="Expenses"
aria-label="Expenses" aria-describedby="basic-addon1" />
</div>
</div>
<div class="col-sm-12 col-md-6">
<label for="february" class="fw-bold">February</label>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1">Income</span>
<input type="number" class="form-control" id="februaryIncome" placeholder="Income"
aria-label="Income" aria-describedby="basic-addon1" />
<span class="input-group-text" id="basic-addon1">Expenses</span>
<input type="number" class="form-control" id="februaryExpenses" placeholder="Expenses"
aria-label="Expenses" aria-describedby="basic-addon1" />
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-6">
<label for="march" class="fw-bold">March</label>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1">Income</span>
<input type="number" class="form-control" id="marchIncome" placeholder="Income"
aria-label="Income" aria-describedby="basic-addon1" />
<span class="input-group-text" id="basic-addon1">Expenses</span>
<input type="number" class="form-control" id="marchExpenses" placeholder="Expenses"
aria-label="Expenses" aria-describedby="basic-addon1" />
</div>
</div>
<div class="col-sm-12 col-md-6">
<label for="april" class="fw-bold">April</label>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1">Income</span>
<input type="number" class="form-control" id="aprilIncome" placeholder="Income"
aria-label="Income" aria-describedby="basic-addon1" />
<span class="input-group-text" id="basic-addon1">Expenses</span>
<input type="number" class="form-control" id="aprilExpenses" placeholder="Expenses"
aria-label="Expenses" aria-describedby="basic-addon1" />
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-6">
<label for="may" class="fw-bold">May</label>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1">Income</span>
<input type="number" class="form-control" id="mayIncome" placeholder="Income"
aria-label="Income" aria-describedby="basic-addon1" />
<span class="input-group-text" id="basic-addon1">Expenses</span>
<input type="number" class="form-control" id="mayExpenses" placeholder="Expenses"
aria-label="Expenses" aria-describedby="basic-addon1" />
</div>
</div>
<div class="col-sm-12 col-md-6">
<label for="june" class="fw-bold">June</label>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1">Income</span>
<input type="number" class="form-control" id="juneIncome" placeholder="Income"
aria-label="Income" aria-describedby="basic-addon1" />
<span class="input-group-text" id="basic-addon1">Expenses</span>
<input type="number" class="form-control" id="juneExpenses" placeholder="Expenses"
aria-label="Expenses" aria-describedby="basic-addon1" />
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-6">
<label for="july" class="fw-bold">July</label>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1">Income</span>
<input type="number" class="form-control" id="julyIncome" placeholder="Income"
aria-label="Income" aria-describedby="basic-addon1" />
<span class="input-group-text" id="basic-addon1">Expenses</span>
<input type="number" class="form-control" id="julyExpenses" placeholder="Expenses"
aria-label="Expenses" aria-describedby="basic-addon1" />
</div>
</div>
<div class="col-sm-12 col-md-6">
<label for="august" class="fw-bold">August</label>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1">Income</span>
<input type="number" class="form-control" id="augustIncome" placeholder="Income"
aria-label="Income" aria-describedby="basic-addon1" />
<span class="input-group-text" id="basic-addon1">Expenses</span>
<input type="number" class="form-control" id="augustExpenses" placeholder="Expenses"
aria-label="Expenses" aria-describedby="basic-addon1" />
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-6">
<label for="september" class="fw-bold">September</label>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1">Income</span>
<input type="number" class="form-control" id="septemberIncome" placeholder="Income"
aria-label="Income" aria-describedby="basic-addon1" />
<span class="input-group-text" id="basic-addon1">Expenses</span>
<input type="number" class="form-control" id="septemberExpenses" placeholder="Expenses"
aria-label="Expenses" aria-describedby="basic-addon1" />
</div>
</div>
<div class="col-sm-12 col-md-6">
<label for="october" class="fw-bold">October</label>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1">Income</span>
<input type="number" class="form-control" id="octoberIncome" placeholder="Income"
aria-label="Income" aria-describedby="basic-addon1" />
<span class="input-group-text" id="basic-addon1">Expenses</span>
<input type="number" class="form-control" id="octoberExpenses" placeholder="Expenses"
aria-label="Expenses" aria-describedby="basic-addon1" />
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-6">
<label for="november" class="fw-bold">November</label>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1">Income</span>
<input type="number" class="form-control" id="novemberIncome" placeholder="Income"
aria-label="Income" aria-describedby="basic-addon1" />
<span class="input-group-text" id="basic-addon1">Expenses</span>
<input type="number" class="form-control" id="novemberExpenses" placeholder="Expenses"
aria-label="Expenses" aria-describedby="basic-addon1" />
</div>
</div>
<div class="col-sm-12 col-md-6">
<label for="december" class="fw-bold">December</label>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1">Income</span>
<input type="number" class="form-control" id="decemberIncome" placeholder="Income"
aria-label="Income" aria-describedby="basic-addon1" />
<span class="input-group-text" id="basic-addon1">Expenses</span>
<input type="number" class="form-control" id="decemberExpenses" placeholder="Expenses"
aria-label="Expenses" aria-describedby="basic-addon1" />
</div>
</div>
</div>
</div>
</div>
</div>
<!-- chart tab content -->
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade" id="chart" role="tabpanel" aria-labelledby="chart-tab">
<!-- bootstrap button with label "Download" -->
<div class="container" style="padding: 10px;">
<div class="row">
<div class="col-sm-12 col-md-6">
<button type="button" class="btn btn-outline-primary" id="download">Download</button>
</div>
</div>
</div>
<!-- chart js bar chart -->
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-6">
<canvas id="myChart" width="400" height="400"></canvas>
</div>
</div>
</div>
</div>
</div>
</body>
</html>