Commit 749de317 authored by Dasoo Milton Yoon's avatar Dasoo Milton Yoon

fdas

parent e056fe9a
......@@ -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;cur_items_shuffle = shuffle(cur_items)&amp;#10;&amp;#10;feedback_list = cur_items_shuffle.slice(0, 2)" valType="extendedCode"/>
<Param name="Begin JS Experiment" updates="constant" val="" 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,8 +109,6 @@ var key_resp;
var Instruction_for_FeedbackClock;
var text_9;
var key_resp_8;
var cur_items_shuffle;
var feedback_list;
var FeedbackClock;
var text_10;
var key_resp_9;
......@@ -260,21 +258,6 @@ function experimentInit() {
key_resp_8 = new core.Keyboard({psychoJS, clock: new util.Clock(), waitForStart: true});
function shuffle(a) {
var j, x, i;
for (i = a.length - 1; i > 0; i--) {
j = Math.floor(Math.random() * (i + 1));
x = a[i];
a[i] = a[j];
a[j] = x;
}
return a;
}
cur_items_shuffle = shuffle(cur_items)
feedback_list = cur_items_shuffle.slice(0, 2)
// Initialize components for Routine "Feedback"
FeedbackClock = new util.Clock();
text_10 = new visual.TextStim({
......@@ -346,6 +329,7 @@ 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,8 +101,6 @@ var key_resp;
var Instruction_for_FeedbackClock;
var text_9;
var key_resp_8;
var cur_items_shuffle;
var feedback_list;
var FeedbackClock;
var text_10;
var key_resp_9;
......@@ -252,21 +250,6 @@ function experimentInit() {
key_resp_8 = new core.Keyboard({psychoJS, clock: new util.Clock(), waitForStart: true});
function shuffle(a) {
var j, x, i;
for (i = a.length - 1; i > 0; i--) {
j = Math.floor(Math.random() * (i + 1));
x = a[i];
a[i] = a[j];
a[j] = x;
}
return a;
}
cur_items_shuffle = shuffle(cur_items)
feedback_list = cur_items_shuffle.slice(0, 2)
// Initialize components for Routine "Feedback"
FeedbackClock = new util.Clock();
text_10 = new visual.TextStim({
......@@ -338,6 +321,7 @@ 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