-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.xhtml
346 lines (302 loc) · 12.7 KB
/
start.xhtml
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
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//w3c//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<!-- @author Rishabh Rao -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Sun Mircrosystems, Inc. | JSSATE OSUM | open-source quiz</title>
<link type="text/css" rel="stylesheet" href="./resources/quizStyle.css" />
<!-- <script type="text/javascript" src="qfv.js"></script> -->
</head>
<body ><center>
<script type="text/javascript">
function validateQuizRegistrationForm()
{
var status = true;
var teamName = document.getElementById("teamName").value;
var activationCode = document.getElementById("activationCode").value;
var userName_1 = document.getElementById("userName_1").value;
var usn_1 = document.getElementById("usn_1").value;
var email_1 = document.getElementById("email_1").value;
var mobile_1 = document.getElementById("mobile_1").value;
var userName_2 = document.getElementById("userName_2").value;
var usn_2 = document.getElementById("usn_2").value;
var email_2 = document.getElementById("email_2").value;
var mobile_2 = document.getElementById("mobile_2").value;
var msg = "Oops, we have some problems...\n\n";
if(teamName.length < 4)
{
msg += "Team name must be at least 3 characters long.\n";
status = false;
}
if(activationCode.search(/[\w\.]{8}/))
{
msg += "Activation code must be exactly 8 characters long and can contain only alphanumeric characters.\n";
status = false;
}
if(userName_1.length < 4)
{
msg += "Member 1's name must be at least 3 characters long.\n";
status = false;
}
if(usn_1.search(/1[Jj][Ss]0\d[Ii][Ss]\d{3}/))
{
msg += "Member 1's USN is not in the proper format.\n";
status = false;
}
if(email_1.search(/.+@.+\..+/))
{
msg += "Member 1's email is not in the proper format.\n";
status = false;
}
if(mobile_1.search(/\d{10}/))
{
msg += "Member 1's mobile is not in the proper format.\n";
status = false;
}
if(userName_2.length < 4)
{
msg += "Member 2's name must be at least 3 characters long.\n";
status = false;
}
if(usn_2.search(/1[Jj][Ss]0\d[Ii][Ss]\d{3}/))
{
msg += "Member 2's USN is not in the proper format.\n";
status = false;
}
if(email_2.search(/.+@.+\..+/))
{
msg += "Member 2's email is not in the proper format.\n";
status = false;
}
if(mobile_2.search(/\d{10}/))
{
msg += "Member 2's mobile is not in the proper format.\n";
status = false;
}
if(usn_1 == usn_2 && usn_1.length != 0 && usn_2.length != 0)
{
msg += "Both member 1 and member 2 cannot have the same USN!\n";
}
if(status == false)
{
alert(msg + "\n\nPlease correct the above problems and try again!");
}
return status;
}
</script>
<table border="0" width="800">
<tr>
<td><img border="0" src="./resources/quiz_title.jpg" width="800" height="225" /></td>
</tr>
<tr align="left">
<td>
<br /><h2>Welcome</h2>
<p>JSS Academy of Technical Education, Bangalore Open Source University Meetup (OSUM) (pronounced "awesome") with support from <b>Sun Microsystems, Inc.</b> presents the <b>open-source quiz</b>.</p>
<p>This quiz is designed to test your understanding of some of the open-source technologies. Take this quiz to enrich your knowledge about the world of open-source!</p>
<p>
What's more, there're loads of goodies to be won including:
<ul>
<li>First Prize: a limited-edition <b>"Innovate on OpenSolaris"</b> travel mug</li>
<li>Subsequent prizes:</li>
<ul>
<li>Sun Microsystems, Inc. pens and key-chains</li>
<li>a few limited-edition OpenSolaris wrist-bands and OSUM.SUN.COM - CHANGE (Y)OUR WORLD wrist-bands</li>
<li>NetBeans 6.5 DVDs</li>
</ul>
</ul>
<p class="important_notice">This quiz is open to all the students, who are currently studying in Information Science & Engineering branch of JSS Academy of Technical Education, Bangalore, only.</p>
<h6>As this is our first time, we're purposely conducting this quiz on a small scale. Once this quiz goes on well, we'll surely conduct another one for the whole college. Other branches, sorry, but keep an eye out for the next quiz!</h6>
</p>
<p>So, what're you waiting for? Don't miss this opportunity to be a part of the greatest revolution the world has ever seen - the open-source revolution!</p>
<br /><h2>Many Thanks</h2>
<p>We're thankful to Sun Microsystems, Inc. for giving us such a wonderful opportunity and supporting us.</p>
<p>We really thank all the Sun OSUM team members (worldwide, India and South-India region) for their support.</p>
<p>We thank Ganesh Sir and Rajesh Sir from Sun Microsystems, Inc. (Bangalore) for helping us and providing us with the prizes.</p>
<p>Further, we'd like to thank Mohamed Sanaulla Sir from National Institute of Technology, Karnataka for his support and guidance.</p>
<p>We also thank Mr. Nischal E Rao and Mr. Avinash Joshi for their support.</p>
<br /><h2>Created by...</h2>
<p><b>Rishabh Rao </b>(rishabhsrao @ gmail . com | +919886593393)</p>
<p><b>Suraj Baliga</b></p>
<p><b>Narendra G S</b></p>
<p><b>Sagar S Hirapur</b></p>
<p><b>Sharanbasava S</b></p>
<br /><h2>Special Thanks To...</h2>
<b>
<p>Karunya D S</p>
<p>Harshit Kohli</p>
<p>Abhishek K N</p>
</b>
<br /><h2>Let's get started</h2>
<p>
So, all set to get started? Alright then, all you have to do is...
<ol>
<li>Grab your friend and form a team of 2 (two) members.</li>
<li>Go to <a href="http://osum.sun.com/"><font color="#3399FF"><u>Open-Source University Meetup</u></font></a> website and register yourselves! It's a website for student developers worldwide (like you!) You can share, learn, collaraborate and innovate.</li>
<li>Next, join our <a href="http://osum.sun.com/group/jssate/"><font color="#3399FF"><u>JSSATE OSUM community</u></font></a> and post a reply to the <b>open-source quiz</b> thread proving your registration.
<p class="important_notice">Registration on the OSUM website and our college community is mandatory to qualify as a winner.</p></li>
<li>Register your details with your class rep and obtain the activation code.</li>
<li>Use the form below to register your team once again online and take the quiz.</li>
</ol>
</p>
<br /><h2>Register Yourselves</h2>
<form name="registrationForm" action="http://172.16.2.173:8080/Quiz/OSQuizLogin" method="POST" onsubmit="return (validateQuizRegistrationForm());">
<table border="0" width="800">
<tr>
<td align="right">
<p>Team Name: </p>
</td>
<td>
<input type="text" id="teamName" name="teamName" size="25" maxlength="15" />
</td>
</tr>
<tr>
<td align="right">
<p>Activation Code: </p>
</td>
<td>
<input type="text" id="activationCode" name="activationCode" size="25" maxlength="8" />
</td>
</tr>
<tr>
<td><hr /></td><td><hr /></td>
</tr>
<tr>
<td align="right">
<p>Member 1's Name: </p>
</td>
<td>
<input type="text" id="userName_1" name="userName_1" size="25" maxlength="15" />
</td>
</tr>
<tr>
<td align="right">
<p>Member 1's USN: </p>
</td>
<td>
<input type="text" id="usn_1" name="usn_1" size="25" maxlength="10" />
</td>
</tr>
<tr>
<td align="right">
<p>Member 1's Semester: </p>
</td>
<td>
<select name="sem_1">
<option>1</option> <option>3</option> <option>5</option> <option>7</option>
</select>
</td>
</tr>
<tr>
<td align="right">
<p>Member 1's Branch: </p>
</td>
<td>
<b>Information Science & Engineering</b>
</td>
</tr>
<tr>
<td align="right">
<p>Member 1's Email: </p>
</td>
<td>
<input type="text" id="email_1" name="email_1" size="25" maxlength="30" />
</td>
</tr>
<tr>
<td align="right">
<p>Member 1's Mobile: </p>
</td>
<td>
<input type="text" id="mobile_1" name="mobile_1" size="25" maxlength="10" />
</td>
</tr>
<td><hr /></td><td><hr /></td>
<tr>
<td align="right">
<p>Member 2's Name: </p>
</td>
<td>
<input type="text" id="userName_2" name="userName_2" size="25" maxlength="15" />
</td>
</tr>
<tr>
<td align="right">
<p>Member 2's USN: </p>
</td>
<td>
<input type="text" id="usn_2" name="usn_2" size="25" maxlength="10" />
</td>
</tr>
<tr>
<td align="right">
<p>Member 2's Semester: </p>
</td>
<td>
<select name="sem_2">
<option>1</option> <option>3</option> <option>5</option> <option>7</option>
</select>
</td>
</tr>
<tr>
<td align="right">
<p>Member 1's Branch: </p>
</td>
<td>
<b>Information Science & Engineering</b>
</td>
</tr>
<tr>
<td align="right">
<p>Member 2's Email: </p>
</td>
<td>
<input type="text" id="email_2" name="email_2" size="25" maxlength="30" />
</td>
</tr>
<tr>
<td align="right">
<p>Member 2's Mobile: </p>
</td>
<td>
<input type="text" id="mobile_2" name="mobile_2" size="25" maxlength="10" />
</td>
</tr>
<tr>
<td><hr /></td><td><hr /></td>
</tr>
<tr>
<td colspan="2">
<p>
Read these rules carefully before taking the quiz...<br />
<ol>
<li>The quiz will start once you press the <b>Submit</b> button below.</li>
<br /><li>You have exactly <b>15 minutes</b> to complete the quiz. Your time will start immediately when you see the question paper. When the time is up, your answers will be automatically submitted (provided JavaScript is enabled) or else you must see to it that you submit the answers before the time is up.</li>
<br /><li>Be sure you're using a JavaScript-enabled browser and you've enabled JavaScript.</li>
<br /><li>We will show a count-down timer on your screen, but do not rely on it, use your own timer/stop-watches for keeping time. Most mobile phones are equipped with a timer/stop-watch; use it.</li>
<br /><li>Right-click and <b>Copy the activation code above</b>, you'll need to enter it again on the next page.</li>
<br /><li>If you <b>submit the wrong activation code on the next page</b>, your activation code will be deactivated.</li>
<br /><li>If you submit the answers <b>after</b> the alotted time duration, you'll be disqualified.</li>
<br /><li>If the above information is found to be <b>inconsistent or wrong</b>, you'll be disqualified.</li>
<br /><li>The decision of the organizers is <b>final</b>. No further communication will be entertained.</li>
<br /><li>Do not use your browser's <b>Back</b> button (unless instructed to do so by us) or mess around with the application; your activation code <b>will</b> be deactivated.</li>
<br /><li>In case of a tie, the team that submitted the answers in the smallest amount of time, will be considered as better.</li>
<br /><li>Clicking on the <b>Submit</b> button will be deemed as your <b>acceptance</b> of our rules.</li>
</ol>
</p>
</td>
</tr>
<tr>
<td align="right">
<input type="reset" value="Clear" onClick="sayHi()"/>
</td>
<td align="left">
<input type="submit" value="Submit" />
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</center></body>
</html>