Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit 6dec9e6

Browse files
committed
log start of peer_async
1 parent c43d48a commit 6dec9e6

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

views/peer/peer_async.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{{extend 'layout.html'}}
2-
{{block moreincludes}}
1+
{{extend 'layout.html'}}
2+
{{block moreincludes}}
33
{{include '_sphinx_static_files.html'}}
44
{{end}}
55

@@ -47,9 +47,17 @@ <h4>A discussion for you to consider</h4>
4747
});
4848
var studentVoteCount = 1;
4949
var nextQuestionNumber = {{= nextQnum}};
50+
var assignId = '{{=assignment_id}}'
5051

5152
// this cannot happen until the event that indicates components are loaded
5253
$(document).on("runestone:login-complete", function () {
54+
logPeerEvent({
55+
sid: eBookConfig.username,
56+
div_id: `${assignId}`,
57+
event: "peer",
58+
act: "start_async",
59+
course: eBookConfig.course,
60+
})
5361
setTimeout(function () {
5462
$(window.mcList[currentQuestion].submitButton).click(function () {
5563
if (studentVoteCount == 1) {

0 commit comments

Comments
 (0)