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
125 changes: 62 additions & 63 deletions index3.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,70 +128,70 @@


var NotCP_scenarios = [
{stimulus: "<img src ='img/NotCP_10b.jpg' width=1000px>", data: {correct_response: 0,}, expert_reasoning: "<img src ='img/NotCP_10b_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/NotCP_56d.jpg' width=1000px>", data: {correct_response: 0,}, expert_reasoning: "<img src ='img/NotCP_56d_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/NotCP_72c.jpg' width=1000px>", data: {correct_response: 0,}, expert_reasoning: "<img src ='img/NotCP_72c_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/NotCP_112d.jpg' width=1000px>", data: {correct_response: 0,}, expert_reasoning: "<img src ='img/NotCP_112d_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/NotCP_117b.jpg' width=1000px>", data: {correct_response: 0,}, expert_reasoning: "<img src ='img/NotCP_117b_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/NotCP_120e.jpg' width=1000px>", data: {correct_response: 0,}, expert_reasoning: "<img src ='img/NotCP_120e_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/NotCP_132d.jpg' width=1000px>", data: {correct_response: 0,}, expert_reasoning: "<img src ='img/NotCP_132d_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/NotCP_141d.jpg' width=1000px>", data: {correct_response: 0,}, expert_reasoning: "<img src ='img/NotCP_141d_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/NotCP_145c.jpg' width=1000px>", data: {correct_response: 0,}, expert_reasoning: "<img src ='img/NotCP_145c_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/NotCP_10b.jpg' width=1000px>", data: {correct_response: 0, expert_reasoning: "<img src ='img/NotCP_10b_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/NotCP_56d.jpg' width=1000px>", data: {correct_response: 0, expert_reasoning: "<img src ='img/NotCP_56d_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/NotCP_72c.jpg' width=1000px>", data: {correct_response: 0, expert_reasoning: "<img src ='img/NotCP_72c_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/NotCP_112d.jpg' width=1000px>", data: {correct_response: 0, expert_reasoning: "<img src ='img/NotCP_112d_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/NotCP_117b.jpg' width=1000px>", data: {correct_response: 0, expert_reasoning: "<img src ='img/NotCP_117b_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/NotCP_120e.jpg' width=1000px>", data: {correct_response: 0, expert_reasoning: "<img src ='img/NotCP_120e_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/NotCP_132d.jpg' width=1000px>", data: {correct_response: 0, expert_reasoning: "<img src ='img/NotCP_132d_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/NotCP_141d.jpg' width=1000px>", data: {correct_response: 0, expert_reasoning: "<img src ='img/NotCP_141d_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/NotCP_145c.jpg' width=1000px>", data: {correct_response: 0, expert_reasoning: "<img src ='img/NotCP_145c_feedback.jpg' width=1000px>"}, },
];

var Shuffled_NotCP_Scenarios = jsPsych.randomization.shuffleNoRepeats(NotCP_scenarios);

var Prob_scenarios = [
{stimulus: "<img src ='img/Prob_23d.jpg' width=1000px>", data: {correct_response: 1,}, expert_reasoning: "<img src ='img/Prob_23d_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/Prob_41a.jpg' width=1000px>", data: {correct_response: 1,}, expert_reasoning: "<img src ='img/Prob_41a_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/Prob_70e.jpg' width=1000px>", data: {correct_response: 1,}, expert_reasoning: "<img src ='img/Prob_70e_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/Prob_72b.jpg' width=1000px>", data: {correct_response: 1,}, expert_reasoning: "<img src ='img/Prob_72b_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/Prob_75.jpg' width=1000px>", data: {correct_response: 1,}, expert_reasoning: "<img src ='img/Prob_75_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/Prob_78.jpg' width=1000px>", data: {correct_response: 1,}, expert_reasoning: "<img src ='img/Prob_78_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/Prob_80a.jpg' width=1000px>", data: {correct_response: 1,}, expert_reasoning: "<img src ='img/Prob_80a_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/Prob_91b.jpg' width=1000px>", data: {correct_response: 1,}, expert_reasoning: "<img src ='img/Prob_91b_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/Prob_106b.jpg' width=1000px>", data: {correct_response: 1,}, expert_reasoning: "<img src ='img/Prob_106b_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/Prob_23d.jpg' width=1000px>", data: {correct_response: 1, expert_reasoning: "<img src ='img/Prob_23d_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/Prob_41a.jpg' width=1000px>", data: {correct_response: 1, expert_reasoning: "<img src ='img/Prob_41a_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/Prob_70e.jpg' width=1000px>", data: {correct_response: 1, expert_reasoning: "<img src ='img/Prob_70e_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/Prob_72b.jpg' width=1000px>", data: {correct_response: 1, expert_reasoning: "<img src ='img/Prob_72b_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/Prob_75.jpg' width=1000px>", data: {correct_response: 1, expert_reasoning: "<img src ='img/Prob_75_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/Prob_78.jpg' width=1000px>", data: {correct_response: 1, expert_reasoning: "<img src ='img/Prob_78_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/Prob_80a.jpg' width=1000px>", data: {correct_response: 1, expert_reasoning: "<img src ='img/Prob_80a_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/Prob_91b.jpg' width=1000px>", data: {correct_response: 1, expert_reasoning: "<img src ='img/Prob_91b_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/Prob_106b.jpg' width=1000px>", data: {correct_response: 1, expert_reasoning: "<img src ='img/Prob_106b_feedback.jpg' width=1000px>"}, },
];

var Shuffled_Prob_Scenarios = jsPsych.randomization.shuffleNoRepeats(Prob_scenarios);

var HRN_scenarios = [
{stimulus: "<img src ='img/HRN_23b.jpg' width=1000px>", data: {correct_response: 2,}, expert_reasoning: "<img src ='img/HRN_23b_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/HRN_25.jpg' width=1000px>", data: {correct_response: 2,}, expert_reasoning: "<img src ='img/HRN_25_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/HRN_32.jpg' width=1000px>", data: {correct_response: 2,}, expert_reasoning: "<img src ='img/HRN_32_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/HRN_54a.jpg' width=1000px>", data: {correct_response: 2,}, expert_reasoning: "<img src ='img/HRN_54a_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/HRN_59a.jpg' width=1000px>", data: {correct_response: 2,}, expert_reasoning: "<img src ='img/HRN_59a_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/HRN_61b.jpg' width=1000px>", data: {correct_response: 2,}, expert_reasoning: "<img src ='img/HRN_61b_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/HRN_66a.jpg' width=1000px>", data: {correct_response: 2,}, expert_reasoning: "<img src ='img/HRN_66a_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/HRN_96a.jpg' width=1000px>", data: {correct_response: 2,}, expert_reasoning: "<img src ='img/HRN_96a_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/HRN_100.jpg' width=1000px>", data: {correct_response: 2,}, expert_reasoning: "<img src ='img/HRN_100_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/HRN_23b.jpg' width=1000px>", data: {correct_response: 2, expert_reasoning: "<img src ='img/HRN_23b_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/HRN_25.jpg' width=1000px>", data: {correct_response: 2, expert_reasoning: "<img src ='img/HRN_25_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/HRN_32.jpg' width=1000px>", data: {correct_response: 2, expert_reasoning: "<img src ='img/HRN_32_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/HRN_54a.jpg' width=1000px>", data: {correct_response: 2, expert_reasoning: "<img src ='img/HRN_54a_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/HRN_59a.jpg' width=1000px>", data: {correct_response: 2, expert_reasoning: "<img src ='img/HRN_59a_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/HRN_61b.jpg' width=1000px>", data: {correct_response: 2, expert_reasoning: "<img src ='img/HRN_61b_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/HRN_66a.jpg' width=1000px>", data: {correct_response: 2, expert_reasoning: "<img src ='img/HRN_66a_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/HRN_96a.jpg' width=1000px>", data: {correct_response: 2, expert_reasoning: "<img src ='img/HRN_96a_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/HRN_100.jpg' width=1000px>", data: {correct_response: 2, expert_reasoning: "<img src ='img/HRN_100_feedback.jpg' width=1000px>"}, },
];

var Shuffled_HRN_Scenarios = jsPsych.randomization.shuffleNoRepeats(HRN_scenarios);

var ROSH_scenarios = [
{stimulus: "<img src ='img/ROSH_11.jpg' width=1000px>", data: {correct_response: 3,}, expert_reasoning: "<img src ='img/ROSH_11_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/ROSH_30a.jpg' width=1000px>", data: {correct_response: 3,}, expert_reasoning: "<img src ='img/ROSH_30a_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/ROSH_42a.jpg' width=1000px>", data: {correct_response: 3,}, expert_reasoning: "<img src ='img/ROSH_42a_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/ROSH_48.jpg' width=1000px>", data: {correct_response: 3,}, expert_reasoning: "<img src ='img/ROSH_48_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/ROSH_68b.jpg' width=1000px>", data: {correct_response: 3,}, expert_reasoning: "<img src ='img/ROSH_68b_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/ROSH_90a.jpg' width=1000px>", data: {correct_response: 3,}, expert_reasoning: "<img src ='img/ROSH_90a_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/ROSH_103a.jpg' width=1000px>", data: {correct_response: 3,}, expert_reasoning: "<img src ='img/ROSH_103a_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/ROSH_123.jpg' width=1000px>", data: {correct_response: 3,}, expert_reasoning: "<img src ='img/ROSH_123_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/ROSH_140.jpg' width=1000px>", data: {correct_response: 3,}, expert_reasoning: "<img src ='img/ROSH_140_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/ROSH_11.jpg' width=1000px>", data: {correct_response: 3, expert_reasoning: "<img src ='img/ROSH_11_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/ROSH_30a.jpg' width=1000px>", data: {correct_response: 3, expert_reasoning: "<img src ='img/ROSH_30a_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/ROSH_42a.jpg' width=1000px>", data: {correct_response: 3, expert_reasoning: "<img src ='img/ROSH_42a_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/ROSH_48.jpg' width=1000px>", data: {correct_response: 3, expert_reasoning: "<img src ='img/ROSH_48_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/ROSH_68b.jpg' width=1000px>", data: {correct_response: 3, expert_reasoning: "<img src ='img/ROSH_68b_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/ROSH_90a.jpg' width=1000px>", data: {correct_response: 3, expert_reasoning: "<img src ='img/ROSH_90a_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/ROSH_103a.jpg' width=1000px>", data: {correct_response: 3, expert_reasoning: "<img src ='img/ROSH_103a_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/ROSH_123.jpg' width=1000px>", data: {correct_response: 3, expert_reasoning: "<img src ='img/ROSH_123_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/ROSH_140.jpg' width=1000px>", data: {correct_response: 3, expert_reasoning: "<img src ='img/ROSH_140_feedback.jpg' width=1000px>"}, },
];
var Shuffled_ROSH_Scenarios = jsPsych.randomization.shuffleNoRepeats(ROSH_scenarios);

var iROSH_scenarios = [
{stimulus: "<img src ='img/iROSH_17b.jpg' width=1000px>", data: {correct_response: 4,}, expert_reasoning: "<img src ='img/iROSH_17b_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/iROSH_24b.jpg' width=1000px>", data: {correct_response: 4,}, expert_reasoning: "<img src ='img/iROSH_24b_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/iROSH_37e.jpg' width=1000px>", data: {correct_response: 4,}, expert_reasoning: "<img src ='img/iROSH_37e_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/iROSH_71a.jpg' width=1000px>", data: {correct_response: 4,}, expert_reasoning: "<img src ='img/iROSH_71a_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/iROSH_106a.jpg' width=1000px>", data: {correct_response: 4,}, expert_reasoning: "<img src ='img/iROSH_106a_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/iROSH_108a.jpg' width=1000px>", data: {correct_response: 4,}, expert_reasoning: "<img src ='img/iROSH_108a_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/iROSH_115.jpg' width=1000px>", data: {correct_response: 4,}, expert_reasoning: "<img src ='img/iROSH_115_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/iROSH_116.jpg' width=1000px>", data: {correct_response: 4,}, expert_reasoning: "<img src ='img/iROSH_116_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/iROSH_128.jpg' width=1000px>", data: {correct_response: 4,}, expert_reasoning: "<img src ='img/iROSH_128_feedback.jpg' width=1000px>", },
{stimulus: "<img src ='img/iROSH_17b.jpg' width=1000px>", data: {correct_response: 4, expert_reasoning: "<img src ='img/iROSH_17b_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/iROSH_24b.jpg' width=1000px>", data: {correct_response: 4, expert_reasoning: "<img src ='img/iROSH_24b_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/iROSH_37e.jpg' width=1000px>", data: {correct_response: 4, expert_reasoning: "<img src ='img/iROSH_37e_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/iROSH_71a.jpg' width=1000px>", data: {correct_response: 4, expert_reasoning: "<img src ='img/iROSH_71a_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/iROSH_106a.jpg' width=1000px>", data: {correct_response: 4, expert_reasoning: "<img src ='img/iROSH_106a_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/iROSH_108a.jpg' width=1000px>", data: {correct_response: 4, expert_reasoning: "<img src ='img/iROSH_108a_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/iROSH_115.jpg' width=1000px>", data: {correct_response: 4, expert_reasoning: "<img src ='img/iROSH_115_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/iROSH_116.jpg' width=1000px>", data: {correct_response: 4, expert_reasoning: "<img src ='img/iROSH_116_feedback.jpg' width=1000px>"}, },
{stimulus: "<img src ='img/iROSH_128.jpg' width=1000px>", data: {correct_response: 4, expert_reasoning: "<img src ='img/iROSH_128_feedback.jpg' width=1000px>"}, },
];

var Shuffled_iROSH_Scenarios = jsPsych.randomization.shuffleNoRepeats(iROSH_scenarios);
Expand Down Expand Up @@ -402,11 +402,6 @@
choices: categoryButtons,
post_trial_gap: 100,
data: jsPsych.timelineVariable('data'),
on_finish: function(data) {
var lastClick = jsPsych.data.get().last(1).values()[0].button_pressed;
data.correct_response = lastClick == data.correct_response;

}
};

var PreTest_Feedback = {
Expand Down Expand Up @@ -485,19 +480,23 @@
type: 'html-button-response',
is_html:true,
stimulus: function(){
// var lastClick = jsPsych.data.get().last(1).values()[0].button_pressed;
var lastChoice = categoryButtons[jsPsych.data.get().last(1).values()[0].button_pressed];
var display_result = "<b>You chose</b> <br><br><img src='img/" + lastChoice + ".jpg' width = 280px>" + condition_feedback;
if (jsPsych.data.get().last(1).values()[0].correct_response) {
display_result += "<img src='img/greenTick.png' width = 280px>"
} else {
display_result += "<img src='img/redCross.png' width = 280px>"
}
var condition_feedback = ""
if (condition == "Expert") {
condition_feedback += "<img src='img/" + jsPsych.timelineVariable('expert_reasoning') + "jpg' width=1000px>"
} else {condition_feedback += ""}
return display_result
var lastTrial = jsPsych.data.get().last(1).values()[0];
var lastClick = parseInt(lastTrial.button_pressed);
var lastChoice = categoryButtons[lastClick];
var correct_response = lastTrial.correct_response;

var display_result = "<b>You chose</b> <br><br><img src='img/" + lastChoice + ".jpg' width = 280px>";

if (lastClick === correct_response) {
display_result += "<img src='img/greenTick.png' width = 280px>"
} else {
display_result += "<img src='img/redCross.png' width = 280px>"
}

if (condition === "Expert") {
display_result += lastTrial.expert_reasoning;
}
return display_result;
},
choices: ['Next'],
on_finish: function(data){i = i + 1}, //need this to stay until the next Training_Trial, so that scenarios[i] now = scenarios[i+1]
Expand Down