-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlecturesTeacher.html
339 lines (315 loc) · 22.9 KB
/
lecturesTeacher.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
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>NeoLearn</title>
<link rel="icon" href="images/greenBack.png" type="image/png" alt="NeoLearn">
<link rel="stylesheet" href="lecturesTeacherStyle.css">
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
</head>
<body>
<div class="sidebar">
<img src="images/NL-white.png" class="logo" alt="NeoLearn">
<hr class="new1">
<a class="active" href="#home" id="options">Βασικές επιλογές</a>
<a href="createLesson.html" title="newLesson"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-plus-circle-fill" viewBox="0 0 16 16">
<path
d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M8.5 4.5a.5.5 0 0 0-1 0v3h-3a.5.5 0 0 0 0 1h3v3a.5.5 0 0 0 1 0v-3h3a.5.5 0 0 0 0-1h-3z" />
</svg> Νέο Μάθημα</a>
<a href="teacher.html" title="courses"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-mortarboard-fill" viewBox="0 0 16 16">
<path
d="M8.211 2.047a.5.5 0 0 0-.422 0l-7.5 3.5a.5.5 0 0 0 .025.917l7.5 3a.5.5 0 0 0 .372 0L14 7.14V13a1 1 0 0 0-1 1v2h3v-2a1 1 0 0 0-1-1V6.739l.686-.275a.5.5 0 0 0 .025-.917l-7.5-3.5Z" />
<path
d="M4.176 9.032a.5.5 0 0 0-.656.327l-.5 1.7a.5.5 0 0 0 .294.605l4.5 1.8a.5.5 0 0 0 .372 0l4.5-1.8a.5.5 0 0 0 .294-.605l-.5-1.7a.5.5 0 0 0-.656-.327L8 10.466z" />
</svg> Τα μαθήματα μου</a>
<a href="editProfile.html" title="edit"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-person-fill-gear" viewBox="0 0 16 16">
<path
d="M11 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0m-9 8c0 1 1 1 1 1h5.256A4.493 4.493 0 0 1 8 12.5a4.49 4.49 0 0 1 1.544-3.393C9.077 9.038 8.564 9 8 9c-5 0-6 3-6 4m9.886-3.54c.18-.613 1.048-.613 1.229 0l.043.148a.64.64 0 0 0 .921.382l.136-.074c.561-.306 1.175.308.87.869l-.075.136a.64.64 0 0 0 .382.92l.149.045c.612.18.612 1.048 0 1.229l-.15.043a.64.64 0 0 0-.38.921l-.074-.136c-.306-.561.308-1.175.869-.87l.136.075a.64.64 0 0 0 .92-.382l.045-.148ZM14 12.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0" />
</svg> Επεξεργασία προφίλ</a>
</div>
<div class="container">
<div class=".container text-black">
<div class="row">
<div class="container-fluid" id="header-container">
<ul class="navbar-nav ml-auto">
<li class="nav-item dropdown">
<a class="navbar-brand" href="#">
<div class="profile-container">
<div class="col" id="home-questionmark">
<svg xmlns="http://www.w3.org/2000/svg" width="35" height="35"
fill="currentColor" class="bi bi-houses d-inline-block align-text-top"
viewBox="0 0 16 16" style="color: #263238;" onclick="homeBtn()">
<path
d="M5.793 1a1 1 0 0 1 1.414 0l.647.646a.5.5 0 1 1-.708.708L6.5 1.707 2 6.207V12.5a.5.5 0 0 0 .5.5.5.5 0 0 1 0 1A1.5 1.5 0 0 1 1 12.5V7.207l-.146.147a.5.5 0 0 1-.708-.708zm3 1a1 1 0 0 1 1.414 0L12 3.793V2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v3.293l1.854 1.853a.5.5 0 0 1-.708.708L15 8.207V13.5a1.5 1.5 0 0 1-1.5 1.5h-8A1.5 1.5 0 0 1 4 13.5V8.207l-.146.147a.5.5 0 1 1-.708-.708zm.707.707L5 7.207V13.5a.5.5 0 0 0 .5.5h8a.5.5 0 0 0 .5-.5V7.207z" />
</svg>
<!--<img src="images/NL-questionmark.png" alt="questionmark" width="50" height="50"
class="d-inline-block align-text-top">-->
<div id="popoverContainer" style="display: inline-block;">
<svg xmlns="http://www.w3.org/2000/svg" width="35" height="35"
fill="currentColor"
class="bi bi-question-diamond d-inline-block align-text-top"
viewBox="0 0 16 16" style="color: #263238;">
<path
d="M6.95.435c.58-.58 1.52-.58 2.1 0l6.515 6.516c.58.58.58 1.519 0 2.098L9.05 15.565c-.58.58-1.519.58-2.098 0L.435 9.05a1.482 1.482 0 0 1 0-2.098L6.95.435zm1.4.7a.495.495 0 0 0-.7 0L1.134 7.65a.495.495 0 0 0 0 .7l6.516 6.516a.495.495 0 0 0 .7 0l6.516-6.516a.495.495 0 0 0 0-.7L8.35 1.134z" />
<path
d="M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286zm1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94" />
</svg>
</div>
</div>
<div class="col" id="profile-col">
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"
fill="currentColor"
class="bi bi-person-circle d-inline-block align-text-top"
viewBox="0 0 16 16" style="color: #263238;">
<path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0" />
<path fill-rule="evenodd"
d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8m8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1" />
</svg>
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
Samaras
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="viewProfile.html" id="click" title="profile">Το προφίλ
μου</a></li>
<li>
<hr class="dropdown-divider">
</li>
<li><a class="dropdown-item" href="teacher.html" id="click"title="courses">Τα μαθήματα
μου</a></li>
<li>
<hr class="dropdown-divider">
</li>
<li><a class="dropdown-item" href="calendar.html" id="click" title="calendar">Το ημερολόγιο
μου</a></li>
<li>
<hr class="dropdown-divider">
</li>
<li><a class="dropdown-item" onclick="logOutBtn()" id="click">Έξοδος</a>
</li>
</ul>
</div>
</div>
</a>
</li>
</ul>
</div>
</div>
<hr class="new2">
<div class="row">
<div class="col">
<div class="container-fluid" id="title-container">
<div class=".container-md" id="title">
<figure>
<blockquote class="blockquote">
<!-- <p id="lesson-name"></p> -->
<p id="lessonTextElement"></p>
</blockquote>
<figcaption class="blockquote-footer">
<!-- <cite title="Source Title">Υποχρεωτικό Μάθημα Κατεύθυνσης</cite> -->
<p id="sourceTitleElement"></p>
</figcaption>
</figure>
</div>
</div>
</div>
</div>
<br>
<div class="row">
<div class="container-fluid" id="middle-container">
<table class="table table-success table-striped table-bordered border-primary table-hover"
style="width:100%">
<thead>
<tr>
<th class="custom-header" style="width:70%">Αρχικός κατάλογος</th>
<th class="custom-header">Ημερομηνία</th>
<th class="custom-header" style="width:5%"><svg xmlns="http://www.w3.org/2000/svg"
width="20" height="20" fill="currentColor" class="bi bi-pc-display-horizontal"
viewBox="0 0 16 16" id="dlt">
<path
d="M1.5 0A1.5 1.5 0 0 0 0 1.5v7A1.5 1.5 0 0 0 1.5 10H6v1H1a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-5v-1h4.5A1.5 1.5 0 0 0 16 8.5v-7A1.5 1.5 0 0 0 14.5 0zm0 1h13a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .5-.5M12 12.5a.5.5 0 1 1 1 0 .5.5 0 0 1-1 0m2 0a.5.5 0 1 1 1 0 .5.5 0 0 1-1 0M1.5 12h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1M1 14.25a.25.25 0 0 1 .25-.25h5.5a.25.25 0 1 1 0 .5h-5.5a.25.25 0 0 1-.25-.25" />
</svg></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="lesson-link" onclick="lecture('lecture6')">Διάλεξη 1 </div>
</td>
<td>10/11/2023</td>
<td class="custom-header" style="width:5%" id="dlt">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor"
class="bi bi-folder-x delete-row" viewBox="0 0 16 16">
<path
d="M.54 3.87.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3h3.982a2 2 0 0 1 1.992 2.181L15.546 8H14.54l.265-2.91A1 1 0 0 0 13.81 4H2.19a1 1 0 0 0-.996 1.09l.637 7a1 1 0 0 0 .995.91H9v1H2.826a2 2 0 0 1-1.991-1.819l-.637-7a1.99 1.99 0 0 1 .342-1.31zm6.339-1.577A1 1 0 0 0 6.172 2H2.5a1 1 0 0 0-1 .981l.006.139C1.72 3.042 1.95 3 2.19 3h5.396l-.707-.707" />
<path
d="M11.854 10.146a.5.5 0 0 0-.707.708L12.293 12l-1.146 1.146a.5.5 0 0 0 .707.708L13 12.707l1.146 1.147a.5.5 0 0 0 .708-.708L13.707 12l1.147-1.146a.5.5 0 0 0-.707-.708L13 11.293l-1.146-1.147z" />
</svg>
</td>
</tr>
<tr>
<td>
<div class="lesson-link" onclick="lecture('lecture6')">Διάλεξη 2</div>
</td>
<td>20/11/2023</td>
<td class="custom-header" style="width:5%" id="dlt">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor"
class="bi bi-folder-x delete-row" viewBox="0 0 16 16">
<path
d="M.54 3.87.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3h3.982a2 2 0 0 1 1.992 2.181L15.546 8H14.54l.265-2.91A1 1 0 0 0 13.81 4H2.19a1 1 0 0 0-.996 1.09l.637 7a1 1 0 0 0 .995.91H9v1H2.826a2 2 0 0 1-1.991-1.819l-.637-7a1.99 1.99 0 0 1 .342-1.31zm6.339-1.577A1 1 0 0 0 6.172 2H2.5a1 1 0 0 0-1 .981l.006.139C1.72 3.042 1.95 3 2.19 3h5.396l-.707-.707" />
<path
d="M11.854 10.146a.5.5 0 0 0-.707.708L12.293 12l-1.146 1.146a.5.5 0 0 0 .707.708L13 12.707l1.146 1.147a.5.5 0 0 0 .708-.708L13.707 12l1.147-1.146a.5.5 0 0 0-.707-.708L13 11.293l-1.146-1.147z" />
</svg>
</td>
</tr>
<tr>
<td>
<div class="lesson-link" onclick="lecture('lecture6')">Διάλεξη 3</div>
</td>
<td>25/11/2023</td>
<td class="custom-header" style="width:5%" id="dlt">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor"
class="bi bi-folder-x delete-row" viewBox="0 0 16 16">
<path
d="M.54 3.87.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3h3.982a2 2 0 0 1 1.992 2.181L15.546 8H14.54l.265-2.91A1 1 0 0 0 13.81 4H2.19a1 1 0 0 0-.996 1.09l.637 7a1 1 0 0 0 .995.91H9v1H2.826a2 2 0 0 1-1.991-1.819l-.637-7a1.99 1.99 0 0 1 .342-1.31zm6.339-1.577A1 1 0 0 0 6.172 2H2.5a1 1 0 0 0-1 .981l.006.139C1.72 3.042 1.95 3 2.19 3h5.396l-.707-.707" />
<path
d="M11.854 10.146a.5.5 0 0 0-.707.708L12.293 12l-1.146 1.146a.5.5 0 0 0 .707.708L13 12.707l1.146 1.147a.5.5 0 0 0 .708-.708L13.707 12l1.147-1.146a.5.5 0 0 0-.707-.708L13 11.293l-1.146-1.147z" />
</svg>
</td>
</tr>
<tr>
<td>
<div class="lesson-link" onclick="lecture('lecture6')">Διάλεξη 4</div>
</td>
<td>22/12/2023</td>
<td class="custom-header" style="width:5%" id="dlt">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor"
class="bi bi-folder-x delete-row" viewBox="0 0 16 16">
<path
d="M.54 3.87.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3h3.982a2 2 0 0 1 1.992 2.181L15.546 8H14.54l.265-2.91A1 1 0 0 0 13.81 4H2.19a1 1 0 0 0-.996 1.09l.637 7a1 1 0 0 0 .995.91H9v1H2.826a2 2 0 0 1-1.991-1.819l-.637-7a1.99 1.99 0 0 1 .342-1.31zm6.339-1.577A1 1 0 0 0 6.172 2H2.5a1 1 0 0 0-1 .981l.006.139C1.72 3.042 1.95 3 2.19 3h5.396l-.707-.707" />
<path
d="M11.854 10.146a.5.5 0 0 0-.707.708L12.293 12l-1.146 1.146a.5.5 0 0 0 .707.708L13 12.707l1.146 1.147a.5.5 0 0 0 .708-.708L13.707 12l1.147-1.146a.5.5 0 0 0-.707-.708L13 11.293l-1.146-1.147z" />
</svg>
</td>
</tr>
<tr id="lessonRow" style="display: none;">
<td>
<div class="lesson-link" onclick="emptylecture('lecture6')">
<div class="container" id="courses-container">
</div>
</div>
</td>
<td>
<div id="datetime-container" style="display: none;">
</div>
</td>
</tr>
</tbody>
</table>
<br>
<button onclick="addTextbox(event)" id="newLec">Νέα Διάλεξη
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor"
class="bi bi-plus-square" viewBox="0 0 16 16">
<path
d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z" />
<path
d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4" />
</svg>
</button>
<br>
<br>
<div class="container" id="addLecTitle">
<div id="textboxContainer">
</div>
<br>
<button onclick="addTextboxq(event)" id="hidden">Προσθήκη</button>
</div>
</div>
</div>
</div>
<div class="row">
<div class="sum-profile">
<svg xmlns="http://www.w3.org/2000/svg" width="60" height="80" fill="currentColor"
class="bi bi-person-circle d-inline-block align-text-top" viewBox="0 0 16 16"
style="color: rgb(0, 96, 100) ;">
<path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0" />
<path fill-rule="evenodd"
d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8m8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1" />
</svg>
<div class="container-md">
<div class="profile-details">
<p>ΜΑΡΙΟΣ ΠΑΠΑΔΟΠΟΥΛΟΣ
Κατηγορία: ΠΡΟΠΤΥΧΙΑΚΟΣ ΦΟΙΤΗΤΗΣ
Τμήμα Εφαρμοσμένης Πληροφορικής (Department of Applied Informatics)
ΠΑΝΕΠΙΣΤΗΜΙΟ ΜΑΚΕΔΟΝΙΑΣ (UNIVERSITY OF MACEDONIA)</p>
</div>
</div>
</div>
</div>
<hr class="new2">
<div class="row">
<div class="container-fluid" id="footer-container">
<div class="footer">
2023 NeoLearn All Rights Reserved.<br>
<a href="">Terms of UsePrivacy Policy2G Fair Use Policy</a>
</div>
</div>
</div>
</div>
</div>
<script src="lecturesTeacher.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
const deleteButtons = document.querySelectorAll('.delete-row');
deleteButtons.forEach(button => {
button.addEventListener('click', function () {
const confirmation = confirm("Είστε σίγουροι ότι θέλετε να διαγράψετε αυτήν την διάλεξη;");
if (confirmation) {
const row = this.closest('tr');
row.remove();
}
});
});
});
</script>
<script>
// Enable Bootstrap popover
$(document).ready(function () {
$('#popoverContainer').popover({
content: 'H NeoLearn είναι μια διαδικτυακή εκπαιδευτική πλατφόρμα, η οποία παρέχει καινοτόμες μεθόδους μάθησης και αξιολόγησης των εκπαιδευομένων. Η πλατφόρμα προσφέρει εκπαιδευτικό υλικό και δραστηριότητες εκμάθησης γλωσσών διαδικτυακού προγραμματισμού όπως JavaScript, Java, PHP, κλπ.',
placement: 'bottom',
trigger: 'click', // You can change this to 'hover' if you want the popover to appear on hover
});
});
</script>
<script>
// Use unique identifiers for each link
var keyPrefix = 'lessonDescription_'; // Unique prefix
var lessonText = localStorage.getItem(keyPrefix + 'lessonText');
var sourceTitle = localStorage.getItem(keyPrefix + 'sourceTitle');
// Display the values in the desired elements on the new page
var lessonTextElement = document.getElementById('lessonTextElement');
var sourceTitleElement = document.getElementById('sourceTitleElement');
if (lessonTextElement) {
lessonTextElement.textContent = lessonText;
}
if (sourceTitleElement) {
sourceTitleElement.textContent = sourceTitle;
}
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous">
</script>
</body>
<!--<div class="container-new">
<div class="container" id="courses-container">
Εδώ θα προστίθενται τα μαθήματα
</div>
<div id="datetime-container" style="display: none;">
Εδώ θα εμφανιστεί το κείμενο
</div>-->