Commit 2d44fecd authored by Dasoo Milton Yoon's avatar Dasoo Milton Yoon

curr -> cur

parent 3a92e5ac
......@@ -441,7 +441,7 @@
</KeyboardComponent>
<CodeComponent name="code_3">
<Param name="Begin Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="Begin JS Experiment" updates="constant" val="function shuffle(a) {&amp;#10; var j, x, i;&amp;#10; for (i = a.length - 1; i &gt; 0; i--) {&amp;#10; j = Math.floor(Math.random() * (i + 1));&amp;#10; x = a[i];&amp;#10; a[i] = a[j];&amp;#10; a[j] = x;&amp;#10; }&amp;#10; return a;&amp;#10;}&amp;#10;&amp;#10;&amp;#10;curr_items_shuffle = shuffle(curr_items)&amp;#10;&amp;#10;feedback_list = curr_items_shuffle.slice(0, 2)" valType="extendedCode"/>
<Param name="Begin JS Experiment" updates="constant" val="function shuffle(a) {&amp;#10; var j, x, i;&amp;#10; for (i = a.length - 1; i &gt; 0; i--) {&amp;#10; j = Math.floor(Math.random() * (i + 1));&amp;#10; x = a[i];&amp;#10; a[i] = a[j];&amp;#10; a[j] = x;&amp;#10; }&amp;#10; return a;&amp;#10;}&amp;#10;&amp;#10;&amp;#10;cur_items_shuffle = shuffle(cur_items)&amp;#10;&amp;#10;feedback_list = cur_items_shuffle.slice(0, 2)" valType="extendedCode"/>
<Param name="Begin JS Routine" updates="constant" val="" valType="extendedCode"/>
<Param name="Begin Routine" updates="constant" val="" valType="extendedCode"/>
<Param name="Code Type" updates="None" val="JS" valType="str"/>
......
......@@ -109,7 +109,7 @@ var key_resp;
var Instruction_for_FeedbackClock;
var text_9;
var key_resp_8;
var curr_items_shuffle;
var cur_items_shuffle;
var feedback_list;
var FeedbackClock;
var text_10;
......@@ -272,9 +272,9 @@ function experimentInit() {
}
curr_items_shuffle = shuffle(curr_items)
cur_items_shuffle = shuffle(cur_items)
feedback_list = curr_items_shuffle.slice(0, 2)
feedback_list = cur_items_shuffle.slice(0, 2)
// Initialize components for Routine "Feedback"
FeedbackClock = new util.Clock();
text_10 = new visual.TextStim({
......@@ -346,7 +346,6 @@ var available_items_shuffle;
var items_list_1;
var items_list_2;
var items_list_3;
var cur_items_shuffle;
var feedback_list_1;
var feedback_list_2;
var feedback_list_3;
......
......@@ -101,7 +101,7 @@ var key_resp;
var Instruction_for_FeedbackClock;
var text_9;
var key_resp_8;
var curr_items_shuffle;
var cur_items_shuffle;
var feedback_list;
var FeedbackClock;
var text_10;
......@@ -264,9 +264,9 @@ function experimentInit() {
}
curr_items_shuffle = shuffle(curr_items)
cur_items_shuffle = shuffle(cur_items)
feedback_list = curr_items_shuffle.slice(0, 2)
feedback_list = cur_items_shuffle.slice(0, 2)
// Initialize components for Routine "Feedback"
FeedbackClock = new util.Clock();
text_10 = new visual.TextStim({
......@@ -338,7 +338,6 @@ var available_items_shuffle;
var items_list_1;
var items_list_2;
var items_list_3;
var cur_items_shuffle;
var feedback_list_1;
var feedback_list_2;
var feedback_list_3;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment