Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion index4.html
Original file line number Diff line number Diff line change
Expand Up @@ -450,12 +450,14 @@
var correct_response = lastTrial.correct_response;
// var last_stimuli = lastTrial.stimuli;
//var response_image = lastTrial.response_image;
var display_result = lastTrial.stimuli + "<br><br><b>You chose:</b> <img src='img/" + lastChoice + ".jpg' width = 280px>" + "<b>Child protection experts chose:</b>" + lastTrial.response_image;
var display_result = lastTrial.stimulus + "<br><br><b>You chose:</b> <img src='img/" + lastChoice + ".jpg' width = 280px>";
if (lastClick === correct_response) {
display_result += "<b>This was:</b> <img src='img/greenTick.png' width = 280px>"
} else {
display_result += "<b>This was:</b> <img src='img/redCross.png' width = 280px>"
}
display_result = "<b>Child protection experts chose:</b>" + lastTrial.response_image;

if (condition === "Expert") {
display_result += lastTrial.expert_reasoning;
}
Expand Down