-
Notifications
You must be signed in to change notification settings - Fork 0
/
interactive.html
527 lines (474 loc) · 23 KB
/
interactive.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
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title></title>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Gaegu:wght@700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Amatic+SC:wght@700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Lilita+One&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Alata&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Alatsi&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Allerta&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Andika+New+Basic&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Atkinson+Hyperlegible&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Barlow&display=swap">
<link href="https://fonts.googleapis.com/css?family=Raleway:400,300,600,800,900" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="assets/fonts/fontawesome-all.min.css">
<link rel="stylesheet" href="assets/fonts/font-awesome.min.css">
<link rel="stylesheet" href="assets/css/styles.css">
<script src="assets/js/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready( function () {
var first_name = localStorage.getItem('first_name');
var course_id = localStorage.getItem('course_id');
var username = localStorage.getItem('username');
var user_role = localStorage.getItem('user_role');
if (first_name == null||course_id == null||username == null) {
localStorage.clear();
sessionStorage.clear();
window.location.replace('login.html');
}
$('#loadingModal').modal('toggle');
var quiz_id_selection = "";
var duration_per_question = "5";
var max_num_of_players = "5";
var join_quiz_id = "";
$(document).on('click', '.qtype_menu_item', function(e) {
$("#qtype_menu").find(".qtype_menu_item").removeClass("active");
$(this).addClass("active");
quiz_id_selection = $(this).attr('id');
$("#qtype_text").html($(this).html());
});
$(document).on('click', '.duration_menu_item', function(e) {
$("#duration_menu").find(".duration_menu_item").removeClass("active");
$(this).addClass("active");
duration_per_question = $(this).attr('id');
$("#duration_text").html($(this).html());
});
$(document).on('click', '.quantity_menu_item', function(e) {
$("#quantity_menu").find(".quantity_menu_item").removeClass("active");
$(this).addClass("active");
max_num_of_players = $(this).attr('id');
$("#quantity_text").html($(this).html());
});
async function get_quizid() {
const endpoint = '/data-api/rest/QuestionList';
const response = await fetch(endpoint);
const data = await response.json();
<!-- data = {"value":[{"id":24,"course_id":"ENG1","quiz_id":"QZENG1","q_id":"2","q_type":"mc"},{"id":25,"course_id":"ENG1","quiz_id":"QZENG1","q_id":"1","q_type":"mc"},{"id":26,"course_id":"ENG1","quiz_id":"QZENG1","q_id":"3","q_type":"mc"},{"id":27,"course_id":"ENG1","quiz_id":"QZENG1","q_id":"4","q_type":"mc"},{"id":36,"course_id":"ENG1","quiz_id":"QZENG2","q_id":"1","q_type":"mc"},{"id":37,"course_id":"ENG1","quiz_id":"QZENG2","q_id":"2","q_type":"mc"}]}; -->
var prev = "";
var mc_flag = 0;
var prev_mc_flag = 0;
var quiz_count = 0;
if (data.value == '') {
$("#qtype_text").html("No quizzes available.");
} else {
for (var i = 0; i < data.value.length; i++) {
if (data.value[i].q_type != "mc") {
mc_flag = 1;
}
if (i == data.value.length-1) {
if (prev_mc_flag == 0 && i != 0 && prev != data.value[i].quiz_id) {
if(quiz_count == 0) {
quiz_id_selection = prev;
$("#qtype_menu").append('<li><a class="dropdown-item active qtype_menu_item" id="'+prev+'">'+prev+'</a></li>');
$("#qtype_text").html(prev);
}
else {
$("#qtype_menu").append('<li><a class="dropdown-item qtype_menu_item" id="'+prev+'">'+prev+'</a></li>');
}
quiz_count += 1;
}
if (prev != data.value[i].quiz_id) {
if (data.value[i].q_type == "mc") {
mc_flag = 0;
}
}
if (mc_flag == 0) {
if(quiz_count == 0) {
quiz_id_selection = data.value[i].quiz_id;
$("#qtype_menu").append('<li><a class="dropdown-item active qtype_menu_item" id="'+data.value[i].quiz_id+'">'+data.value[i].quiz_id+'</a></li>');
$("#qtype_text").html(data.value[i].quiz_id);
}
else {
$("#qtype_menu").append('<li><a class="dropdown-item qtype_menu_item" id="'+data.value[i].quiz_id+'">'+data.value[i].quiz_id+'</a></li>');
}
quiz_count += 1;
}
} else if (data.value[i].quiz_id == prev) {
prev = data.value[i].quiz_id;
prev_mc_flag = mc_flag;
} else {
if (i != 0) {
if (prev_mc_flag == 0) {
if(quiz_count == 0) {
quiz_id_selection = prev;
$("#qtype_menu").append('<li><a class="dropdown-item active qtype_menu_item" id="'+prev+'">'+prev+'</a></li>');
$("#qtype_text").html(prev);
}
else {
$("#qtype_menu").append('<li><a class="dropdown-item qtype_menu_item" id="'+prev+'">'+prev+'</a></li>');
}
quiz_count += 1;
}
if (data.value[i].q_type == "mc") {
mc_flag = 0;
}
}
prev = data.value[i].quiz_id;
prev_mc_flag = mc_flag;
}
}
if (quiz_count == 0) {
$("#qtype_text").html("No quizzes available.");
} else {
if(user_role != 's'){
$("#dropdownMenuButton1").prop('disabled', false);
$("#select_button").prop('disabled', false);
} else {
$( "#card_left" ).removeClass( "d-flex" ).addClass( "d-none" );
$( "#card_right" ).removeClass( "col-sm-6" );
}
}
}
setTimeout(()=> {
$('#loadingModal').modal('toggle');
},500);
}
get_quizid();
async function check_quiz(pin) {
const endpoint = '/data-api/rest/InteractiveQuiz';
const response = await fetch(endpoint);
const data = await response.json();
<!-- data = {"value":[{"id":1,"quiz_id":"INTQZENG1A1","ques_duration":"20","max_player":"0","current_player":"0","started":"N","ended":"N"}]}; -->
if (data.value == '') {
$("#error_message").prop('hidden', false);
$("#error_message").html('The Quiz PIN is invalid.');
} else {
got_flag = "N";
for (var i = 0; i < data.value.length; i++) {
if (data.value[i].quiz_id == pin) {
if (data.value[i].started == "N" && data.value[i].ended == "N") {
if (data.value[i].max_player != "0" && data.value[i].max_player == data.value[i].current_player) {
got_flag = "F";
} else {
got_flag = "Y";
}
} else if (data.value[i].started == "Y" && data.value[i].ended == "N") {
got_flag = "YS";
} else {
$("#error_message").prop('hidden', false);
$("#error_message").html('The Quiz PIN is invalid.');
}
break;
}
}
if (got_flag == "Y") {
join_quiz_id = pin;
$('#nameModal').modal('toggle');
$("#error_message").prop('hidden', true);
} else if (got_flag == "YS") {
$("#error_message").prop('hidden', false);
$("#error_message").html('The quiz has already started.');
} else if (got_flag == "F") {
$("#error_message").prop('hidden', false);
$("#error_message").html('The maximum number of players has been reached.');
} else {
$("#error_message").prop('hidden', false);
$("#error_message").html('The Quiz PIN is invalid.');
}
}
}
async function check_exist(selection) {
const endpoint = '/data-api/rest/InteractiveQuiz';
const response = await fetch(endpoint);
const data = await response.json();
<!-- data = {"value":[{"id":1,"quiz_id":"INTQZENG1A2","ques_duration":"20","max_player":"0","current_player":"0","started":"N","ended":"N"}]}; -->
interactive_id = '';
if (data.value == '') {
interactive_id = 'INT'+selection+'A1';
} else {
got_flag = "N";
for (var i = data.value.length-1; i >= 0; i--) {
if (data.value[i].quiz_id.includes(selection)) {
num = data.value[i].quiz_id.indexOf(selection) + selection.length + 1;
interactive_id = 'INT'+selection+'A'+(Number(data.value[i].quiz_id.substring(num))+1);
got_flag = "Y"
break;
}
}
if (got_flag == "N") {
interactive_id = 'INT'+selection+'A1';
}
}
data1 = '{"quiz_id": "'+interactive_id+'", "quiz_id_short": "'+selection+'", "ques_duration": "'+duration_per_question+'", "max_player": '+max_num_of_players+', "current_player": "0", "started":"N","ended":"N"}';
start_quiz(JSON.parse(data1),interactive_id);
}
async function start_quiz(data, quiz_pin) {
const endpoint = '/data-api/rest/InteractiveQuiz';
const response = await fetch(endpoint, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(data)
});
const result = await response.json();
if (result.value) {
sessionStorage.setItem('int_quiz_ID', quiz_pin);
window.location.href = 'lobby.html';
}
}
async function check_name(name) {
const endpoint = '/data-api/rest/IntPlayers';
const response = await fetch(endpoint);
const data = await response.json();
<!-- data = {"value":[{"id":1,"int_quiz_id":"INTQZENG1A1","player_name":"Tommy","points":"0"},{"id":2,"int_quiz_id":"INTQZENG1A1","player_name":"Jimmy","points":"0"},{"id":3,"int_quiz_id":"INTQZENG1A1","player_name":"shenenen","points":"0"},{"id":4,"int_quiz_id":"INTQZENG1A1","player_name":"hey yall","points":"0"},{"id":5,"int_quiz_id":"INTQZENG1A1","player_name":"tester","points":"0"}]}; -->
if (data.value == '') {
$("#name_error").prop('hidden', true);
data1 = '{"int_quiz_id": "'+join_quiz_id+'", "player_name": "'+name+'", "points": "0"}';
add_player(data1, join_quiz_id, name);
} else {
got_flag = "N"
for (var i = 0; i < data.value.length; i++) {
if (data.value[i].player_name == name && data.value[i].int_quiz_id == join_quiz_id) {
got_flag = "Y"
break;
}
}
if (got_flag == "N") {
$("#name_error").prop('hidden', true);
data1 = '{"int_quiz_id": "'+join_quiz_id+'", "player_name": "'+name+'", "points": "0"}';
add_player(data1, join_quiz_id, name);
} else {
$("#name_error").prop('hidden', false);
}
}
}
async function add_player(data, quiz_pin, name) {
const endpoint = '/data-api/rest/IntPlayers';
const response = await fetch(endpoint, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(data)
});
const result = await response.json();
if (result.value) {
sessionStorage.setItem('int_quiz_ID', quiz_pin);
sessionStorage.setItem('player_name', name);
window.location.href = 'waiting.html';
}
}
$('#play_music').on('click', function(e){
if ($(this).attr('class') == 'fas fa-volume-mute') {
$('#lobby_music')[0].play();
$(this).attr('class', 'fas fa-volume-up');
} else {
$('#lobby_music')[0].pause();
$(this).attr('class', 'fas fa-volume-mute');
}
});
$('#select_button').on('click', function(e){
$("#modal_ques").val(quiz_id_selection);
$('#editModal').modal('toggle');
});
$('#enter_button').on('click', function(e){
int_quiz_id = $("#int_quiz_id").val().toUpperCase();
if (int_quiz_id == "") {
$("#error_message").prop('hidden', false);
$("#error_message").html('Please enter a valid Quiz PIN.');
} else {
check_quiz(int_quiz_id);
}
});
$('#join_button').on('click', function(e){
name = $("#player_name").val();
check_name(name);
});
$('#start_button').on('click', function(e){
check_exist(quiz_id_selection);
});
$('a.logout').on('click', function(e){
localStorage.clear();
window.location.replace('login.html');
});
} );
</script>
</head>
<body style="background: url('assets/images/snow.gif'), url('assets/images/purple.jpg'); background-size: 30% 30%, 100% 100%; height: 80vh;">
<!-- Modal For Editing -->
<div class="modal fade" id="editModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel" style="font-size: 1.5rem; color:rgb(0,0,0); padding-top: 3px; padding-bottom: 3px; padding-left: 8px; font-weight: bold;">Quiz Settings</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" style="padding-top: 3px; padding-bottom: 3px; padding-right: 20px;"></button>
</div>
<div class="modal-body" style="font-size: 0.9rem; color:rgb(0,0,0); padding-left: 24px; font-weight: bold; padding-right: 24px;">
<form id="edit_data">
<div class="form-group mb-3">
<label for="modal_ques" class="mb-1">Selected Quiz</label>
<input type="text" class="form-control" id="modal_ques" style="font-size: 0.9rem; color:rgb(0,0,0);" value="" disabled>
</div>
<div class="form-group mb-3">
<label class="mb-1">Duration per Question</label>
<div class="dropdown">
<button class="btn dropdown-toggle" type="button" id="durationDropDownButton" data-bs-toggle="dropdown" aria-expanded="false" style="width: 100%; text-align: right; font-size: 0.9rem; border: 1px solid #bbbbbb;">
<span style="float:left;" id="duration_text">5s</span>
</button>
<ul class="dropdown-menu" aria-labelledby="durationDropDownButton" style="width: 100%; font-size: 0.9rem; line-height: 30px;" id="duration_menu">
<li><a class="dropdown-item active duration_menu_item" id="5">5s</a></li>
<li><a class="dropdown-item duration_menu_item" id="10">10s</a></li>
<li><a class="dropdown-item duration_menu_item" id="15">15s</a></li>
<li><a class="dropdown-item duration_menu_item" id="20">20s</a></li>
<li><a class="dropdown-item duration_menu_item" id="25">25s</a></li>
<li><a class="dropdown-item duration_menu_item" id="30">30s</a></li>
</ul>
</div>
</div>
<div class="form-group mb-3">
<label class="mb-1">Max No. of Players</label>
<div class="dropdown">
<button class="btn dropdown-toggle" type="button" id="quantityDropDownButton" data-bs-toggle="dropdown" aria-expanded="false" style="width: 100%; text-align: right; font-size: 0.9rem; border: 1px solid #bbbbbb;">
<span style="float:left;" id="quantity_text">5</span>
</button>
<ul class="dropdown-menu" aria-labelledby="quantityDropDownButton" style="width: 100%; font-size: 0.9rem; line-height: 30px;" id="quantity_menu">
<li><a class="dropdown-item active quantity_menu_item" id="5">5</a></li>
<li><a class="dropdown-item quantity_menu_item" id="10">10</a></li>
<li><a class="dropdown-item quantity_menu_item" id="20">15</a></li>
<li><a class="dropdown-item quantity_menu_item" id="30">20</a></li>
<li><a class="dropdown-item quantity_menu_item" id="40">40</a></li>
<li><a class="dropdown-item quantity_menu_item" id="0">Unlimited</a></li>
</ul>
</div>
</div>
</form>
</div>
<div class="modal-footer" style="padding-left: 24px; padding-right: 24px;">
<button type="button" class="btn btn-magick btn-lg btn3d" style="width: 100%; font-size: 1.2rem; font-family: 'Lilita One', sans-serif;" id="start_button">START QUIZ</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="nameModal" tabindex="-1" aria-labelledby="nameModal1" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="nameModal1" style="font-size: 1.5rem; color:rgb(0,0,0); padding-top: 3px; padding-bottom: 3px; padding-left: 8px; font-weight: bold;">Player Name</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" style="padding-top: 3px; padding-bottom: 3px; padding-right: 20px;"></button>
</div>
<div class="modal-body" style="color:rgb(0,0,0); padding-left: 24px; font-weight: bold; padding-right: 24px;">
<div class="row">
<form id="edit_data">
<div class="form-group mb-2">
<input type="text" class="form-control" style="font-size: 0.9rem; color:rgb(0,0,0);" placeholder="Please enter your name." id="player_name" maxlength="12">
</div>
</form>
</div>
<div class="row mb-0">
<div class="col">
<span hidden style="font-size: 1.2rem; color: red; font-family: 'Amatic SC', sans-serif; line-height: 0;" id="name_error">That name has already been taken.</span>
</div>
</div>
</div>
<div class="modal-footer" style="padding-left: 24px; padding-right: 24px;">
<button type="button" class="btn btn-magick btn-lg btn3d" style="width: 100%; font-size: 1.2rem; font-family: 'Lilita One', sans-serif;" id="join_button">JOIN QUIZ</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="loadingModal" tabindex="-1" aria-hidden="true" data-bs-keyboard="false" data-bs-backdrop="static">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content" style="margin: auto; width: auto; height: auto; border-radius: 0; border:0;">
<div class="modal-body">
<img src="assets/images/loading.gif" style="height: 4rem;">
</div>
</div>
</div>
</div>
<audio id="lobby_music" loop src="assets/music/kahoot_lobby.mp3"></audio>
<div class="row" style="border-bottom: 1px solid #cfcfcf; background: white; padding-top: 2px; padding-bottom: 3px;">
<div class="col" style="margin-top: auto; margin-bottom: auto; margin-left: 15px;">
<img src="assets/images/nottingham-university-logo.jpeg" alt="University of Nottingham" style="height: 3.5rem;">
</div>
<div class="col-auto" style="margin-top: auto; margin-bottom: auto;">
<i class="far fa-bell" style="color:#a5a5a5; font-size: 1rem;"></i>
</div>
<div class="col-auto" style="margin-top: auto; margin-bottom: auto;">
<i class="far fa-comment" style="color:#a5a5a5; font-size: 1rem;"></i>
</div>
<div class="col-auto" style="text-align: right; margin-top: auto; margin-bottom: auto;">
<i class="fas fa-user-circle" style="color:#792d85; font-size: 2.2rem;"></i>
</div>
<div class="col-auto" style="margin-top: auto; margin-bottom: auto; margin-right: 25px; margin-left: -15px">
<i class="fas fa-chevron-down" role="button" data-bs-toggle="dropdown" aria-expanded="false" style="color:black; font-size: 0.6rem; cursor: pointer;" id="logout_arrow"></i>
<ul class="dropdown-menu" aria-labelledby="logout_arrow" style="font-size: 1rem; line-height: 25px; font-family: 'Trebuchet MS', Arial, Verdana, Helvetica, sans-serif; border-radius: 0px;">
<li><a class="dropdown-item logout">Log out</a></li>
</ul>
</div>
</div>
<div class="row mt-4 mb-0">
<div class="col"></div>
<div class="col-auto" style="margin-right: 20px;">
<i class="fas fa-volume-mute" style="color:white; font-size: 2rem; cursor: pointer;" id="play_music"></i>
</div>
</div>
<div class="row" style="height: 100%; padding-top: 0px; padding-bottom: 50px;">
<div class="col-sm-6 col-12 d-flex align-items-center justify-content-center" style="height: 100%; border-right: 2px solid #cfcfcf;" id="card_left">
<div class="card" style="height: auto; border: 0; border-radius: 10px; width: 450px;">
<div class="row mt-3" style="text-align: center;">
<span style="font-size: 3.8rem; color: black; font-family: 'Lilita One', sans-serif;">Start Quiz</span>
</div>
<div class="row ms-4 mt-2 me-4 mb-3">
<div class="col">
<div class=""><span style="font-size: 1.3rem; color: red; font-family: 'Amatic SC', sans-serif; line-height: 0;">Only quizzes with just multiple choice questions are eligible for interactive quizzes.</span></div>
</div>
</div>
<div class="row ms-4 me-4 mb-3">
<div class="col">
<div class="dropdown">
<button class="btn dropdown-toggle" type="button" disabled id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false" style="width: 100%; text-align: right; font-size: 1.1rem; border: 1px solid #bbbbbb;">
<span style="float:left; font-family: 'Lilita One', sans-serif;" id="qtype_text"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1" style="width: 100%; font-size: 1.1rem; line-height: 30px; font-family: 'Lilita One', sans-serif;" id="qtype_menu">
<li><span class="dropdown-header mt-0" style="font-size: 1.3rem; line-height: 30px; font-family: 'Amatic SC', sans-serif;">Available Quizzes</span></li>
</ul>
</div>
</div>
</div>
<div class="row ms-4 me-4 mb-4">
<div class="col">
<button type="button" disabled class="btn btn-magick btn-lg btn3d" style="width: 100%; font-size: 1.2rem; font-family: 'Lilita One', sans-serif;" id="select_button">SELECT</button>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-12 d-flex align-items-center justify-content-center" style="height: 100%;" id="card_right">
<div class="card" style="height: auto; border: 0; border-radius: 10px; width: 450px; margin: auto;">
<div class="row mt-3" style="text-align: center;">
<span style="font-size: 3.8rem; color: black; font-family: 'Lilita One', sans-serif;">Join Quiz</span>
</div>
<div class="row mt-4 ms-4 me-4 mb-1">
<div class="col">
<input class="form-control" type="text" placeholder="Quiz PIN" style="font-size: 1.8rem; font-family: 'Amatic SC', sans-serif; text-align: center;" id="int_quiz_id">
</div>
</div>
<div class="row ms-4 mt-0 me-4 mb-1">
<div class="col">
<span hidden style="font-size: 1.2rem; color: red; font-family: 'Amatic SC', sans-serif; line-height: 0;" id="error_message"></span>
</div>
</div>
<div class="row ms-4 me-4 mb-4 mt-1">
<div class="col">
<button type="button" class="btn btn-magick btn-lg btn3d" style="width: 100%; font-size: 1.2rem; font-family: 'Lilita One', sans-serif;" id="enter_button">ENTER</button>
</div>
</div>
</div>
</div>
</div>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>