Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2020-101
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sachith Fernando
2020-101
Commits
d28b5572
Commit
d28b5572
authored
Dec 26, 2020
by
I.K Seneviratne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Committing the modifications of finding correlations between student behavior components.
.
parent
723f804a
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
310 additions
and
131 deletions
+310
-131
FirstApp/api.py
FirstApp/api.py
+1
-0
FirstApp/logic/student_behavior_process.py
FirstApp/logic/student_behavior_process.py
+200
-47
FirstApp/templates/FirstApp/Home.html
FirstApp/templates/FirstApp/Home.html
+109
-84
No files found.
FirstApp/api.py
View file @
d28b5572
...
...
@@ -1167,6 +1167,7 @@ class GetLectureActivityCorrelations(APIView):
activity_correlations
=
ar
.
get_activity_correlations
(
individual_lec_activities
,
lec_recorded_activity_data
)
return
Response
({
"correlations"
:
activity_correlations
})
...
...
FirstApp/logic/student_behavior_process.py
View file @
d28b5572
This diff is collapsed.
Click to expand it.
FirstApp/templates/FirstApp/Home.html
View file @
d28b5572
...
...
@@ -1240,7 +1240,7 @@
function
displayActivityEmotionCorrelations
(
correlations
)
{
let
htmlString
=
""
;
if
(
correlations
.
length
!==
0
)
{
//create the html content for the activity correlation table
for
(
let
i
=
0
;
i
<
correlations
.
length
;
i
++
)
{
let
corr
=
correlations
[
i
];
...
...
@@ -1275,6 +1275,14 @@
htmlString
+=
"
</tr>
"
;
}
}
else
{
htmlString
+=
"
<tr>
"
;
htmlString
+=
"
<td colspan='3'>
"
;
htmlString
+=
"
<span class='font-italic'>No correlations were found</span>
"
;
htmlString
+=
"
</td>
"
;
htmlString
+=
"
</tr>
"
;
}
//append to the
<
tbody
>
$
(
'
#student_activity_emotion_corr_tbody
'
).
append
(
htmlString
);
...
...
@@ -1293,6 +1301,7 @@
let
htmlString
=
""
;
if
(
correlations
.
length
!==
0
)
{
//create the html content for the activity correlation table
for
(
let
i
=
0
;
i
<
correlations
.
length
;
i
++
)
{
let
corr
=
correlations
[
i
];
...
...
@@ -1327,6 +1336,13 @@
htmlString
+=
"
</tr>
"
;
}
}
else
{
htmlString
+=
"
<tr>
"
;
htmlString
+=
"
<td colspan='3'>
"
;
htmlString
+=
"
<span class='font-italic'>No correlations were found</span>
"
;
htmlString
+=
"
</td>
"
;
htmlString
+=
"
</tr>
"
;
}
//append to the
<
tbody
>
$
(
'
#student_activity_gaze_corr_tbody
'
).
append
(
htmlString
);
...
...
@@ -1346,6 +1362,7 @@
let
htmlString
=
""
;
if
(
correlations
.
length
!==
0
)
{
//create the html content for the activity correlation table
for
(
let
i
=
0
;
i
<
correlations
.
length
;
i
++
)
{
let
corr
=
correlations
[
i
];
...
...
@@ -1380,6 +1397,14 @@
htmlString
+=
"
</tr>
"
;
}
}
else
{
htmlString
+=
"
<tr>
"
;
htmlString
+=
"
<td colspan='3'>
"
;
htmlString
+=
"
<span class='font-italic'>No correlations were found</span>
"
;
htmlString
+=
"
</td>
"
;
htmlString
+=
"
</tr>
"
;
}
//append to the
<
tbody
>
$
(
'
#student_emotion_gaze_corr_tbody
'
).
append
(
htmlString
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment