-
Notifications
You must be signed in to change notification settings - Fork 4
/
page-2.html
417 lines (320 loc) · 19.2 KB
/
page-2.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
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
<!DOCTYPE html>
<html lang="en">
<head>
<!-- CSS -->
<link rel="stylesheet" href="assets/css/page-2.css">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Montserrat&family=Rubik&family=Ubuntu&display=swap" rel="stylesheet">
<!-- Icons -->
<script src="https://use.fontawesome.com/630e118e72.js"></script>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<!-- JS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous">
</script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous">
</script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@1,300;1,400&display=swap" rel="stylesheet">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FFCC</title>
</head>
<!-- <body onload="populateDropdown()" style = "background-color: rgb(233,236,239);"> -->
<body onload="populateDropdown()" style = "background-color: #343a40;">
<!-- Navbar -->
<nav class="navbar navbar-expand-md navbar-dark bg-dark">
<!-- FFCC LOGO -->
<span class="navbar-brand"> FFCC </span>
<!-- Toggler -->
<button class='navbar-toggler' type="button" data-toggle="collapse" data-target="#navbarToggler"
aria-controls="navbarToggler" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!-- Menu -->
<div class="collapse navbar-collapse navbar-md-expand div-nav" id="navbarToggler">
<ul class="nav ml-auto ">
<li class="nav-item">
<a class="nav-link active" href="index.html">Home</a>
<!--FAQ-->
</li>
<li class="nav-item">
<a class="nav-link" href="#contact">Contact Us</a>
<!--Contact us-->
</li>
<li class="nav-item">
<a class="" href="#"><img class="codechef" src="assets/img/ccwhite.png"></a>
<!--Codechef LOGO-->
</li>
</ul>
</div>
</nav>
<div id="slot-title" class="cred-count-box sticky"><br><h6 id = "tot-cred">Total Credits</h6>
<div class="progress cred-count-bar">
<div id = "credit-bar" class="progress-bar" role="progressbar" style="width: 0.00%" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<!-- Subject Navigator -->
<br>
<div class = "container d-flex justify-content-center section1 sticky">
<a href="#subject-1" class="circle">1</a>
<a href="#subject-2" id="c2" class = "circle" style="display: none;">2</a>
<a href="#subject-3" id="c3" class = "circle" style="display: none;">3</a>
<a href="#subject-4" id="c4" class = "circle" style="display: none;">4</a>
<a href="#subject-5" id="c5" class = "circle" style="display: none;">5</a>
<a href="#subject-6" id="c6" class = "circle" style="display: none;">6</a>
<a href="#subject-7" id="c7" class = "circle" style="display: none;">7</a>
</div>
<h6 style = "font-size: smaller;">SUBJECT</h6>
</div>
<div class="container test">
<br><br><br>
<!-- Section divider 1 -->
<div class = "container d-flex justify-content-center">
<span class = "circle1">1</span>
<span class = "line"></span>
<span class = "circle2">2</span>
<span class = "line"></span>
<span class = "circle3">3</span>
</div>
<br><br>
<h1 class="slot-title2"><i class="fa fa-book"></i> Enter Your Subjects</h1>
<hr><br>
<form id="dynamicInput" class="container ffcc-form">
<!-- Subject 1 -->
<div id="subject-1">
<br><br>
<div class="input-group subject">
<select id='sub-1' onchange=getSubject1(this) class='form-control form-control-lg subjects' placeholder="Choose subject">
<option>Choose Subject 1</option>
</select>
</div>
<span class="cred">Credits: </span><span id='type-1'></span>
<br><br>
<div class="row">
<select id="s-1-pref-1" class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 1</option>
</select>
<select id="s-1-pref-2"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 2</option>
</select>
<select id="s-1-pref-3"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 3</option>
</select>
<select id="s-1-pref-4"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 4</option>
</select>
</div>
<br>
<input type="button" id="add-1" class="btn btn-success" value="Add Subject" onClick="addInput('dynamicInput');">
<input type="button" id="remove-1" class="btn btn-danger button" value="Remove Subject" onClick="removeInput();" disabled>
</div>
<!-- Subject 2 -->
<div id="subject-2" class="form-hide">
<br><br>
<br><br>
<div class="input-group subject">
<select id='sub-2' onchange=getSubject2(this) class='form-control form-control-lg subjects' placeholder="Choose subject">
<option>Choose Subject 2</option>
</select>
</div>
<span class="cred">Credits: </span><span id='type-1'></span><span id='type-2'></span><br><br>
<div class="row">
<select id="s-2-pref-1"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 1</option>
</select>
<select id="s-2-pref-2"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 2</option>
</select>
<select id="s-2-pref-3"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 3</option>
</select>
<select id="s-2-pref-4"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 4</option>
</select>
</div>
<br>
<input type="button" id="add-2" class="btn btn-success" value="Add Subject" onClick="addInput('dynamicInput');">
<input type="button" id="remove-2" class="btn btn-danger button" value="Remove Subject" onClick="removeInput();">
</div>
<!-- Subject 3 -->
<div id="subject-3" class="form-hide">
<br><br>
<div class="input-group subject">
<select id='sub-3' onchange=getSubject3(this) class='form-control form-control-lg subjects' placeholder="Choose subject">
<span class="cred">Credits: </span> <option>Choose Subject 3</option>
</select>
</div>
<span class="cred">Credits: </span><span id='type-1'></span><span id='type-3'></span><br><br>
<div class="row">
<select id="s-3-pref-1"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 1</option>
</select>
<select id="s-3-pref-2"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 2</option>
</select>
<select id="s-3-pref-3"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 3</option>
</select>
<select id="s-3-pref-4"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 4</option>
</select>
</div>
<br>
<input type="button" id="add-3" class="btn btn-success" value="Add Subject" onClick="addInput('dynamicInput');">
<input type="button" id="remove-3" class="btn btn-danger button" value="Remove Subject" onClick="removeInput();">
</div>
<!-- Subject 4 -->
<div id="subject-4" class="form-hide">
<br><br>
<div class="input-group subject">
<select id='sub-4' onchange=getSubject4(this) class='form-control form-control-lg subjects' placeholder="Choose subject">
<option>Choose Subject 4</option>
</select>
</div>
<span class="cred">Credits: </span><span id='type-1'></span><span id='type-4'></span><br><br>
<div class="row">
<select id="s-4-pref-1"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 1</option>
</select>
<select id="s-4-pref-2"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 2</option>
</select>
<select id="s-4-pref-3"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 3</option>
</select>
<select id="s-4-pref-4"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 4</option>
</select>
</div>
<br>
<input type="button" id="add-4" class="btn btn-success" value="Add Subject" onClick="addInput('dynamicInput');">
<input type="button" id="remove-4" class="btn btn-danger button" value="Remove Subject" onClick="removeInput();">
</div>
<!-- Subject 5 -->
<div id="subject-5" class="form-hide">
<br><br>
<div class="input-group subject">
<select id='sub-5' onchange=getSubject5(this) class='form-control form-control-lg subjects' placeholder="Choose subject">
<option>Choose Subject 5</option>
</select>
</div>
<span class="cred">Credits: </span><span id='type-1'></span><span id='type-5'></span><br><br>
<div class="row">
<select id="s-5-pref-1"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 1</option>
</select>
<select id="s-5-pref-2"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 2</option>
</select>
<select id="s-5-pref-3"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 3</option>
</select>
<select id="s-5-pref-4"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 4</option>
</select>
</div>
<br>
<input type="button" id="add-5" class="btn btn-success" value="Add Subject" onClick="addInput('dynamicInput');">
<input type="button" id="remove-5" class="btn btn-danger button" value="Remove Subject" onClick="removeInput();">
</div>
<!-- Subject 6 -->
<div id="subject-6" class="form-hide">
<br><br>
<div class="input-group subject">
<select id='sub-6' onchange=getSubject6(this) class='form-control form-control-lg subjects' placeholder="Choose subject">
<option>Choose Subject 6</option>
</select>
</div>
<span class="cred">Credits: </span><span id='type-1'></span><span id='type-6'></span><br><br>
<div class="row">
<select id="s-6-pref-1"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 1</option>
</select>
<select id="s-6-pref-2"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 2</option>
</select>
<select id="s-6-pref-3"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 3</option>
</select>
<select id="s-6-pref-4"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 4</option>
</select>
</div>
<br>
<input type="button" id="add-6" class="btn btn-success" value="Add Subject" onClick="addInput('dynamicInput');">
<input type="button" id="remove-6" class="btn btn-danger button" value="Remove Subject" onClick="removeInput();">
</div>
<!-- Subject 7 -->
<div id="subject-7" class="form-hide">
<br><br>
<div class="input-group subject">
<select id='sub-7' onchange=getSubject7(this) class='form-control form-control-lg subjects' placeholder="Choose subject">
<option>Choose Subject 7</option>
</select>
</div>
<span class="cred">Credits: </span><span id='type-1'></span><span id='type-7'></span><br><br>
<div class="row">
<select id="s-7-pref-1"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 1</option>
</select>
<select id="s-7-pref-2"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 2</option>
</select>
<select id="s-7-pref-3"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 3</option>
</select>
<select id="s-7-pref-4"
class="form-control preference-s-1 offset-sm-1 col-sm-10 offset-md-3 col-md-6 offset-lg-0 col-lg-3">
<option>Choose teacher preference 4</option>
</select>
</div>
<br>
<input type="button" id="add-7" class="btn btn-success" value="Add Subject" onClick="addInput('dynamicInput');">
<input type="button" id="remove-7" class="btn btn-danger button" value="Remove Subject" onClick="removeInput();">
</div>
<br><br>
<a onclick="hello_2()"><button type="submit" class="btn btn-outline-dark btn-lg">Submit</button></a>
</form>
<br>
</div>
<br>
<script src="xml.js"></script>
<script src="assets/js/page-2.js"></script>
</body>
</html>