forked from AdamBoley/Jan-2023-Hackathon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
315 lines (240 loc) · 14.9 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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="assets/style.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script>
<title>Penny Smart</title>
</head>
<body id="index-body">
<div class="container" id="main-container">
<header>
<div class="nav-bar">
<a href="index.html">
<img class="logo" src="assets/images/hack23-logo.png" alt="logo">
</a>
</div>
</header>
<div class="slogan col s12 l4">
Penny away each and every day.
</div>
<!-- progress bar -->
<div class="progress" >
<div class="determinate blue" id="progress-bar" style="width: 0%;">Progress</div>
</div>
<div class="form-outer">
<div class="form">
<!-- first question / amount -->
<div class="page" id="question1-amount">
<div class="field">
<div class="label">
How much would you like to save?
</div>
<input type="number" id="amount" name="amount" placeholder="Please Enter Amount" aria-label="amount" required>
</div>
<!-- first button triggers JS to store value and display next question -->
<div class="field btns">
<button id="amount-function">Next</button>
</div>
</div>
<!-- second question / time -->
<div class="page" id="question2-time">
<div class="field">
<div class="label">How many weeks do you have?</div>
<input type="number" id="time" name="time" placeholder="Please enter number of weeks" aria-label="time" required>
</div>
<div class="field btns">
<button class="next-1 next" id="time-function">Next</button>
</div>
</div>
<!-- third question / smoking habits smoking habits per pack of cigarettes -->
<div class="page" id="question3-smoke">
<div class="field">
<div>
<div id="smoke-yes-no-div">
<div class="label">
Do you smoke?
</div>
<input type="radio" name="smoke-radio" value="yes" id="smoke-yes">
<label for="smoke-yes">Yes</label>
<input type="radio" name="smoke-radio" value="no" id="smoke-no">
<label for="smoke-no">No</label>
<div class="field btns">
<button class="next-2 next" id="smoke-yes-no">Next</button>
</div>
</div>
<div id="smoke-amount-div">
<div>How many packs per week?</div>
<input type="radio" name="smoke-amount" value="1" id="1-pack-per-week">
<label for="1-pack-per-week">1 pack per week</label>
<input type="radio" name="smoke-amount" value="2" id="2-pack-per-week">
<label for="2-pack-per-week">2 packs per week</label>
<input type="radio" name="smoke-amount" value="3" id="3-pack-per-week">
<label for="3-pack-per-week">3 packs per week</label>
<input type="radio" name="smoke-amount" value="4" id="4-pack-per-week">
<label for="4-pack-per-week">4 packs per week</label>
<div class="field btns">
<button class="next-2 next" id="smoke-amount-button">Next</button>
</div>
</div>
</div>
</div>
</div>
<!-- fourth question / drinking habits -->
<div class="page" id="question4-alcohol">
<div class="field">
<div class="question-four">
<div id="alcohol-yes-no-div">
<div class="label">
Do you drink alcohol?
</div>
<input type="radio" name="alcohol-radio" value="yes" id="alcohol-yes">
<label for="alcohol-yes">Yes</label>
<input type="radio" name="alcohol-radio" value="no" id="alcohol-no">
<label for="alcohol-no">No</label>
<div class="field btns">
<button class="next-3 next" id="alcohol-yes-no">Next</button>
</div>
</div>
<div id="alcohol-amount-div">
<div class="label">How many drinks per week? Select the number that best applies</div>
<input type="radio" name="alcohol-amount" value="5" id="5">
<label for="5">5</label>
<input type="radio" name="alcohol-amount" value="10" id="10">
<label for="10">10</label>
<input type="radio" name="alcohol-amount" value="15" id="15">
<label for="15">15</label>
<input type="radio" name="alcohol-amount" value="20" id="20">
<label for="20">20</label>
<div class="field btns">
<button class="next-3 next" id="alcohol-amount-button">Next</button>
</div>
</div>
</div>
</div>
</div>
<!-- fifth question / coffee habits per drink -->
<div class="page" id="question5-coffee">
<div class="field">
<div class="question-five">
<div id="coffee-yes-no-div">
<div class="label">
Do you buy coffee?
</div>
<input type="radio" name="coffee-radio" value="yes" id="coffee-yes">
<label for="coffee-yes">Yes</label>
<input type="radio" name="coffee-radio" value="no" id="coffee-no">
<label for="coffee-no">No</label>
<div class="field btns">
<button class="next-4 next" id="coffee-yes-no">Next</button>
</div>
</div>
<div id="coffee-amount-div">
<div class="label">How many per day?</div>
<input type="radio" name="coffee-amount" value="7" id="coffee-once">
<label for="coffee-once">Once a day</label>
<input type="radio" name="coffee-amount" value="14" id="coffee-twice">
<label for="coffee-twice">Twice per day</label>
<input type="radio" name="coffee-amount" value="21" id="coffee-three">
<label for="coffee-three">Three times per day</label>
<input type="radio" name="coffee-amount" value="28" id="coffee-four">
<label for="coffee-four">Four times per day</label>
<div class="field btns">
<button class="next-4 next" id="coffee-amount-button">Next</button>
</div>
</div>
</div>
</div>
</div>
<!-- sixth question / clothes shopping -->
<div class="page" id="question6-clothes">
<div class="field">
<div class="question-six">
<div id="clothes-yes-no-div">
<div class="label">
Do you go clothes shopping?
</div>
<input type="radio" name="clothes-radio" value="yes" id="clothes-yes">
<label for="clothes-yes">Yes</label>
<input type="radio" name="clothes-radio" value="no" id="clothes-no">
<label for="clothes-no">No</label>
<div class="field btns">
<button class="next-5 next" id="clothes-yes-no">Next</button>
</div>
</div>
<div id="clothes-amount-div">
<div class="label">How much do you spend per month? Select the option that best applies</div>
<input type="radio" name="clothes-amount" value="12.5" id="50">
<label for="50">£50 a month</label>
<input type="radio" name="clothes-amount" value="25" id="100">
<label for="100">£100 a month</label>
<input type="radio" name="clothes-amount" value="37.5" id="150">
<label for="150">£150 a month</label>
<input type="radio" name="clothes-amount" value="50" id="200">
<label for="200">£200 a month</label>
<div class="field btns">
<button class="next-5 next" id="clothes-amount-button">Next</button>
</div>
</div>
</div>
</div>
</div>
<!-- seventh question / lottery ticket purchases -->
<div class="page" id="question7-lottery">
<div class="field">
<div class="question-seven">
<div id="lottery-yes-no-div">
<div class="label">
Do you play the lottery?
</div>
<input type="radio" name="lottery-radio" value="yes" id="lottery-yes">
<label for="lottery-yes">Yes</label>
<input type="radio" name="lottery-radio" value="no" id="lottery-no">
<label for="lottery-no">No</label>
<div class="field btns">
<button class="next-6 next" id="lottery-yes-no">Submit</button>
</div>
</div>
<div id="lottery-amount-div">
<div class="label">How many tickets per week? Select the number that best applies</div>
<input type="radio" name="lottery-amount" value="1" id="1-ticket">
<label for="1-ticket">1 ticket</label>
<input type="radio" name="lottery-amount" value="3" id="3-tickets">
<label for="3-tickets">3 tickets</label>
<input type="radio" name="lottery-amount" value="5" id="5-tickets">
<label for="5-tickets">5 tickets</label>
<input type="radio" name="lottery-amount" value="7" id="7-tickets">
<label for="7-tickets">7 tickets</label>
<input type="radio" name="lottery-amount" value="10" id="10-tickets">
<label for="10-tickets">10 tickets</label>
<div class="field btns">
<button class="next-6 next" id="lottery-amount-button">Submit</button>
</div>
</div>
</div>
</div>
</div>
<div class="page" id="final-output">
<div class="field btns">
<button class="next-6 next" id="final-output-button">Generate savings suggestion</button>
</div>
</div>
</div>
</div>
<footer class="footer-wrapper">
<div class="team-8">
<h6>Project built by The Broke Busters</h6>
<p>January 2023 Hackathon.</p>
</div>
<div class="copyright">
© 2023 Copyright The Broke Busters
</div>
</footer>
</div>
<script type="text/javascript" src="assets/script.js"></script>
</body>
</html>