Shared Scripts, Data, Stimuli, Files, and Demos
If you are a registered user and signed in, you can here copy this script and its stimuli to your own account, where you can edit it and change it in any way you want.
It is absolutely free to register (no credit card info asked!). You can then instantly copy this experiment with one click and edit it, change its accompanying texts, its landing page, stimuli, etc. Invite your colleagues, friends, or students to check out your experiment. There is no limit on how many people can do your experiment, even with a free account.
The catch? There is no catch! Just keep in mind that with a free account, you cannot collect data. For teaching that is usually not a problem. For research, prepaid data collection (unlimited subjects) starts as low as €10.00 for a 10-day period.
//ReTest version of the Doors Task by Baddeley //Code written by Lena F. Sachs //Code adapted by Kiki Luo //Coding assistance provided by Jaap Murren, Stephen Smit and Regina Kuppen //Preload images //targets preload("4002.jpg"); preload("2852.jpg"); preload("1352.jpg"); preload("2749.jpg"); preload("1256.jpg"); preload("1529.jpg"); preload("3955.jpg"); preload("3904.jpg"); preload("1856.jpg"); preload("2809.jpg"); preload("2793.jpg"); preload("1619.jpg"); preload("3030.jpg"); preload("3040.jpg"); preload("1182.jpg"); preload("1870.jpg"); preload("4065.jpg"); preload("3430.jpg"); preload("1391.jpg"); preload("1826.jpg"); //distractors //d1 preload("3057.jpg"); preload("3045.jpg"); preload("3044.jpg"); //d2 preload("1984.jpg"); preload("2851.jpg"); preload("3948.jpg"); //d3 preload("1353.jpg"); preload("1350.jpg"); preload("1349.jpg"); //d4 preload("2738.jpg"); preload("2751.jpg"); preload("2737.jpg"); //d5 preload("1237.jpg"); preload("1199.jpg"); preload("1173.jpg"); //d6 preload("1503.jpg"); preload("1493.jpg"); preload("1486.jpg"); //d7 preload("1916.jpg"); preload("1917.jpg"); preload("2744.jpg"); //d8 preload("3905.jpg"); preload("3991.jpg"); preload("3997.jpg"); //d9 preload("1858.jpg"); preload("1855.jpg"); preload("1851.jpg"); //d10 preload("1960.jpg"); preload("776.jpg"); preload("762.jpg"); //d11 preload("2042.jpg"); preload("1577.jpg"); preload("1517.jpg"); //d12 preload("1617.jpg"); preload("1602.jpg"); preload("1600.jpg"); //d13 preload("3055.jpg"); preload("3018.jpg"); preload("3021.jpg"); //d14 preload("1701.jpg"); preload("3024.jpg"); preload("3023.jpg"); //d15 preload("1185.jpg"); preload("1188.jpg"); preload("1194.jpg"); //d16 preload("1772.jpg"); preload("1871.jpg"); preload("1940.jpg"); //d17 preload("2892.jpg"); preload("3772.jpg"); preload("4088.jpg"); //d18 preload("2630.jpg"); preload("959.jpg"); preload("859.jpg"); //d19 preload("1419.jpg"); preload("1688.jpg"); preload("1731.jpg"); //d20 preload("1825.jpg"); preload("1807.jpg"); preload("3885.jpg"); //practice_t preload("3274.jpg"); preload("989.jpg"); preload("1427.jpg"); preload("1262.jpg"); preload("1113.jpg"); //practice_d //pd1 preload("4003.jpg"); preload("3406.jpg"); preload("4090.jpg"); //pd2 preload("3091.jpg"); preload("987.jpg"); preload("970.jpg"); //pd3 preload("1731.jpg"); preload("2907.jpg"); preload("1419.jpg"); //pd4 preload("1260.jpg"); preload("1258.jpg"); preload("1265.jpg"); //pd5 preload("1109.jpg"); preload("1108.jpg"); preload("1106.jpg"); //initiate variables var blocks=[], mental_condition, language, q_block, b1, targets=["4002.jpg","2852.jpg","1352.jpg","2749.jpg","1256.jpg", "1529.jpg","3955.jpg","3904.jpg","1856.jpg","2809.jpg", "2793.jpg","1619.jpg","3030.jpg","3040.jpg","1182.jpg", "1870.jpg","4065.jpg","3430.jpg","1391.jpg","1826.jpg"], distractors=[d1=["3057.jpg","3045.jpg","3044.jpg"], d2=["1984.jpg","2851.jpg","3948.jpg"], d3=["1353.jpg","1350.jpg","1349.jpg"], d4=["2738.jpg","2751.jpg","2737.jpg"], d5=["1237.jpg","1199.jpg","1173.jpg"], d6=["1503.jpg","1493.jpg","1486.jpg"], d7=["1916.jpg","1917.jpg","2744.jpg"], d8=["3905.jpg","3991.jpg","3997.jpg"], d9=["1858.jpg","1855.jpg","1851.jpg"], d10=["1960.jpg","776.jpg","762.jpg"], d11=["2042.jpg","1577.jpg","1517.jpg"], d12=["1617.jpg","1602.jpg","1600.jpg"], d13=["3055.jpg","3018.jpg","3021.jpg"], d14=["1701.jpg","3024.jpg","3023.jpg"], d15=["1185.jpg","1188.jpg","1194.jpg"], d16=["1772.jpg","1871.jpg","1940.jpg"], d17=["2892.jpg","3772.jpg","4088.jpg"], d18=["2630.jpg","959.jpg","859.jpg"], d19=["1419.jpg","1688.jpg","1731.jpg"], d20=["1825.jpg","1807.jpg","3885.jpg"]], practice_t=["3274.jpg","989.jpg","1427.jpg","1262.jpg","1113.jpg"], practice_d=[pd1=["4003.jpg","3406.jpg","4090.jpg"], pd2=["3091.jpg","987.jpg","970.jpg"], pd3=["1731.jpg","2907.jpg","1419.jpg"], pd4=["1260.jpg","1258.jpg","1265.jpg"], pd5=["1109.jpg","1108.jpg","1106.jpg"]], j, j1, j2, j3, j4, h, h1, k, score =0, //create blocks block0 = addblock("center","center",75,100); block1 = addblock(0,0,50,50); block2 = addblock(50,0,50,50); block3 = addblock(0,50,50,50); block4 = addblock(50,50,50,50); blocks = [block1,block2,block3,block4]; //set nodes block1.node.id= "block1"; block2.node.id= "block2"; block3.node.id= "block3"; block4.node.id= "block4"; //select language startform(); q_block = main.addblock ("center","center", 90, 100) .style("font-size","80%") .radio("Please select a language / 请选择一种语言:", ["English","中文"],"language"); b1= main.addblock('center',75,30,20); b1.button("OK","inputbutton","click","inputbutton") .style("font-size","75%") .await('click'); endform(); main.removeblock(q_block); main.removeblock(b1); language = response.language; //informed consent var ic, il = true; informed_consent = main.addblock('center',5,100,50); button1= main.addblock('left','bottom',30,20); button2= main.addblock('right','bottom',30,20); information_letter = main.addblock('center',80,40,15); if(language === 'English'){ while(il === true){ informed_consent.text("By continuing I confirm that I am at least 18 years old and have read the information letter.
" +"I am a willing participant and realize that I can stop participation at any time, without providing any reason.
" +"If the current experiment’s results will be used in scientific publications or are made public in any other manner,
" +"I know that my data will remain anonymous and cannot be linked to my identity. I know that the fully anonymized data from this experiment will be publicly available in an online repository.
" +"If I have any questions about the current experiment, I know that I can contact J.M.J.Murre@uva.nl, E.H.F.deHaan@uva.nl or kiki.luo@student.uva.nl for further information.
" +"If I have any complaints about the task, I realize that I can send them to a member (Yaïr Pinto Y.Pinto@uva.nl) of the Commissie Ethiek (Ethics Committee) at the Psychology Department of the University of Amsterdam.
" +"Do you understand the information mentioned above, and consent to participate voluntarily as a subject?") .style("font-size","53%"); button1.button("Yes",'consent',"y",'click').style("font-size","60%"); button2.button("No",'consent','n','click').style("font-size","60%"); //information letter information_letter.text("Click here to download the information letter") .style('font-size',"53%") .style('color',"blue"); waitfor { button1.await("click,touchend"); ic = true; il = false; } or { button2.await("click,touchend"); ic = false; il = false; } or{ information_letter.await('click'); window.open("http://neurotaskuserfiles.s3.amazonaws.com/131973/information_letter_r.pdf?AWSAccessKeyId=1BZVDKWDC2SMTA5F8D82&Expires=1613242429&Signature=i8TC1AJVzO1MyaRnEEopmju5uTs%3D"); il = true; } } } else{ while(il === true){ informed_consent.text("我确认我已满18岁,并已阅读知情同意书。
" +"我意识到我是自愿参与此次研究,并意识到我可以在任何时候不需要任何理由停止参与实验。
" +"如果当前实验结果将在相关科学期刊上发表或以任何其他方式公开," +"我知道我的数据将保持匿名,不会与我的身份联系起来,且知道实验中的数据会在完全匿名化后存储在一个公开的线上资料库。
" +"如果我对该项研究有任何疑问,我知道我可以联系 J.M.J.Murre@uva.nl, E.H.F.deHaan@uva.nl 或 kiki.luo@student.uva.nl 以了解更多信息。
" +"如果我对该项研究有任何不满,我意识到我可以发邮件给阿姆斯特丹大学(University of Amsterdam)心理学系伦理委员会(Ethics Committee)的Yaïr Pinto (Y.Pinto@uva.nl)
" +"您是否已了解以上內容,并愿意参与该项研究?") .style("font-size","55%"); button1.button("是",'consent',"y",'click').style("font-size","60%"); button2.button("否",'consent','n','click').style("font-size","60%"); //information letter information_letter.text("点击此处下载知情同意书") .style('font-size',"53%") .style('color',"blue"); waitfor { button1.await("click,touchend"); ic = true; il = false; } or { button2.await("click,touchend"); ic = false; il = false; } or{ information_letter.await('click'); window.open("http://neurotaskuserfiles.s3.amazonaws.com/131973/information_letter_c.pdf?AWSAccessKeyId=1BZVDKWDC2SMTA5F8D82&Expires=1613496031&Signature=OB9rFS%2Bf7fPHM%2BurDjxtE1FhEGI%3D");// Chinese version il = true; } } } main.removeblock(informed_consent); main.removeblock(button1); main.removeblock(button2); main.removeblock(information_letter); if(ic === false){ closesession(); } if(ic === true){ //Preload presentation block (block0) explanation_block = main.addblock ('center','center'); if(language==="English"){ explanation_block.text( "During this task you will see a series of doors presented one after the others.
"+ "
You will have 5 seconds to memorize each door. " + "Afterwards you will be presented with a display of four doors.
" + "Please indicate which of the four doors you have seen during the memorization phase,"+ " by either clicking/tapping on the picture, or using the keyboard (top right: S, lower right: X, top left: K, lower left: M).
"+ "
First there will be a practice trial to get you acquainted with the task. " + "You can press F11 on Windows or Command-Shift-F on Mac to enter fullscreen.
" + "
Click on the screen or press SPACE to go to the practice trial.") .style("font-size","60%"); waitfor { awaitkey("SPACE"); } or { await("click,touched"); } } else { explanation_block.text( "在这个实验中,您会看到一系列的门逐个出现。
您将有5秒的时间记住每扇门。"+ "
之后您将会看到四扇门,请通过点击图片或按键(右上:S,右下:X,左上:K,左下:M),从四扇门中指出刚刚出现过的那扇门。"+ "
首先将会有一个练习让您熟悉该过程。"+ "
您可以在 Windows 上按 F11 或在 Mac 上按 Ctrl+Shift+F 进入全屏。"+ "
请点击屏幕或按空格键进入练习部分。") .style("font-size","60%"); waitfor { awaitkey("SPACE"); } or { await("click,touched"); } } main.removeblock(explanation_block); //Additional preload screen loading_block = main.addblock ("center","center"); if (language==='English') { loading_block.text("Images are being loaded.
This might take a minute.
If this takes longer than 5 minutes, refresh the page."); } else { loading_block.text("图片加载中……
此过程可能需要一分钟。
如果耗时超过5分钟,请刷新页面。"); } image.await("preloading_completed"); main.removeblock(loading_block); //Start practice Trial startblock = main.addblock("center","center"); if(language==="English") { startblock.text("Ready? Tap or press SPACE to start
" +"(If a display of four doors is accidently presented first, please refresh the page.)"); waitfor { awaitkey("SPACE"); } or { await("click,touched"); } } else { startblock.text("准备好了吗?点击屏幕或按空格键开始
(如果意外直接进入了选择部分,请刷新页面)"); waitfor { awaitkey("SPACE"); } or { await("click,touched"); } } main.removeblock(startblock); //Practice Trial //memorising phase shuffle(practice_t); for(h = 0; h < practice_t.length; ++h) { block0.setimage(practice_t[h]); await(5000); block0.hideimage(); block0.text("+",200); await(1000); block0.clear(); } //4AFC shuffle(practice_t); shuffle(pd1); shuffle(pd2); shuffle(pd3); shuffle(pd4); shuffle(pd5); for(h1 = 0; h1 < practice_t.length; ++h1){ k1 = addblock('left','top',10,10); k2 = addblock('right','top',10,10); k3 = addblock('left','bottom',10,10); k4 = addblock('right','bottom',10,10); k1.text("S"); k2.text("K"); k3.text("X"); k4.text("M"); shuffle(blocks); blocks[0].setimage(practice_t[h1],75,100); if(practice_t[h1] === "3274.jpg"){ blocks[1].setimage(pd1[0],75,100); blocks[2].setimage(pd1[1],75,100); blocks[3].setimage(pd1[2],75,100); } if(practice_t[h1] === "989.jpg"){ blocks[1].setimage(pd2[0],75,100); blocks[2].setimage(pd2[1],75,100); blocks[3].setimage(pd2[2],75,100); } if(practice_t[h1] === "1427.jpg"){ blocks[1].setimage(pd3[0],75,100); blocks[2].setimage(pd3[1],75,100); blocks[3].setimage(pd3[2],75,100); } if(practice_t[h1] === "1262.jpg"){ blocks[1].setimage(pd4[0],75,100); blocks[2].setimage(pd4[1],75,100); blocks[3].setimage(pd4[2],75,100); } if(practice_t[h1] === "1113.jpg"){ blocks[1].setimage(pd5[0],75,100); blocks[2].setimage(pd5[1],75,100); blocks[3].setimage(pd5[2],75,100); } if(blocks[0] === block1){ k = "s"; } if(blocks[0] === block2){ k = "k"; } if(blocks[0] === block3){ k = "x"; } if(blocks[0] === block4){ k = 'm'; } //interaction if(language === 'English'){ waitfor{ j = awaitkey('s,k,x,m'); blocks[0].hideimage(); blocks[1].hideimage(); blocks[2].hideimage(); blocks[3].hideimage(); main.removeblock(k1); main.removeblock(k2); main.removeblock(k3); main.removeblock(k4); if(k === j.key){ text('Correct!'); score = score+1; await(1000); clear();} else{ text('Wrong!'); await(1000); clear();} log(j.RT.toFixed(2),'RT_pt'); } or{ j1 = blocks[0].await('click,touched'); blocks[0].hideimage(); blocks[1].hideimage(); blocks[2].hideimage(); blocks[3].hideimage(); main.removeblock(k1); main.removeblock(k2); main.removeblock(k3); main.removeblock(k4); text('Correct!'); score = score+1; await(1000); clear(); log(j1.RT.toFixed(2),'RT_pt'); } or{ j2 = blocks[1].await('click,touched'); blocks[0].hideimage(); blocks[1].hideimage(); blocks[2].hideimage(); blocks[3].hideimage(); main.removeblock(k1); main.removeblock(k2); main.removeblock(k3); main.removeblock(k4); text('Wrong!'); await(1000); clear(); log(j2.RT.toFixed(2),'RT_pt'); } or{ j3 = blocks[2].await('click,touched'); blocks[0].hideimage(); blocks[1].hideimage(); blocks[2].hideimage(); blocks[3].hideimage(); main.removeblock(k1); main.removeblock(k2); main.removeblock(k3); main.removeblock(k4); text('Wrong!'); await(1000); clear(); log(j3.RT.toFixed(2),'RT_pt'); } or{ j4 = blocks[3].await('click,touched'); blocks[0].hideimage(); blocks[1].hideimage(); blocks[2].hideimage(); blocks[3].hideimage(); main.removeblock(k1); main.removeblock(k2); main.removeblock(k3); main.removeblock(k4); text('Wrong!'); await(1000); clear(); log(j4.RT.toFixed(2),'RT_pt'); } } else{ waitfor{ j = awaitkey('s,k,x,m'); blocks[0].hideimage(); blocks[1].hideimage(); blocks[2].hideimage(); blocks[3].hideimage(); main.removeblock(k1); main.removeblock(k2); main.removeblock(k3); main.removeblock(k4); if(k === j.key){ text('正确!'); score = score+1; await(1000); clear();} else{ text('错误!'); await(1000); clear();} log(j.RT.toFixed(2),'RT_pt'); } or{ j1 = blocks[0].await('click,touched'); blocks[0].hideimage(); blocks[1].hideimage(); blocks[2].hideimage(); blocks[3].hideimage(); main.removeblock(k1); main.removeblock(k2); main.removeblock(k3); main.removeblock(k4); text('正确!') score = score+1; await(1000); clear(); log(j1.RT.toFixed(2),'RT_pt'); } or{ j2 = blocks[1].await('click,touched'); blocks[0].hideimage(); blocks[1].hideimage(); blocks[2].hideimage(); blocks[3].hideimage(); main.removeblock(k1); main.removeblock(k2); main.removeblock(k3); main.removeblock(k4); text('错误!'); await(1000); clear(); log(j2.RT.toFixed(2),'RT_pt'); } or{ j3 = blocks[2].await('click,touched'); blocks[0].hideimage(); blocks[1].hideimage(); blocks[2].hideimage(); blocks[3].hideimage(); main.removeblock(k1); main.removeblock(k2); main.removeblock(k3); main.removeblock(k4); text('错误!'); await(1000); clear(); log(j3.RT.toFixed(2),'RT_pt'); } or{ j4 = blocks[3].await('click,touched'); blocks[0].hideimage(); blocks[1].hideimage(); blocks[2].hideimage(); blocks[3].hideimage(); main.removeblock(k1); main.removeblock(k2); main.removeblock(k3); main.removeblock(k4); text('错误!'); await(1000); clear(); log(j4.RT.toFixed(2),'RT_pt'); } } } log(score,'score_p'); //Target presentation transition_box = main.addblock('center','center'); startblock = main.addblock("center","center"); if(language === "English") {transition_box.text('You score is '+score + '/5'+"
You can take a short break now." + "
Click on the screen or press SPACE to start the test."); waitfor { awaitkey("SPACE"); } or { await("click,touched"); } main.removeblock(transition_box); startblock.text("Ready? Tap or press SPACE to start"); waitfor { awaitkey("SPACE"); } or { await("click,touched");} } else { transition_box.text("您的分数是: "+score + '/5'+"
您现在可以稍息片刻。" + "
点击屏幕或按空格键开始正式测试"); waitfor { awaitkey("SPACE"); } or { await("click,touched"); } main.removeblock(transition_box); startblock.text("准备好了吗?点击屏幕或按空格键开始"); waitfor { awaitkey("SPACE"); } or { await("click,touched"); } } main.removeblock(startblock); //Actual trial score = 0; //resets score from the practice trial //memorising phase shuffle(targets); for(h = 0; h < targets.length; ++h) { block0.setimage(targets[h]); await(5000); block0.hideimage(); block0.text("+",200); await(1000); block0.clear(); } //4AFC shuffle(targets); shuffle(d1); shuffle(d2); shuffle(d3); shuffle(d4); shuffle(d5); shuffle(d6); shuffle(d7); shuffle(d8); shuffle(d9); shuffle(d10); shuffle(d11); shuffle(d12); shuffle(d13); shuffle(d14); shuffle(d15); shuffle(d16); shuffle(d17); shuffle(d18); shuffle(d19); shuffle(d20); for(h1 = 0; h1 < targets.length; ++h1){ k1 = addblock('left','top',10,10); k2 = addblock('right','top',10,10); k3 = addblock('left','bottom',10,10); k4 = addblock('right','bottom',10,10); k1.text("S"); k2.text("K"); k3.text("X"); k4.text("M"); shuffle(blocks); blocks[0].setimage(targets[h1],75,100); log(targets[h1],'item_t'); //d1-d5 if(targets[h1] === "4002.jpg"){ blocks[1].setimage(d1[0],75,100); blocks[2].setimage(d1[1],75,100); blocks[3].setimage(d1[2],75,100); } if(targets[h1] === "2852.jpg"){ blocks[1].setimage(d2[0],75,100); blocks[2].setimage(d2[1],75,100); blocks[3].setimage(d2[2],75,100); } if(targets[h1] === "1352.jpg"){ blocks[1].setimage(d3[0],75,100); blocks[2].setimage(d3[1],75,100); blocks[3].setimage(d3[2],75,100); } if(targets[h1] === "2749.jpg"){ blocks[1].setimage(d4[0],75,100); blocks[2].setimage(d4[1],75,100); blocks[3].setimage(d4[2],75,100); } if(targets[h1] === "1256.jpg"){ blocks[1].setimage(d5[0],75,100); blocks[2].setimage(d5[1],75,100); blocks[3].setimage(d5[2],75,100); } //d6-d10 "1529.jpg","3955.jpg","3904.jpg","1856.jpg","2809.jpg", if(targets[h1] === "1529.jpg"){ blocks[1].setimage(d6[0],75,100); blocks[2].setimage(d6[1],75,100); blocks[3].setimage(d6[2],75,100); } if(targets[h1] === "3955.jpg"){ blocks[1].setimage(d7[0],75,100); blocks[2].setimage(d7[1],75,100); blocks[3].setimage(d7[2],75,100); } if(targets[h1] === "3904.jpg"){ blocks[1].setimage(d8[0],75,100); blocks[2].setimage(d8[1],75,100); blocks[3].setimage(d8[2],75,100); } if(targets[h1] === "1856.jpg"){ blocks[1].setimage(d9[0],75,100); blocks[2].setimage(d9[1],75,100); blocks[3].setimage(d9[2],75,100); } if(targets[h1] === "2809.jpg"){ blocks[1].setimage(d10[0],75,100); blocks[2].setimage(d10[1],75,100); blocks[3].setimage(d10[2],75,100); } //d11-15 "2793.jpg","1619.jpg","3030.jpg","3040.jpg","1182.jpg", if(targets[h1] === "2793.jpg"){ blocks[1].setimage(d11[0],75,100); blocks[2].setimage(d11[1],75,100); blocks[3].setimage(d11[2],75,100); } if(targets[h1] === "1619.jpg"){ blocks[1].setimage(d12[0],75,100); blocks[2].setimage(d12[1],75,100); blocks[3].setimage(d12[2],75,100); } if(targets[h1] === "3030.jpg"){ blocks[1].setimage(d13[0],75,100); blocks[2].setimage(d13[1],75,100); blocks[3].setimage(d13[2],75,100); } if(targets[h1] === "3040.jpg"){ blocks[1].setimage(d14[0],75,100); blocks[2].setimage(d14[1],75,100); blocks[3].setimage(d14[2],75,100); } if(targets[h1] === "1182.jpg"){ blocks[1].setimage(d15[0],75,100); blocks[2].setimage(d15[1],75,100); blocks[3].setimage(d15[2],75,100); } //d16-d20 "1870.jpg","4065.jpg","3430.jpg","1391.jpg","1826.jpg" if(targets[h1] === "1870.jpg"){ blocks[1].setimage(d16[0],75,100); blocks[2].setimage(d16[1],75,100); blocks[3].setimage(d16[2],75,100); } if(targets[h1] === "4065.jpg"){ blocks[1].setimage(d17[0],75,100); blocks[2].setimage(d17[1],75,100); blocks[3].setimage(d17[2],75,100); } if(targets[h1] === "3430.jpg"){ blocks[1].setimage(d18[0],75,100); blocks[2].setimage(d18[1],75,100); blocks[3].setimage(d18[2],75,100); } if(targets[h1] === "1391.jpg"){ blocks[1].setimage(d19[0],75,100); blocks[2].setimage(d19[1],75,100); blocks[3].setimage(d19[2],75,100); } if(targets[h1] === "1826.jpg"){ blocks[1].setimage(d20[0],75,100); blocks[2].setimage(d20[1],75,100); blocks[3].setimage(d20[2],75,100); } if(blocks[0] === block1){ k = "s"; } if(blocks[0] === block2){ k = "k"; } if(blocks[0] === block3){ k = "x"; } if(blocks[0] === block4){ k = 'm'; } //interaction if(language === 'English'){ waitfor{ j = awaitkey('s,k,x,m'); blocks[0].hideimage(); blocks[1].hideimage(); blocks[2].hideimage(); blocks[3].hideimage(); main.removeblock(k1); main.removeblock(k2); main.removeblock(k3); main.removeblock(k4); if(k === j.key){ text('Correct!'); score = score+1; await(1000); clear();} else{ text('Wrong!'); await(1000); clear();} log(j.RT.toFixed(2),'RT_t'); } or{ j1 = blocks[0].await('click,touched'); blocks[0].hideimage(); blocks[1].hideimage(); blocks[2].hideimage(); blocks[3].hideimage(); main.removeblock(k1); main.removeblock(k2); main.removeblock(k3); main.removeblock(k4); text('Correct!'); score = score+1; await(1000); clear(); log(j1.RT.toFixed(2),'RT_t'); } or{ j2 = blocks[1].await('click,touched'); blocks[0].hideimage(); blocks[1].hideimage(); blocks[2].hideimage(); blocks[3].hideimage(); main.removeblock(k1); main.removeblock(k2); main.removeblock(k3); main.removeblock(k4); text('Wrong!'); await(1000); clear(); log(j2.RT.toFixed(2),'RT_t'); } or{ j3 = blocks[2].await('click,touched'); blocks[0].hideimage(); blocks[1].hideimage(); blocks[2].hideimage(); blocks[3].hideimage(); main.removeblock(k1); main.removeblock(k2); main.removeblock(k3); main.removeblock(k4); text('Wrong!'); await(1000); clear(); log(j3.RT.toFixed(2),'RT_t'); } or{ j4 = blocks[3].await('click,touched'); blocks[0].hideimage(); blocks[1].hideimage(); blocks[2].hideimage(); blocks[3].hideimage(); main.removeblock(k1); main.removeblock(k2); main.removeblock(k3); main.removeblock(k4); text('Wrong!'); await(1000); clear(); log(j4.RT.toFixed(2),'RT_t'); } log(score,'item_s'); } else{ waitfor{ j = awaitkey('s,k,x,m'); blocks[0].hideimage(); blocks[1].hideimage(); blocks[2].hideimage(); blocks[3].hideimage(); main.removeblock(k1); main.removeblock(k2); main.removeblock(k3); main.removeblock(k4); if(k === j.key){ text('正确!'); score = score+1; await(1000); clear();} else{ text('错误!'); await(1000); clear();} log(j.RT.toFixed(2),'RT_t'); } or{ j1 = blocks[0].await('click,touched'); blocks[0].hideimage(); blocks[1].hideimage(); blocks[2].hideimage(); blocks[3].hideimage(); main.removeblock(k1); main.removeblock(k2); main.removeblock(k3); main.removeblock(k4); text('正确!') score = score+1; await(1000); clear(); log(j1.RT.toFixed(2),'RT_t'); } or{ j2 = blocks[1].await('click,touched'); blocks[0].hideimage(); blocks[1].hideimage(); blocks[2].hideimage(); blocks[3].hideimage(); main.removeblock(k1); main.removeblock(k2); main.removeblock(k3); main.removeblock(k4); text('错误!'); await(1000); clear(); log(j2.RT.toFixed(2),'RT_t'); } or{ j3 = blocks[2].await('click,touched'); blocks[0].hideimage(); blocks[1].hideimage(); blocks[2].hideimage(); blocks[3].hideimage(); main.removeblock(k1); main.removeblock(k2); main.removeblock(k3); main.removeblock(k4); text('错误!'); await(1000); clear(); log(j3.RT.toFixed(2),'RT_t'); } or{ j4 = blocks[3].await('click,touched'); blocks[0].hideimage(); blocks[1].hideimage(); blocks[2].hideimage(); blocks[3].hideimage(); main.removeblock(k1); main.removeblock(k2); main.removeblock(k3); main.removeblock(k4); text('错误!'); await(1000); clear(); log(j4.RT.toFixed(2),'RT_t'); } log(score,'item_s'); } } log(score,'score_t'); //tasks end transition_box = main.addblock('center','center'); if (language === "English"){ transition_box.text("Your score is "+ score + "/20."+ "
You are done with the test portion of this task.
Please fill in the survey to complete the task." + "
Click on the screen or press SPACE to go to the survey"); waitfor { awaitkey("SPACE"); } or { await("click,touched"); } } else { transition_box.text("您的分数是: "+score + '/20' + "
您现已完成测试部分,接下来请填写一份调查问卷。" + "
点击屏幕或按空格键进入调查问卷部分"); waitfor { awaitkey("SPACE"); } or { await("click,touched"); } } main.removeblock(transition_box); //Add question blocks q1 = main.addblock("center",10,90,15); q2 = main.addblock("center",35,90,15); q3 = main.addblock("center",60,90,15); b1= addblock("center",80,30,20).style('font-size','70%'); if(language === 'English'){ //demographic(gender, age, cultural background) startform(); q1.select("What is your gender",['Male',"Female","Others"],"gender") .style('font-size','70%'); q2.select("What is your age",['18-25','26-35','36-45','46-55','56-65','65 or above'],'age') .style('font-size','70%'); q3.select("What is your cultural background",["Western culture", "Eastern culture","Others"],"culture") .style("font-size","70%"); b1.button("Next","inputbutton","click","inputbutton") .await("click"); endform(); main.removeblock(q1); main.removeblock(q2); main.removeblock(q3); //demographic (educational level, colour-blindness, possible neuropsychological diagnoses) q4 = main.addblock("center",10,90,15); q5 = main.addblock("center",35,90,15); q6 = main.addblock('center',60,90,15); startform(); q4.select("What is your highest level of completed education?",["Elementary School", "Middle School/Vocational training", "High school", "College/University"],"education") .style("font-size","70%"); q5.radio("Do you have colour-blindness?",['Yes','No'],'colour-blindness') .style('font-size','70%'); q6.radio("Have you ever been diagnosed with a mental disorder before?",['Yes','No'],'mental_condition') .style('font-size','70%'); b1.button("Next","inputbutton","click","inputbutton") .await("click"); endform(); main.removeblock(q4); main.removeblock(q5); main.removeblock(q6); mental_condition = response.mental_condition; q6_1 = main.addblock('center',40,70,15); if(mental_condition === 'Yes'){ startform(); q6_1.input("If yes, what mental disorder have you been diagnosed? (optional)",'mental_disorder') .style('font-size',"70%"); b1.button("Next","inputbutton","click","inputbutton") .await("click"); endform(); } else if(mental_condition === 'No'){ q6_1 = main.addblock('center','center'); } main.removeblock(q6_1); //questions about motivation, concentration, sleep, and input method q7 = main.addblock("center",10,90,15); q8 = main.addblock("center",35,90,15); q9 = main.addblock("center",60,90,15); startform(); q7.scale("How motivated were you to do the task?","Not motivated at all","Very Motivated","motivation") .style("font-size","70%"); q8.scale("How concentrated were you during the task?","Not concentrated at all", "Very concentrated","concentration") .style("font-size","70%"); q9.scale("How did you sleep last night?", "Very badly","Very well","sleep") .style("font-size","70%"); b1.button("Next","inputbutton","click","inputbutton") .await("click"); endform(); main.removeblock(q7); main.removeblock(q8); main.removeblock(q9); q10 = main.addblock("center",20,90,15); startform(); q10.radio("On which device did you do this task?",["Smartphone/Tablet","Laptop using the mousepad","Computer using the mouse", "Computer/Laptop using the keyboard"],"device") .style("font-size","70%"); b1.button("OK") .await("click"); endform(); } else if(language === "中文") { //demographic(gender, age, cultural background) startform(); q1.select("您的性别",['男性',"女性","其他"],"gender") .style('font-size','70%'); q2.select("您的年龄",['18-25','26-35','36-45','46-55','56-65','65或以上'],'age') .style('font-size','70%'); q3.select("您的文化背景是",["西方文化", "东方文化","其他"],"culture") .style("font-size","70%"); b1.button("下一页","inputbutton","click","inputbutton") .await("click"); endform(); main.removeblock(q1); main.removeblock(q2); main.removeblock(q3); //demographic (educational level, colour-blindness, possible neuropsychological diagnoses) q4 = main.addblock("center",10,90,15); q5 = main.addblock("center",35,90,15); q6 = main.addblock('center',60,90,15); startform(); q4.select("您已完成的最高学历是",["小学", "中学/职业培训", "高中", "大学"],"education") .style("font-size","70%"); q5.radio("您是否患有色盲症?",['是','否'],'colour-blindness') .style('font-size','70%'); q6.radio("您是否曾被诊断出患有心理疾病?",['是','否'],'mental_condition') .style('font-size','70%'); b1.button("下一页","inputbutton","click","inputbutton") .await("click"); endform(); main.removeblock(q4); main.removeblock(q5); main.removeblock(q6); mental_condition = response.mental_condition; if(mental_condition === '是'){ startform(); q6_1 = main.addblock('center',40,70,15); q6_1.input("如果有,您被诊断出患有什么心理疾病?(可选答)",'mental_disorder') .style('font-size','70%'); b1.button("下一页","inputbutton","click","inputbutton") .await("click"); endform(); } else if (mental_condition === '否'){ q6_1 = main.addblock('center','center'); } main.removeblock(q6_1); q7 = main.addblock("center",10,90,15); q8 = main.addblock("center",35,90,15); q9 = main.addblock("center",60,90,15); startform(); q7.scale("您做该项实验的动力有多高?","毫无动力","非常有动力","motivation") .style("font-size","70%"); q8.scale("您在做该项实验时注意力有多集中?","完全不集中", "非常集中","concentration") .style("font-size","70%"); q9.scale("您昨晚的睡眠如何?", "非常糟糕","非常好","sleep") .style("font-size","70%"); b1.button("下一页","inputbutton","click","inputbutton") .await('click'); endform(); main.removeblock(q7); main.removeblock(q8); main.removeblock(q9); q10 = main.addblock("center",20,90,15); startform(); q10.radio("您是在哪个设备上完成这项实验?",["手机/平板电脑","笔记本电脑(触摸板点击)","台式电脑(鼠标点击)", "笔记本电脑/台式电脑(使用键盘)"],"device") .style("font-size","70%"); b1.button("OK") .await("click"); endform(); } main.removeblock(q10); main.removeblock(b1); //End of task text end_box = main.addblock("center",20,100,30).style("font-size","70%"); email = main.addblock("center",55,70,15); b1= addblock("center",70,30,20).style('font-size','70%'); if(language=== "English") { startform(); end_box.text("This is the end of session 1 of this experiment.
There will be another session four days later.
" +"If you would like to participate in the second session,
" +"please leave your email adress for reminder."); email.input("Email address:",'email').style('font-size',"70%") b1.button("OK") .await("click"); endform(); main.removeblock(end_box); main.removeblock(email); main.removeblock(b1); text("Thanks for your participation!"); await(3000); } else { startform(); end_box.text("实验第一阶段至此结束。
四天后将会是实验的第二阶段。
" +"如果您愿意参加实验的第二阶段,
" +"请在此留下您的邮箱地址,以便日后提醒"); email.input("邮箱地址:",'email').style('font-size',"70%") b1.button("OK") .await("click"); endform(); main.removeblock(end_box); main.removeblock(email); main.removeblock(b1); text("感谢您的参与!"); await(3000); } }
Data inspection is forthcoming!
In the mean time, authors may download their own data and make it available as an Excel file. Check out the 'Stimuli and Files' tab.
Click on a category to view the stimuli and files
You can download the files shown here by clicking on the file names or image. Note that you cannot link directly to the images, sounds, videos, etc. shown here from other web pages; the link will go stale in about one hour and will no longer work after that.
You can download the files shown here by clicking on the file names or image. Note that you cannot link directly to the images, sounds, videos, etc. shown here from other web pages; the link will go stale in about one hour and will no longer work after that.
You can download the files shown here by clicking on the file names or image. Note that you cannot link directly to the images, sounds, videos, etc. shown here from other web pages; the link will go stale in about one hour and will no longer work after that.
You can download the files shown here by clicking on the file names or image. Note that you cannot link directly to the images, sounds, videos, etc. shown here from other web pages; the link will go stale in about one hour and will no longer work after that.