File tree 1 file changed +3
-3
lines changed
discount_fixed__dartmouth_followup
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -429,17 +429,17 @@ for (x = 0; x < test_stim_index.length; x++) {
429
429
timing_response : test_get_ITI ,
430
430
data : test_trials [ x ] . data ,
431
431
is_html : true ,
432
- choices : [ choices [ 0 ] [ 1 ] , choices [ 1 ] [ 1 ] ] ,
432
+ choices : choices ,
433
433
response_ends_trial : false ,
434
434
timing_post_trial : 0 ,
435
435
prompt : '<div class = fb_box_left><p class = center-text style = "font-size: 20px">left arrow key = option on screen</p></div>' +
436
436
'<div class = fb_box_right><p class = center-text style = "font-size: 20px">down arrow key = $20 today</p></div>' ,
437
437
on_finish : function ( data ) {
438
438
var choice = false ;
439
- if ( data . key_press == choices [ 0 ] [ 1 ] ) {
439
+ if ( data . key_press == 37 ) {
440
440
choice = 'larger_later' ;
441
441
bonus_list . push ( { 'amount' : data . large_amount , 'delay' : data . later_delay } )
442
- } else if ( data . key_press == choices [ 1 ] [ 1 ] ) {
442
+ } else if ( data . key_press == 40 ) {
443
443
choice = 'smaller_sooner' ;
444
444
bonus_list . push ( { 'amount' : data . small_amount , 'delay' : 0 } )
445
445
}
You can’t perform that action at this time.
0 commit comments