-
Notifications
You must be signed in to change notification settings - Fork 0
/
introform.html
320 lines (275 loc) · 13.9 KB
/
introform.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="./favicon.ico">
<title>PageGen</title>
<!-- Bootstrap core CSS -->
<link href="./css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="introform.css" rel="stylesheet">
</head>
<body>
<!-- modalPageGen -->
<div class="modal fade" id="modalPageGen" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="ModalCreatorsLabel">
PageGen
<small class="text-muted">A Dynamic Homepage Generator</small>
</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
PageGen automatically generates a homepage based on datafields filled in by the user.
<br>
Choose from multiple themes, and get your own homepage today!
<br>
Created with HTML5 and Bootstrap v4.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- modalCreators -->
<div class="modal fade" id="modalCreators" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="ModalCreatorsLabel">
Created By
<small class="text-muted">Two students at IIT Guwahati</small>
</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<ul class="list-group">
<li class="list-group-item list-group-item-dark">Ameya Daigavane - ameya.daigavane - 160101082</li>
<li class="list-group-item list-group-item-light">Akul Agrawal - akulagrawal - 160101085</li>
</ul>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="site-wrapper">
<div class="site-wrapper-inner">
<div class="cover-container">
<header class="masthead clearfix">
<div class="inner">
<h1 class="masthead-brand">
PageGen
</h1>
<nav class="nav nav-masthead">
<a class="nav-link active" href="#">Home</a>
<a class="nav-link" href="#" data-toggle="modal" data-target="#modalPageGen">What is PageGen?</a>
<a class="nav-link" href="#" data-toggle="modal" data-target="#modalCreators">About the Creators</a>
</nav>
</div>
</header>
<main role="main" class="inner cover">
<form action="main.html" method="POST">
<!---
<div class="row">
<div class="col">
<input id="fname" type="text" name="firstname" class="form-control" value="Ameya" placeholder="First Name" required>
</div>
<br>
<div class="col">
<input id="lname" type="text" name="lastname" class="form-control" value="Daigavane" placeholder="Last Name" required>
</div>
</div>
-->
<br>
<div class="col-md-6 offset-md-3">
<h6 class="text-center">Webmail?</h6>
<div class="input-group">
<input id="webmail" type="text" name="webmail" class="form-control text-center" placeholder="Faculty Webmail ID" aria-label="Webmail ID" aria-describedby="basic-addon2" required>
<span class="input-group-addon" id="basic-addon2">@iitg.ernet.in</span>
</div>
</div>
<br>
<div class="col-md-10 offset-md-1 text-center">
<h6>A picture, please?</h6>
<div class="form-group">
<label class="custom-file d-block">
<input data-toggle="custom-file" data-target="#imfile" type="file" name="image" accept="image" class="custom-file-input">
<span id="imfile" class="col-md-10 offset-md-1 custom-file-control custom-file-name text-muted" data-content="An image (optional)"></span>
</label>
</div>
</div>
<!---
<h6 class="text-center">Your Homepage URL</h6>
<div class="input-group">
<span class="input-group-addon" id="basic-addon3">http://shilloi.iitg.ernet.in/</span>
<input type="text" name="url" class="form-control" id="basic-url" aria-describedby="basic-addon3" required>
</div>
-->
<h6 class="text-center">Courses You're Teaching?</h6>
<div class="container text-left offset-sm-1">
<div class="row">
<div class="col-md-6">
<div class="form-check">
<label class="custom-control custom-checkbox">
<input type="checkbox" name="course1" class="custom-control-input">
<span class="custom-control-indicator"></span>
<span class="custom-control-description">CS201 - Data Structures</span>
</label>
</div>
<div class="form-check">
<label class="custom-control custom-checkbox">
<input type="checkbox" name="course2" class="custom-control-input">
<span class="custom-control-indicator"></span>
<span class="custom-control-description">CS202 - Discrete Mathematics</span>
</label>
</div>
<div class="form-check">
<label class="custom-control custom-checkbox">
<input type="checkbox" name="course3" class="custom-control-input">
<span class="custom-control-indicator"></span>
<span class="custom-control-description">CS221 - Digital Design</span>
</label>
</div>
<div class="form-check">
<label class="custom-control custom-checkbox">
<input type="checkbox" name="course4" class="custom-control-input">
<span class="custom-control-indicator"></span>
<span class="custom-control-description">CS205M - Theoretical Foundations</span>
</label>
</div>
<div class="form-check">
<label class="custom-control custom-checkbox">
<input type="checkbox" name="course5" class="custom-control-input">
<span class="custom-control-indicator"></span>
<span class="custom-control-description">CS301 - Theory of Computation</span>
</label>
</div>
</div>
<div class="col-md-6">
<div class="form-check">
<label class="custom-control custom-checkbox">
<input type="checkbox" name="course6" class="custom-control-input">
<span class="custom-control-indicator"></span>
<span class="custom-control-description">CS341 - Operating Systems</span>
</label>
</div>
<div class="form-check">
<label class="custom-control custom-checkbox">
<input type="checkbox" name="course7" class="custom-control-input">
<span class="custom-control-indicator"></span>
<span class="custom-control-description">CS343 - Data Communication</span>
</label>
</div>
<div class="form-check">
<label class="custom-control custom-checkbox">
<input type="checkbox" name="course8" class="custom-control-input">
<span class="custom-control-indicator"></span>
<span class="custom-control-description">CS322M - Digital Logic and Computer Architecture</span>
</label>
</div>
<div class="form-check">
<label class="custom-control custom-checkbox">
<input type="checkbox" name="course9" class="custom-control-input">
<span class="custom-control-indicator"></span>
<span class="custom-control-description">CS461 - Computer Graphics</span>
</label>
</div>
<div class="form-check">
<label class="custom-control custom-checkbox">
<input type="checkbox" name="course10" class="custom-control-input">
<span class="custom-control-indicator"></span>
<span class="custom-control-description">CS441M - Software Engineering</span>
</label>
</div>
</div>
</div>
</div>
<h6 class="text-center">Theme?</h6>
<div id="themesdiv" class="container text-center col-md-8">
<div class="form-check form-check-inline">
<label class="custom-control custom-radio">
<input id="theme1radio" name="theme" type="radio" value="1" class="custom-control-input" checked>
<span class="custom-control-indicator"></span>
<span class="custom-control-description"></span>
<div id="colourbox1"></div>
</label>
<label class="custom-control custom-radio">
<input id="theme2radio" name="theme" type="radio" value="2" class="custom-control-input">
<span class="custom-control-indicator"></span>
<span class="custom-control-description"></span>
<div id="colourbox2"></div>
</label>
<label class="custom-control custom-radio">
<input id="theme3radio" name="theme" type="radio" value="3" class="custom-control-input">
<span class="custom-control-indicator"></span>
<span class="custom-control-description"></span>
<div id="colourbox3"></div>
</label>
</div>
</div>
<br>
<!-- Button trigger modal -->
<div class="col-md-4 offset-md-4">
<button type="button" class="btn btn-outline-light btn-block" data-toggle="modal" data-target="#submitModal">
Go!
</button>
</div>
<!-- Modal -->
<div class="modal fade" id="submitModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="submitModalLabel">Are you sure?</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<!--- alert --->
<div id="alertbox" class="alert alert-danger collapse" role="alert">
<strong>Error!</strong> Please ensure a faculty webmail ID is entered.
</div>
Ensure all the details are filled out accurately before proceeding. <br>You will be taken to your own page on clicking 'Continue' below.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" id="closemodal" data-dismiss="modal">Close</button>
<button type="submit" class="btn btn-primary" id="submitbutton">Continue</button>
</div>
</div>
</div>
</div>
</form>
</main>
<footer class="mastfoot">
<div class="inner">
<p>You're just a click away from a new homepage!</p>
</div>
</footer>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="./jquery-3.2.1.min.js"></script>
<script src="./lodash.js"></script>
<script>window.jQuery || document.write('<script src="./jquery-3.2.1.min.js"><\/script>')</script>
<link rel="stylesheet" type="text/css" media="screen" href="./bootstrap-select-1.12.4/dist/css/bootstrap-select.min.css">
<script src="./bootstrap-select-1.12.4/dist/js/bootstrap-select.min.js"></script>
<script src="./popper.min.js"></script>
<script src="./js/bootstrap.min.js"></script>
<script src="./introform.js"></script>
</body>
</html>