Skip to content

Commit 078ea8f

Browse files
author
Jamie Li
committed
discount_fixed__dartmouth_followup
1 parent c3020be commit 078ea8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: discount_fixed__dartmouth_followup/experiment.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -429,17 +429,17 @@ for (x = 0; x < test_stim_index.length; x++) {
429429
timing_response: test_get_ITI,
430430
data: test_trials[x].data,
431431
is_html: true,
432-
choices: [choices[0][1], choices[1][1]],
432+
choices: choices,
433433
response_ends_trial: false,
434434
timing_post_trial: 0,
435435
prompt: '<div class = fb_box_left><p class = center-text style = "font-size: 20px">left arrow key = option on screen</p></div>'+
436436
'<div class = fb_box_right><p class = center-text style = "font-size: 20px">down arrow key = $20 today</p></div>',
437437
on_finish: function(data) {
438438
var choice = false;
439-
if (data.key_press == choices[0][1]) {
439+
if (data.key_press == 37) {
440440
choice = 'larger_later';
441441
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) {
443443
choice = 'smaller_sooner';
444444
bonus_list.push({'amount': data.small_amount, 'delay': 0})
445445
}

0 commit comments

Comments
 (0)