-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathexam.html
More file actions
373 lines (358 loc) · 22.5 KB
/
Copy pathexam.html
File metadata and controls
373 lines (358 loc) · 22.5 KB
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
<!doctype html>
<html>
<head>
<title>Coding hub</title>
<meta name="viewport" content="width=device-width">
<meta name="charset" content="utf-8">
<link rel="icon" type="image/png" href="static/images/hub.jpg">
<link rel="apple-touch-icon" type="image/png" href="static/images/hub.jpg">
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans" rel="stylesheet">
<link href="static/css/exam.css" rel="stylesheet">
<script>
function startgame() {
/*var password = document.getElementById("password");
if (password.value != "iamcoder") {
alert("You entered wrong password");
password.value = "";
password.focus();
} else {*/
var winFeature ='location=no,toolbar=no,menubar=no,titlebar=no,scrollbars=yes,fullscreen=yes,resizable=no';
window.open('startpage.html', '_blank', winFeature);
//}
}
function startkbc(){
var winFeature ='location=no,toolbar=no,menubar=no,titlebar=no,scrollbars=yes,fullscreen=yes,resizable=no';
window.open('http://172.25.28.194:8000', '_blank', winFeature);
}
function startrelay(){
var winFeature ='location=no,toolbar=no,menubar=no,titlebar=no,scrollbars=yes,fullscreen=yes,resizable=no';
window.open('https://www.hackerrank.com/codinghubrelay', '_blank', winFeature);
}
function startans(){
/*var winFeature ='location=no,toolbar=no,menubar=no,titlebar=no,scrollbars=yes,fullscreen=yes,resizable=no';
window.open('http://172.25.28.194:8000', '_blank', winFeature);*/
}
function startdebug(){
// var winFeature ='location=no,toolbar=no,menubar=no,titlebar=no,scrollbars=yes,fullscreen=yes,resizable=no';
// window.open('https://www.hackerrank.com/ch-debugging', '_blank', winFeature);
}
</script>
<script type="text/javascript" src="static/js/exam.js"></script>
<style type="text/css">
.exams {
display: grid;
grid-gap: 3px;
position: relative;
z-index: 100;
}
.extend {
display: none;
background-color: orange;
}
.exams:hover .extend {
text-align: center;
display: grid;
position: absolute;
width: 120px;
grid-gap: 9px;
top: 30px;
left: -43px;
background: rgb(127, 255, 212);
padding: 10px;
border-radius: 5px;
}
.extend {
display: none;
background-color: rgba(76, 175, 80, 0);
transition: all .5s ease;
}
.extend::before {
content: '';
position: absolute;
top: 13px;
background-color: indianred;
margin-left: -5px;
top: -9px;
left: 45%;
}
label {
font-size: 30px;
color: #100756;
z-index: 15;
padding: 10px;
}
#password {
box-sizing: border-box;
width: auto;
height: 50px;
margin: 10px;
z-index: 15;
border: 1px solid orange;
background: -webkit-linear-gradient(left, #ecda0c 0%, #fffeff 100%);
border-radius: 40px;
font-size: 16px;
color: rgb(0, 0, 0);
padding: 0px 20px;
transition: border-color 200ms ease 0s, box-shadow 200ms ease 0s;
right: 100px;
}
#Start {
box-sizing: border-box;
height: 56px;
width: 300px;
cursor: pointer;
border: none;
text-align: center;
font-size: 18px;
background: -webkit-linear-gradient(left, #ec272d 0%, #ecda0c 100%);
font-weight: 600;
color: rgb(255, 255, 255);
line-height: 1;
border-radius: 30px;
transition: 200ms ease 0s;
}
</style>
</head>
<body>
<!--hero container-->
<div class="hero">
<div class="hero--container">
<nav>
<div class="hero--nav">
<a href="/">
<img src="static/images/hub.jpg" class="logo">
</a>
</div>
</nav>
<div class="main">
<div class="hero--heading">
<h1 class="hero--text">Techtonic 2020</h1>
<span class="tagline">Powered By Coding Hub</span>
</div>
<div id="myBtnContainer">
<ul class="list">
<li>CrossCode
<ul class="sublist">
<button class="btn shadow" onclick="filterSelection('cc1')">Word Puzzle</button>
<button class="btn shadow" onclick="filterSelection('cc2')">KBC</button>
<button class="btn shadow" onclick="filterSelection('cc3')">Design Pattern</button>
</ul>
</li>
<li>CodeBusters
<ul class="sublist">
<button class="btn shadow" onclick="filterSelection('cb1')">Jumbled Code</button>
<!-- <button class="btn shadow" onclick="filterSelection('cb2')">Debugging</button> -->
<button class="btn shadow" onclick="filterSelection('cb3')">Code-Relay</button>
</ul>
</li>
<li>YouOnWeb
<ul class="sublist">
<button class="btn shadow" onclick="filterSelection('yw1')">Round 1</button>
<button class="btn shadow" onclick="filterSelection('yw2')">Round 2</button>
</ul>
</li>
</ul>
</div>
<section class="instruction">
<h1 class="rules soon hide">
Select the game for which you have registered.
</h1>
<div class="rules cc1 hide">
<h2>Round 1:WordPuzzle Instructions</h2>
<ul>
<li><b><i>You have to be registered, using your Email-ID to play the game.</i></b></li>
<li>You will be given a 20 X 20 matrix.</li>
<li>Words are arranged vertically,horizontally,diagonally and also in reverse order.</li>
<li>You have to find the words in matrix which have been mentioned in box beside it.</li>
<li>You have to click on first letter of word then drag, until the last letter to select it.</li>
<li>You can also drag in reverse order(from last letter to first) to select it.</li>
<li>Once a word is found then it gets strike-through in the box.</li>
<li>There will be 15 minutes. Timer will start once you click start game.</li>
<li>Find all words as soon as possible.</li>
<li>Assessment will be based on time and no. of words found.</li>
<li><b>Important :</b>Guess word in puzzle have 5 bonus points if found.</li>
<li>You must mark it on puzzle before the last-word and before timer runs out,for bonus points.</li>
</ul>
<!--
<div>
<label for='password'>Enter password for playing sample wordpuzzle :
<input type='password' name='Password' id='password' placeholder="Password" required>
</label>
</div>
-->
<div class="buttonline" style="height:56px;margin-top:20px;">
<div class="buttonbox" style="height:56px;width:320px;margin: 0 auto;">
<input type="button" id="Start" value="Start Game" onclick="startgame()">
</div>
</div>
</div>
<div class="rules cc2 hide">
<h2>Round 2:KBC</h2>
<ul>
<li>This will consist of questions based on C++,Python.</li>
<li>You will have 30 min to answer all questions.</li>
<li>Multiple Choice Questions with single correct answer.</li>
<li>No, negative marking, so give it your shot.</li>
</ul>
<div class="buttonline" style="height:56px;margin-top:20px;">
<div class="buttonbox" style="height:56px;width:320px;margin: 0 auto;">
<input type="button" id="Start" value="Start KBC" onclick="startkbc()">
</div>
</div>
</div>
<div class="rules cc3 hide">
<h2>Round 3:Design Pattern</h2>
<ul>
<li>This will be offline round.</li>
<li>Instructions will be provided prior to starting the round.</li>
</ul>
</div>
<div class="rules cb1 hide">
<h2>Round 1:Jumbled Code</h2>
<ul>
<li>You have to rearrange the jumbled code.</li>
<li>This will be offline round.</li>
<li>Further Instructions will be provided prior to starting the round.</li>
</ul>
</div>
<div class="rules cb2 hide">
<!-- <h2>Round 2:Debugging</h2>
<ul>
<li>You have to debug the code containing errors and make it error free.</li>
<li>You will be directed to hackerrank for this round.</li>
<li>Instructions will be provided on the site.</li>
</ul>
<div class="buttonline" style="height:56px;margin-top:20px;">
<div class="buttonbox" style="height:56px;width:320px;margin: 0 auto;">
<input type="button" id="Start" value="Start Debugging" onclick="startdebug()">
</div>
</div> -->
</div>
<div class="rules cb3 hide">
<h2>Round 2:CodeRelay Instructions</h2>
<ul>
<li>You will be given 5 problem statements to solve.</li>
<li>Each new problem statement will be given on solving the previous problem statement.</li>
<li>There will be one Golden Egg question.</li>
<li>Participant who can solve this question do not need to solve the others.</li>
<li>If anyone solves the goldenegg question in given time limit, then he /she will be directly declared as
Winner.
</li>
<li>If no-one choose to solve the Golden Egg question,then the participant who solves most of the questions<br> among the given 5 problem statement will be declared as Winner.</li>
</ul>
<div class="buttonline" style="height:56px;margin-top:20px;">
<div class="buttonbox" style="height:56px;width:320px;margin: 0 auto;">
<input type="button" id="Start" value="Start Relay" onclick="startrelay()">
</div>
</div>
</div>
<div class="rules yw1 hide">
<h2>YouOnWeb:Round1 Instructions</h2>
<ul>
<li>You need to login with your registered email and phone number.</li>
<li>This will consist of questions from HTML,CSS,JS</li>
<li>You will have 30 min to answer all questions.</li>
<li>Type of Questions will be MCQ with single correct answer.</li>
<li>Top 15 Players will be selected based on their scores.</li>
</ul>
<div class="buttonline" style="height:56px;margin-top:20px;">
<div class="buttonbox" style="height:56px;width:320px;margin: 0 auto;">
<input type="button" id="Start" value="Start OnWeb" onclick="startans()">
</div>
</div>
</div>
<div class="rules yw2 hide">
<h2>YouOnWeb:Round2 Instructions</h2>
<ul>
<li>This will be Design Challenge</li>
<li>You Have To Design a Webpage Based on a given theme</li>
<li>Winner will be selected based on their design, responsiveness, Features.</li>
</ul>
</div>
</section>
</div>
</div>
</div>
<!--hero container end-->
<!--footer container starts-->
<div class="footer--container">
<div class="footer">
<h3 class="footer--text">Follow us on:
</h3>
<div class="social">
<a href="https://instagram.com/coding__hub?igshid=xdyxph78e9lg">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="social--svg">
<path style="fill:#314E55;"
d="M403.198,5.333H108.802C48.813,5.333,0,54.286,0,114.463v72.203V208v189.542 c0,60.172,48.813,109.125,108.802,109.125h294.396c59.99,0,108.802-48.953,108.802-109.125V208v-21.333v-72.203 C512,54.286,463.187,5.333,403.198,5.333z">
</path>
<path style="fill:#E9E7D1;"
d="M332.522,186.667c-22.413-13.451-48.533-21.333-76.522-21.333s-54.108,7.882-76.522,21.333H21.333 v-72.203c0-48.411,39.239-87.797,87.469-87.797h294.396c48.229,0,87.469,39.385,87.469,87.797v72.203H332.522z">
</path>
<path style="fill:#314E55;"
d="M430.938,58.667h-51.208C364.438,58.667,352,71.104,352,86.396v51.208 c0,15.292,12.438,27.729,27.729,27.729h51.208c15.292,0,27.729-12.438,27.729-27.729V86.396 C458.667,71.104,446.229,58.667,430.938,58.667z">
</path>
<path style="fill:#C59981;"
d="M437.333,137.604c0,3.526-2.865,6.396-6.396,6.396h-51.208c-3.531,0-6.396-2.87-6.396-6.396V86.396 c0-3.526,2.865-6.396,6.396-6.396h51.208c3.531,0,6.396,2.87,6.396,6.396V137.604z">
</path>
<path style="fill:#E9E7D1;"
d="M490.667,397.542c0,48.406-39.239,87.792-87.469,87.792H108.802 c-48.229,0-87.469-39.385-87.469-87.792V208h130.354c-27.735,27.128-45.021,64.897-45.021,106.667 C106.667,397.01,173.656,464,256,464s149.333-66.99,149.333-149.333c0-41.77-17.286-79.538-45.021-106.667h130.354V397.542z">
</path>
<path style="fill:#C59981;"
d="M384,314.667c0,70.578-57.417,128-128,128s-128-57.422-128-128s57.417-128,128-128 S384,244.089,384,314.667z">
</path>
<path style="fill:#314E55;"
d="M160,314.667c0,52.932,43.062,96,96,96s96-43.068,96-96s-43.062-96-96-96S160,261.734,160,314.667z">
</path>
<path style="fill:#C59981;"
d="M330.667,314.667c0,41.172-33.5,74.667-74.667,74.667s-74.667-33.495-74.667-74.667 S214.833,240,256,240S330.667,273.495,330.667,314.667z">
</path>
</svg>
</a>
<a href="https://github.com/codinghubteam">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 512 512" class="social--svg">
<path style="fill:#314E55;"
d="M481.859,172.433c-5.53-7.612-8.052-12.085-7.263-20.219c1.647-17.12-0.699-34.354-2.962-51.016 l-0.15-1.098c-3.03-22.337-8.864-43.649-17.343-63.35l-3.017-7.009l-13.732,2.926c-19.057,4.006-38.768,8.152-56.736,18.522 c-11.931,6.891-23.802,14.24-35.279,21.339c-7.685,4.759-15.365,9.513-23.095,14.154c-0.422,0.254-1.252,0.454-1.488,0.454 c0,0,0,0-0.005,0c-41.544-7.258-84.703-7.326-128.293-0.218c-0.535,0.095-2.295-0.204-3.693-1.034 c-4.79-2.871-9.463-5.952-14.135-9.032c-5.416-3.575-10.837-7.14-16.413-10.407c-26.588-15.61-55.965-30.666-90.609-35.089 l-6.773-0.866l-3.615,7.834c-0.681,1.434-1.252,2.663-1.733,3.947c-9.944,26.796-15.936,54.89-17.873,84.404 c-0.676,10.23-1.375,20.808,0.131,31.374c0.499,3.498,0.086,4.205-1.284,5.92c-12.511,15.601-21.462,31.918-27.359,49.868 c-9.912,30.158-11.708,63.591-5.657,105.203c5.017,34.812,13.55,60.211,27.663,82.344c29.663,46.525,75.458,72.736,136.118,77.903 c30.312,2.581,61.073,2.971,91.235,2.971c6.482,0,12.942-0.018,19.361-0.036c8.465-0.027,16.939-0.05,25.381-0.032 c38.836,0.023,69.806-5.035,97.968-16.059c50.132-19.615,83.465-56.147,99.065-108.583c8.696-29.214,12.588-60.288,11.563-92.361 C510.696,229.456,500.612,198.25,481.859,172.433z">
</path>
<path style="fill:#D8D8D8;"
d="M482.466,352.251c-14.081,47.319-42.873,78.91-88.028,96.579 c-25.916,10.152-54.536,14.957-91.158,14.78c-8.478-0.018-16.97,0.005-25.467,0.032c-35.874,0.1-72.954,0.204-108.968-2.871 c-55.357-4.713-95.273-27.404-122.029-69.375c-12.625-19.801-20.318-42.932-24.941-75.018c-5.702-39.203-4.183-69.039,4.922-96.738 c5.189-15.805,13.106-30.212,24.206-44.053c4.854-6.061,6.351-11.899,5.176-20.16c-1.234-8.651-0.599-18.245,0.077-28.438 c1.706-26.08,7.068-51.696,15.923-76.152c28.475,5.035,53.629,18.105,76.678,31.637c5.298,3.107,10.438,6.501,15.582,9.889 c4.899,3.23,9.799,6.455,14.839,9.472c5.017,2.989,11.078,4.269,16.227,3.421c41.508-6.777,82.589-6.718,122.137,0.19 c4.554,0.767,9.984-0.308,14.194-2.826c7.812-4.691,15.564-9.49,23.317-14.285c11.536-7.14,23.072-14.28,34.798-21.053 c15.043-8.683,32.018-12.38,49.995-16.163c6.269,16.168,10.679,33.451,13.128,51.483l0.15,1.098 c2.118,15.614,4.314,31.764,2.871,46.734c-1.429,14.807,4.264,24.025,10.733,32.92c16.753,23.072,25.404,50.036,26.438,82.426 C494.229,295.859,490.596,324.951,482.466,352.251z">
</path>
<path style="fill:#314E55;"
d="M363.028,231.415c-0.458,0-0.925,0.005-1.388,0.009c-8.606,0.15-17.216,0.499-25.825,0.848 c-7.839,0.318-15.678,0.635-23.512,0.794l-13.609,0.286c-23.63,0.494-48.108,0.998-72.01,0.903 c-10.91-0.045-21.82-0.458-32.725-0.866c-14.843-0.563-30.171-1.152-45.391-0.767c-21.112,0.513-38.881,7.258-52.813,20.06h-0.005 c-23.14,21.262-32.707,49.469-29.241,86.232c5.031,53.357,26.57,80.639,74.342,94.157c40.16,11.364,80.498,12.38,114.48,11.903 l11.314,0.059c3.82,0.032,7.635,0.063,11.454,0.063c4.709,0,9.422-0.045,14.126-0.195c33.397-1.066,62.67-6.061,89.489-15.269 c29.446-10.107,49.043-29.409,58.243-57.367c7.022-21.371,9.086-41.612,6.305-61.89C441.734,277.378,412.96,231.415,363.028,231.415 z">
</path>
<path style="fill:#FFFFFF;"
d="M422.305,366.459c-7.39,22.45-22.641,37.366-46.625,45.6c-25.041,8.596-52.531,13.264-84.045,14.271 c-8.279,0.263-16.558,0.181-24.837,0.127l-11.604-0.063c-32.753,0.467-71.421-0.485-109.281-11.205 c-40.106-11.346-56.614-32.494-60.905-78.016c-2.881-30.584,4.745-53.747,23.312-70.808c10.524-9.663,24.215-14.766,40.696-15.17 c14.639-0.331,29.691,0.218,44.243,0.762c11.114,0.417,22.233,0.835,33.342,0.88c24.229,0.109,48.743-0.408,72.482-0.907 l13.595-0.281c7.966-0.168,15.927-0.49,23.889-0.812c8.465-0.34,16.93-0.685,25.395-0.83c0.336-0.009,0.671-0.009,1.007-0.009 c38.369,0,61.382,37.371,64.884,62.901C430.239,330.313,428.425,347.837,422.305,366.459z">
</path>
<path style="fill:#314E55;"
d="M172.333,277.868c-25.612,0-46.452,25.004-46.452,55.743s20.84,55.743,46.452,55.743 s46.452-25.004,46.452-55.743S197.945,277.868,172.333,277.868z">
</path>
<path style="fill:#D8D8D8;"
d="M172.333,370.773c-15.369,0-27.871-16.671-27.871-37.162c0-20.491,12.502-37.162,27.871-37.162 s27.871,16.671,27.871,37.162C200.204,354.102,187.702,370.773,172.333,370.773z">
</path>
<path style="fill:#314E55;"
d="M348.852,277.868c-25.612,0-46.452,25.004-46.452,55.743s20.84,55.743,46.452,55.743 c25.612,0,46.452-25.004,46.452-55.743S374.464,277.868,348.852,277.868z">
</path>
<path style="fill:#D8D8D8;"
d="M348.852,370.773c-15.369,0-27.871-16.671-27.871-37.162c0-20.491,12.502-37.162,27.871-37.162 s27.871,16.671,27.871,37.162C376.723,354.102,364.221,370.773,348.852,370.773z">
</path>
</svg>
</a>
</div>
</div>
<p>© Coding Hub Skncoe</p>
</div>
<script>
// Add active class to the current button (highlight it)
var btnContainer = document.getElementById("myBtnContainer");
var btns = btnContainer.getElementsByClassName("btn");
for (var i = 0; i < btns.length; i++) {
btns[i].addEventListener("click", function () {
var current = document.getElementsByClassName("active");
current[0].className = current[0].className.replace(" active", "");
this.className += " active";
});
}
filterSelection("soon");
</script>
</body>
</html>