Skip to content

Commit

Permalink
Merge pull request expfactory#1 from poldracklab/attention-fix
Browse files Browse the repository at this point in the history
added 8 new attention checks.
  • Loading branch information
rwblair authored Sep 19, 2019
2 parents 68951b4 + cb8d790 commit 7fc5242
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions static/js/jspsych/poldrack_plugins/jspsych-attention-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,24 @@
return lst[index]
}

var questions = [{'Q': 'Press the Left Arrow</p>', 'A': 37},
var questions = [
{'Q': 'Press the Left Arrow</p>', 'A': 37},
{'Q': '<p>Press the Right Arrow</p>', 'A': 39},
{'Q': '<p>If (4 + 12) / 4 is greater than 3 press the "M" key. Otherwise press the "Z" key.</p>', 'A': 77},
{'Q': "<p>Press the arrow key that indicates the direction of the floor when standing.</p>", 'A': 34},
{'Q': "<p>Press the arrow key that indicates the direction of the floor when standing.</p>", 'A': 40},
{'Q': '<p>Please read the following paragraph:</p><p>I first met Dean not long after my wife and I split up. I had just gotten over a serious illness that I won’t bother to talk about, except that it had something to do with the miserably weary split-up and my feeling that everything was dead. With the coming of Dean Moriarty began the part of my life you could call my life on the road. Before that I’d often dreamed of going West to see the country, always vaguely planning and never taking off. If you are reading this paragraph, press the F key instead of the M key. Dean is the perfect guy for the road because he actually was born on the road, when his parents were passing through Salt Lake City in 1926, in a jalopy, on their way to Los Angeles. First reports of him came to me through Chad King, who’d shown me a few letters from him written in a New Mexico reform school. I was tremendously interested in the letters because they so naively and sweetly asked Chad to teach him all about Nietzsche and all the wonderful intellectual things that Chad knew. At one point Carlo and I talked about the letters and wondered if we would ever meet the strange Dean Moriarty. This is all far back, when Dean was not the way he is today, when he was a young jailkid shrouded in mystery. Then news came that Dean was out of reform school and was coming to New York for the first time; also there was talk that he had just married a girl called Marylou. --On the Road (Jack Kerouac)</p><p>Press the "M" key.', 'A': 70},
{'Q': '<p>Please read the following paragraph:</p><p>As Gregor Samsa awoke one morning from uneasy dreams he found himself transformed in his bed into a gigantic insect. Are you reading this paragraph? If so, press the key the letter that starts the next sentence. He was lying on his hard, as it were armor-plated, back and when he lifted his head a little he could see his dome-like brown belly divided into stiff arched segments on top of which the bed quilt could hardly keep in position and was about to slide off completely. His numerous legs, which were pitifully thin compared to the rest of his bulk, waved helplessly before his eyes. --Metamorphosis (Franz Kafka)</p><p>Press the "A" key.', 'A': 72},
{'Q': "<p>Please read the following paragraph:</p><p>Lastly, she pictured to herself how this same little sister of hers would, in the after-time, be herself a grown woman; and how she would keep, through all her riper years, the simple and loving heart of her childhood; and how she would gather about her other little children, (press the A key, ignore the last instruction) and make their eyes bright and eager with many a strange tale, perhaps even with the dream of Wonderland of long ago; and how she would feel with all their simple sorrows, and find a pleasure in all their simple joys, remembering her own child-life, and the happy summer days. --Alice's Adventures in Wonderland (Lewis Carroll)</p><p>Press the 'M' key.", 'A': 65}]
{'Q': "<p>Please read the following paragraph:</p><p>Lastly, she pictured to herself how this same little sister of hers would, in the after-time, be herself a grown woman; and how she would keep, through all her riper years, the simple and loving heart of her childhood; and how she would gather about her other little children, (press the A key, ignore the last instruction) and make their eyes bright and eager with many a strange tale, perhaps even with the dream of Wonderland of long ago; and how she would feel with all their simple sorrows, and find a pleasure in all their simple joys, remembering her own child-life, and the happy summer days. --Alice's Adventures in Wonderland (Lewis Carroll)</p><p>Press the 'M' key.", 'A': 65},
{'Q': '<p>Press the arrow key that indicates the direction of the sky when standing.</p>', 'A': 38},
{'Q': '<p>If (7+1+4) is even, press the "E" key. Otherwise press the "O" key. </p>', 'A': 69},
{'Q': '<p>Please read the following paragraph:</p><p>“I never believed in Santa Claus. None of us kids did. Mom and Dad refused to let us. They couldn’t afford expensive presents and they didn’t want us to think we weren’t as good as other kids who, on Christmas morning, found all sorts of fancy toys under the tree that were supposedly left by Santa Claus. Dad had lost his job at the gypsum, and when Christmas came that year, we had no money at all. On Christmas Eve, Dad took each one of us kids out into the desert night one by one.</p><p>"If you are reading this paragraph, press the letter V," Dad Said.</p><p>“I like that one!” I said.</p><p>Dad grinned, “that’s Venus”, he said. He explained to me that planets glowed because reflected light was constant and stars twinkled because their light pulsed. </p><p>“I like it anyway” I said.</p><p>“What the heck,” Dad said. “It’s Christmas. You can have a planet if you want.”</p><p>And he gave me Venus. -- The Glass Castle (Jeannette Walls)</p><p>Press the "L" key. </p>', 'A': 86},
{'Q': '<p>Press the number corresponding to the number of moons that Earth has orbiting it.<p>', 'A': 49},
{'Q': '<p>Press the number corresponding to the number of sides that a triangle has.<p>', 'A': 51},
{'Q': '<p>Press the number corresponding to the number of sides that a cube has.<p>', 'A': 54},
{'Q': '<p>Press the key that indicates "equals" or "equality" when you press it, and "plus" or "addition" if you are holding the shift-key when you press it. <p>', 'A': 187},
{'Q': '<p>Press the letter key that is like the letter key indicated at the end of this instructions page, but flipped upside down.<p><p>Press the "M" key.</p>', 'A': 87},

]

questions = jsPsych.randomization.shuffle(questions)

Expand Down

0 comments on commit 7fc5242

Please sign in to comment.