-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathreport.html
351 lines (290 loc) · 11.1 KB
/
report.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Psychological report</title>
<link rel="icon" href="css\qsee-parent-non-shadow.png" />
<link
href="https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@300&display=swap"
rel="stylesheet"
/>
<!-- <link rel="stylesheet" href="report.css"> -->
<style>
* {
margin: 0;
padding: 0;
font-family: sans-serif;
}
.chartMenu {
width: 100vw;
height: 40px;
background: #1A1A1A;
color: rgba(255, 26, 104, 1);
}
.chartMenu p {
padding: 10px;
font-size: 20px;
}
.chartCard{
width: 100vw;
height: calc(100vh-40px);
background: rgba(255, 26, 104, 0.2);
display: flex;
align-items: center;
justify-content: center;
}
.chartBox{
width: 60%;
padding: 30px;
border-radius: 20px;
border: solid 2px rgba(100, 26, 104, 1);
background: white;
}
.chart_container {
justify-content: center;
display: flex;
}
h1 {
text-align: center;
font-family: "Baloo 2", cursive;
}
p{
text-transform: bottom;
}
img
{
display:block;
margin-top: 3%;
margin-left: auto;
margin-right: auto;
}
pre
{
text-align: center;
font-family: "Baloo 2", cursive;
}
i{
justify-content: center;
display: flex;
}
.back {
color: #161616;
font-family: "Baloo 2", cursive;
font-size: 28px;
position: absolute;
top: 0px;
left: 30px;
}
.talk{
background: url("img\speaker-high-volume_1f50a.png")
width: 100px;
}
</style>
</head>
<body>
<a href="parent-dashboard.html" class="back"> Back</a>
<img src="css\qsee-student-non-shadow.png" alt="QSEE" style="width:8%; height:8%;">
<br>
<h1>Educational Psychology Assessment Report</h1>
<br>
<pre style="font-size: 120%"><b>ID:</b> 001 <b>Class:</b> 3 Mutiara</pre>
<br>
<br>
</div class="chartCard">
<div class="chart_container">
<div class="chartBox">
<canvas id = "myChart"></canvas>
</div>
</div>
<br>
<div class="chart_container">
<div class="chartBox">
<canvas id = "doughnutChart"></canvas>
<br>
<i> The student's skillset is measured based on his/her conversation with Qsee and game interest.</i>
<br>
<br>
<b>Analytical</b>
<p> The ability to collect and analyse data, solve a particular problem, and make decisions on the basis of available information.</p>
<br>
<b>Creativity</b>
<p> The ability to think about a task or a problem in a new or different way, or the ability to use the imagination to generate new ideas.</p>
<br>
<b>Exploration</b>
<p> The ability to search for the purpose of discovery of information or resources; explore or investigate the unknown regions </p>
<br>
<b>Competiveness</b>
<p>The ability to strive for the same object, position, or reward that another person is striving for.</p>
<br>
<b>Social </b>
<p> The ability to display good manners, communicate effectively with others, being considerate of the feelings of others and express personal needs.
</p>
<br>
<b>Mastery </b>
<p>The ability to continuously strive to achieve and improve upon one’s skills until a standard of excellence is achieved through repetition and practice, despite the absence of physical rewards.</p>
<br>
<button class="talk">
</div>
</div>
<br>
<div class="chart_container">
<div class="chartBox">
<b>Strengths and Weakness</b>
<p>Based on the analysis of the data above, we notice that Ali's Mastery skill is higher than all of the above skills. On the contrary, Ali has to improve his exploration skill to have a well-rounded skillset. </p>
<br>
<b>Gifts and Talents</b>
<p>Ali has a desire to become competent at a tast. Kids with high mastery orientation stand out and parents don't have to coax him to learn. </p>
<br>
<b>Nature</b>
<p>Students with mastery orientation believe that intelligence can be nurtured and developed. Such students are likely to earn better grades, even in the face of trouble.</p>
<br>
<b>Advice for Parents</b>
<p>Mastery orientation can be encouraged through positive parenting techniques and parental involvement in education. Ali's parent should praise Ali's effort when Ali excel at a lesson and offer constructive criticism when he work shows room for improvement </p>
<br>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.min.js"></script>
<script>
var ctx= document.getElementById('myChart').getContext('2d');
var chart= new Chart(ctx, {
type:'radar',
data:{
labels:["Language", "Math", "Science","ICT","Arts","Music"],
datasets:[{
label: "Strength",
fontSize:20,
backgroundColor: 'rgba(255, 99, 132, 0.2)',
borderColor:'rgb(255,99,132)',
data: [41.67,21.86, 29.16,41.66,37.5,20.83],
},{
label: "Interest",
backgroundColor: 'rgb(0,0,132,0.3)',
borderWidth: 2 ,
borderColor:'rgb(0,0,132)',
data: [49.41,21.87, 29.16,31.26,50.57,5.78],
}]
},
options: {
title:{
display:true,
text:['Evaluation of Student\'s Strengths and Interest'],
fontSize: 24,
},
subtitle: {
display: true,
text: 'Based on',
},
legend:{
position: 'bottom',
labels:{
fontSize:15,
}
},
scale:{
pointLabels:{
fontSize:15,
},
},
}
});
var ctx= document.getElementById('doughnutChart').getContext('2d');
var doughnutChart= new Chart(ctx, {
type:'doughnut',
data:{
labels:['Analytical',
'Creativity',
'Exploration',
'Competiveness',
'Social',
'Mastery'],
datasets:[{
label: 'Ali\'s Personality Type',
backgroundColor: [
'rgb(255,99,132,0.3)',
'rgb(54,162,235,0.3)',
'rgb(255,106,86,0.3)',
'rgb(75,192,192,0.3)',
'rgb(153,102,255,0.3)',
'rgb(255,159,64,0.3)',
],
borderColor: [
'rgb(255,99,132,0.3)',
'rgb(54,162,235,0.3)',
'rgb(255,106,86,0.3)',
'rgb(75,192,192,0.3)',
'rgb(153,102,255,0.3)',
'rgb(255,159,64,0.3)',
],
data: [23, 20, 8, 13, 10, 26],
}]
},
options: {
radius:'50%',
legend: {
position: 'bottom',
labels:{
fontSize:15,
}
},
plugins: {
datalabels: {
formatter: (value) => {
return value + '%';
}
}
},
title:{
display:true,
text:'Student\'s Skillset',
fontSize: 24,
},
},
});
// the text to speech part
// The JavaScript Part Starts
const btn = document.querySelector(".talk");
const content = document.querySelector(".voice");
const report = ["opening report sir"];
const attendance = ["opening attendance sir"];
const SpeechRecognition =
window.SpeechRecognition || window.webkitSpeechRecognition;
const recognition = new SpeechRecognition();
recognition.onstart = function () {
console.log("How Can I Help You ?");
};
recognition.onresult = function (event) {
const current = event.resultIndex;
const transcript = event.results[current][0].transcript;
content.textContent = transcript;
readOutLoud(transcript);
};
btn.addEventListener("click", () => {
recognition.start();
});
function readOutLoud(message) {
const speech = new SpeechSynthesisUtterance();
speech.text = "I am not able to understand ,sir";
if (message.includes("report")) {
const finalText = report[Math.floor(Math.random() * report.length)];
speech.text = finalText;
window.open("report.html");
}
if (message.includes("attendance")) {
const finalText =
attendance[Math.floor(Math.random() * attendance.length)];
speech.text = finalText;
window.open(
"attendance_chart.html"
);
}
speech.volume = 1;
speech.rate = 1.1;
speech.pitch = 1;
window.speechSynthesis.speak(speech);
}
</script>
</body>
</html>