-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard.html
528 lines (484 loc) · 26.6 KB
/
dashboard.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
528
<!DOCTYPE html>
<html lang="it">
<head>
<!-- META -->
<meta author="M. Anselmi / R. D. Nuccetelli / A. Federico">
<meta description="MyBook - Web App per gestire il proprio libretto universitario.">
<meta charset="UTF-8">
<!-- TITLE -->
<title>MyBook | Dashboard</title>
<!-- CSS/JS/ICONS -->
<link rel='shortcut icon' type='image/x-icon' href='img/favicon-32x32.png' />
<link href="css\main_style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js\storage_script.js"></script>
<script type="text/javascript" src="js\function_index.js"></script>
<script type="text/javascript" src="js\Chart.bundle.min.js"></script>
<!-- FROM LOCAL FILES
<script type="text/javascript" src="js\bootstrap.min.js"></script>
<script type="text/javascript" src="js\popper.min.js"></script>
<link href="css\bootstrap.min.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js\jquery-3.2.1.min.js"></script>
-->
<!-- EXTERNAL CSS/JS/FONTS -->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<!-- RALEWAY FONT -->
<link href="https://fonts.googleapis.com/css?family=Raleway:600" rel="stylesheet">
<!-- COMFORTAA FONT -->
<link href="https://fonts.googleapis.com/css?family=Comfortaa:700" rel="stylesheet">
<!-- BOOTSTRAP CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
<!-- JQUERY JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<!-- POPPER JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
<!-- BOOTSTRAP JS -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
</head>
<body onload="initDashboard();">
<!-- UPPER NAVBAR -->
<nav class="navbar navbar-light bg-faded"> <a class="navbar-brand" href="index.html" style="padding-right: 5px;">
<img src="img/apple-icon-120x120.png" height="25%" width="25%" alt=""><b style="font-family: 'Raleway', sans-serif;font-size:25px;padding-left: 10px;">MyBook</b>
</a>
<form class="form-inline" action="./index.html">
<button class="btn btn-outline-primary" type="submit">Log out</button>
</form>
</nav>
<!-- MAIN DIV CONTAINER -->
<div id="main_container">
<h1 style="text-align: center;" id="dashboard_title">Dashboard</h1>
<div id="initCourseCFUDiv" style="text-align: center; visibility: hidden;">
<button class="btn btn-primary btn-md" data-toggle="modal" data-target="#initCourseCFUForm">Inserisci CFU Corso</button>
</div>
<!-- NAVIGATION BAR -->
<ul class="nav nav-tabs" >
<li class="nav-item"">
<a class="nav-link active" data-toggle="tab" href="#exams" style="vertical-align: middle; display: inline-flex;"><i class="material-icons">book</i>Esami Sostenuti</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#calendar" style="vertical-align: middle; display: inline-flex;"><i class="material-icons">perm_contact_calendar</i>Calendario Esami</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#trend" style="vertical-align: middle; display: inline-flex;"><i class="material-icons">insert_chart</i>Trend Esami</a>
</li>
</ul>
<!-- CONTAINER -->
<div class="jumbotron" style="background-color: #FFFFFF; padding-top: 0px;">
<div id="myTabContent" class="tab-content">
<!-- EXAMS TABLE -->
<div class="tab-pane fade show active" id="exams" role="tabpanel">
<div class="progress" id="progress" style="margin-top: 5px">
<div class="progress-bar progress-bar-striped progress-bar-animated" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0" id="progressBar" role="progressbar" style="width:0%;"></div>
</div>
<div id="my_exams" style="text-align: center; padding-top:5px;"></div>
<div id="my_exams_paging"></div>
<div class="text-center">
<button class="btn btn-primary btn-md" data-toggle="modal" id="mainAddExamButton" data-target="#examAddForm" onclick="resetAddExamFields()">Aggiungi Esame</button>
</div>
</div>
<!-- CALENDAR TABLE -->
<div class="tab-pane fade" id="calendar" role="tabpanel">
<div id="my_calendar" style="text-align: center; padding-top:5px;"></div>
<div id="my_calendar_paging"></div>
<div class="text-center">
<button class="btn btn-primary btn-md" data-toggle="modal" id="mainAddCalendarEventButton" data-target="#calendarAddForm" onclick="resetAddEventFields()">Aggiungi Evento</button>
</div>
</div>
<!-- EXAMS CHART -->
<div class="tab-pane fade" id="trend" role="tabpanel" style="height: 400px;">
<canvas id="user_chart" style="display: block;"></canvas>
<div id="my_statistics" style="text-align: center; padding-top:5px;"></div>
</div>
<!-- EXAMS -->
<!-- POPUP ADD EXAM -->
<div class="modal fade" id="examAddForm" tabindex="-1" role="dialog" aria-labelledby="ExamAdd" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<!-- POPUP ADD EXAM HEADER -->
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only"></span></button>
</div>
<!-- POPUP ADD EXAM BODY -->
<div class="modal-body">
<form>
<!-- INSERT EXAM TYPE -->
<div class="form-group row">
<label for="examAddType" class="col-sm-2 col-form-label">Tipologia</label>
<div class="col-sm-10">
<select class="form-control" id="examAddType" required onchange="showAddExamGrade()">
<option value="Esame" selected>Esame</option>
<option value="Idoneità">Idoneità</option> <!--se idoneità è selezionato insert exam grade sparisce-->
</select>
</div>
</div>
<!-- INSERT EXAM CODE -->
<div class="form-group row">
<label for="examAddCode" class="col-sm-2 col-form-label">Codice Esame</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="examAddCode" placeholder="Codice Esame" onchange="changeExamAddCode()" required>
</div>
</div>
<!-- INSERT EXAM DATE -->
<div class="form-group row">
<label for="examAddDate" class="col-sm-2 col-form-label">Data</label>
<div class="col-sm-10">
<input type="date" class="form-control" id="examAddDate" placeholder="Data" min="1900-01-01" onchange="changeExamAddDate()" required>
</div>
</div>
<!-- INSERT EXAM GRADE (WITH PRAISE) -->
<div class="form-group row" id="examAddGradeDiv" style="visibility: visible;">
<label for="examAddGrade" class="col-sm-2 col-form-label">Voto</label>
<div class="col-sm-10">
<input type="number" class="form-control" id="examAddGrade" placeholder="Voto" min="18" max="30" onchange="showAddExamPraise(); changeExamAddGrade();" required>
<div id="examAddPraiseDiv" style="visibility: hidden; display: none;">
<i>Lode?</i>
Si <input type="radio" id="examAddPraiseYes" name="examAddPraise" value="praise_yes">
No <input type="radio" id="examAddPraiseNo" name="examAddPraise" value="praise_no" checked>
</div>
</div>
</div>
<!-- INSERT EXAM CFU -->
<div class="form-group row">
<label for="examAddCFU" class="col-sm-2 col-form-label">CFU</label>
<div class="col-sm-10">
<input type="number" class="form-control" id="examAddCFU" placeholder="CFU" min="1" max="24" onchange="changeExamAddCFU()" required>
</div>
</div>
</form>
</div>
<!-- POPUP ADD EXAM FOOTER -->
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Annulla</button>
<button type="button" id="examAddButton" class="btn btn-primary">Inserisci Esame</button>
<script>
$(document).ready(function() {
$("#examAddButton").on("click", function() {
if(addExam()) $("#examAddForm").modal("hide");
});
$(document).keypress(function(e) {
if(e.which == 13 && $("#examAddForm").is(":visible")) {
if(addExam()) $("#examAddForm").modal("hide");
}
});
});
</script>
</div>
</div>
</div>
<!-- ALERT CONTAINER FOR ADD EXAM -->
<div id="examAddAlert" class="alert alert-mystyle alert-warning alert-dismissible fade show" role="alert" >
<button type="button" class="close" aria-label="Close" onclick="hideAlert($(this).parent().attr('id'))">
<span aria-hidden="true">×</span>
</button>
<b>Attenzione!</b><p id="examAddAlertText"></p>
</div>
</div>
<!-- POPUP EDIT EXAM -->
<div class="modal fade" id="examEditForm" tabindex="-1" role="dialog" aria-labelledby="ExamEdit" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<!-- POPUP EDIT EXAM HEADER -->
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only"></span></button>
</div>
<div class="modal-body">
<form>
<!-- INSERT EXAM CODE (EDIT) -->
<div class="form-group row">
<label for="examEditType" class="col-sm-2 col-form-label">Tipologia</label>
<div class="col-sm-10">
<select class="form-control" id="examEditType" required readonly>
<option value="Esame">Esame</option>
<option value="Idoneità">Idoneità</option>
</select>
</div>
</div>
<!-- INSERT EXAM CODE (EDIT) -->
<div class="form-group row">
<label for="examEditCode" class="col-sm-2 col-form-label">Codice Esame</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="examEditCode" placeholder="Codice Esame" required readonly>
</div>
</div>
<!-- INSERT EXAM DATE (EDIT) -->
<div class="form-group row">
<label for="examEditDate" class="col-sm-2 col-form-label">Data</label>
<div class="col-sm-10">
<input type="date" class="form-control" id="examEditDate" placeholder="Data" min="1900-01-01" onchange="changeExamEditDate()" required>
</div>
</div>
<!-- INSERT EXAM GRADE (EDIT) (WITH PRAISE) -->
<div class="form-group row" id="examEditGradeDiv">
<label for="examEditGrade" class="col-sm-2 col-form-label">Voto</label>
<div class="col-sm-10">
<input type="number" class="form-control" id="examEditGrade" placeholder="Voto" min="18" max="30" onchange="showEditExamPraise(); changeExamEditGrade();" required>
<div id="examEditPraiseDiv" style="visibility: hidden; display: none;">
<i>Lode?</i> Si <input type="radio" id="examEditPraiseYes" name="examEditPraise" value="praise_yes"> No <input type="radio" id="examEditPraiseNo" name="examEditPraise" value="praise_no" checked>
</div>
</div>
</div>
<!-- INSER EXAM CFU (EDIT) -->
<div class="form-group row">
<label for="examEditCFU" class="col-sm-2 col-form-label">CFU</label>
<div class="col-sm-10">
<input type="number" class="form-control" id="examEditCFU" placeholder="CFU" min="1" max="24" onchange="changeExamEditCFU()" required>
</div>
</div>
</form>
</div>
<!-- POPUP EDIT EXAM FOOTER -->
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Annulla</button>
<button type="button" id="examEditButton" class="btn btn-primary">Salva</button>
<script>
$(document).ready(function() {
$("#examEditButton").on("click", function() {
if(editExam()) $("#examEditForm").modal("hide");
});
$(document).keypress(function(e) {
if(e.which == 13 && $("#examEditForm").is(":visible")) {
if(editExam()) $("#examEditForm").modal("hide");
}
});
});
</script>
</div>
</div>
</div>
<!-- ALERT CONTAINER FOR EDIT EXAM -->
<div id="examEditAlert" class="alert alert-mystyle alert-warning alert-dismissible fade show" role="alert" >
<button type="button" class="close" aria-label="Close" onclick="hideAlert($(this).parent().attr('id'))">
<span aria-hidden="true">×</span>
</button>
<b>Attenzione!</b><p id="examEditAlertText"></p>
</div>
</div>
<!-- CALENDAR -->
<!-- POPUP ADD CALENDAR EVENT -->
<div class="modal fade" id="calendarAddForm" tabindex="-1" role="dialog" aria-labelledby="CalendarAdd" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only"></span></button>
</div>
<div class="modal-body">
<form>
<!-- INSERT EVENT NAME -->
<div class="form-group row">
<label for="calendarAddName" class="col-sm-2 col-form-label">Nome</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="calendarAddName" placeholder="Nome" onchange="changeCalendarAddName()" required>
</div>
</div>
<!-- INSERT EVENT DATE -->
<div class="form-group row">
<label for="calendarAddDate" class="col-sm-2 col-form-label">Data</label>
<div class="col-sm-10">
<input type="date" class="form-control" id="calendarAddDate" placeholder="Data" onchange="changeCalendarAddDate()" required>
</div>
</div>
<!-- INSERT EVENT TIME -->
<div class="form-group row">
<label for="calendarAddTimeStart" class="col-sm-2 col-form-label">Ora Inizio</label>
<div class="col-sm-4">
<input type="time" class="form-control" id="calendarAddTimeStart" placeholder="Ora inizio" onchange="changeCalendarAddTimes()">
</div>
<label for="calendarAddTimeEnd" class="col-sm-2 col-form-label">Ora Fine</label>
<div class="col-sm-4">
<input type="time" class="form-control" id="calendarAddTimeEnd" placeholder="Ora fine" onchange="changeCalendarAddTimes()">
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Annulla</button>
<button type="button" id="calendarAddButton" class="btn btn-primary">Inserisci Evento</button>
<script>
$(document).ready(function() {
$("#calendarAddButton").on("click", function() {
if(addCalendarEvent()) $("#calendarAddForm").modal("hide");
});
$(document).keypress(function(e) {
if(e.which == 13 && $("#calendarAddForm").is(":visible")) {
if(addCalendarEvent()) $("#calendarAddForm").modal("hide");
}
});
});
</script>
</div>
</div>
</div>
<!-- ALERT CONTAINER FOR CALENDAR ADD -->
<div id="calendarAddAlert" class="alert alert-mystyle alert-warning alert-dismissible fade show" role="alert" >
<button type="button" class="close" aria-label="Close" onclick="hideAlert($(this).parent().attr('id'))">
<span aria-hidden="true">×</span>
</button>
<b>Attenzione!</b><p id="calendarAddAlertText"></p>
</div>
</div>
<!-- POPUP EDIT EVENT CALENDAR -->
<div class="modal fade" id="calendarEditForm" tabindex="-1" role="dialog" aria-labelledby="EditEvent" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<!-- POPUP EDIT EVENT CALENDAR HEADER -->
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only"></span></button>
</div>
<div class="modal-body">
<form>
<!-- INSERT EVENT NAME (EDIT) -->
<div class="form-group row">
<label for="calendarEditName" class="col-sm-2 col-form-label">Nome</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="calendarEditName" placeholder="Nome" required readonly>
</div>
</div>
<!-- INSERT EVENT DATE (EDIT) -->
<div class="form-group row">
<label for="calendarEditDate" class="col-sm-2 col-form-label">Data</label>
<div class="col-sm-10">
<input type="date" class="form-control" id="calendarEditDate" placeholder="Data" onchange="changeCalendarEditDate()" required>
</div>
</div>
<!-- INSERT EVENT TIME (EDIT) -->
<div class="form-group row">
<label for="calendarEditTimeStart" class="col-sm-2 col-form-label">Ora Inizio</label>
<div class="col-sm-4">
<input type="time" class="form-control" id="calendarEditTimeStart" placeholder="Ora inizio" onchange="changeCalendarEditTimes()">
</div>
<label for="calendarEditTimeEnd" class="col-sm-2 col-form-label">Ora Fine</label>
<div class="col-sm-4">
<input type="time" class="form-control" id="calendarEditTimeEnd" placeholder="Ora fine" onchange="changeCalendarEditTimes()">
</div>
</div>
</form>
</div>
<!-- POPUP EDIT EVENT CALENDAR FOOTER -->
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Annulla</button>
<button type="button" class="btn btn-primary" id="calendarEditButton">Salva</button>
<script>
$(document).ready(function() {
$('#calendarEditButton').on('click', function() {
if(editCalendarEvent()) $("#calendarEditForm").modal("hide");
});
$(document).keypress(function(e) {
if(e.which == 13 && $('#calendarEditForm').is(':visible')) {
if(editCalendarEvent()) $("#calendarEditForm").modal("hide");
}
});
});
</script>
</div>
</div>
</div>
<!-- ALERT CONTAINER FOR CALENDAR EDIT -->
<div id="calendarEditAlert" class="alert alert-mystyle alert-warning alert-dismissible fade show" role="alert" >
<button type="button" class="close" aria-label="Close" onclick="hideAlert($(this).parent().attr('id'))">
<span aria-hidden="true">×</span>
</button>
<b>Attenzione!</b><p id="calendarEditAlertText"></p>
</div>
</div>
<!-- POPUP INIT COURSE CFU -->
<div class="modal fade" id="initCourseCFUForm" tabindex="-1" role="dialog" aria-labelledby="InitCourseCFU" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only"></span></button>
</div>
<div class="modal-body">
<div>
<!-- INSERT TOTAL CFU -->
<div class="form-group row">
<label for="courseCFU" class="col-sm-2 col-form-label">CFU Totali</label>
<div class="col-sm-10">
<input type="numeric" class="form-control" id="courseCFU" min="50" max="400" placeholder="CFU Richiesti del corso" required autofocus>
</div>
</div>
<!-- INSERT TOTAL EXAMS NUM -->
<div class="form-group row">
<label for="courseExams" class="col-sm-2 col-form-label">Numero Esami</label>
<div class="col-sm-10">
<input type="numeric" class="form-control" id="courseExams" min="5" max="40" placeholder="Numero di esami del corso" required>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Chiudi</button>
<button type="button" id="initCourseCFUButton" class="btn btn-primary">Vai al tuo libretto</button>
<script>
function checkCourse() {
var cfu = $("#courseCFU").val();
var exams = $("#courseExams").val();
var flag = true;
var alert_string = "";
if (cfu == "" || parseInt(cfu)>400 || parseInt(cfu)<50) {
$("#courseCFU").css("border","1px solid #ff0000");
$("#courseCFU").select();
alert_string += "CFU Non validi!<br>";
flag = false;
}
else {
$("#courseCFU").css("border","1px solid #04ff00");
}
if (exams == "" || parseInt(exams)>40 || parseInt(exams)<5) {
$("#courseExams").css("border","1px solid #ff0000");
$("#courseExams").select();
alert_string += "Numero esami non valido!<br>";
flag = false;
}
else {
$("#courseExams").css("border","1px solid #04ff00");
}
if (!flag) {
showAlert("courseAlert", "courseAlertText", alert_string);
return false;
}
else return true;
}
function initCourseCFUExams() {
if(!checkCourse()) {
return false;
}
else if(localStorage.getItem("CFU") == null) {
$("#initCourseCFUForm").modal("hide");
localStorage.setItem("CFU", $("#courseCFU").val());
localStorage.setItem("NumExams", $("#courseExams").val());
checkStorageCFU();
getPercentageCFU();
printStatistics();
}
return true;
}
$(document).ready(function() {
$("#initCourseCFUButton").on("click", function() {
initCourseCFUExams();
});
$(document).keypress(function(e) {
if(e.which == 13 && $("#initCourseCFUForm").is(":visible")) {
initCourseCFUExams();
}
});
});
</script>
</div>
</div>
</div>
<!-- ALERT CONTAINER FOR COURSE -->
<div id="courseAlert" class="alert alert-mystyle alert-warning alert-dismissible fade show" role="alert" >
<button type="button" class="close" aria-label="Close" onclick="hideAlert($(this).parent().attr('id'))">
<span aria-hidden="true">×</span>
</button>
<b>Attenzione!</b><p id="courseAlertText"></p>
</div>
</div>
</div>
</div>
</div>
<!-- PAGE FOOTER -->
<div class="footer">
<p>Copyright © 2017 MyBook -<a href="https://github.com/Mikyxello"> M. Anselmi </a>/ <a href="https://github.com/rsoul/">R. Nuccetelli </a> - <a href="./faq.html">FAQ</a></p>
</div>
</body>
</html>