Shared Scripts, Data, Stimuli, Files, and Demos

Thesis Session 1 FINAL

Thesis Session 1 FINAL

Lena Faye Sachs

No comments yet
 




Comments

No comments yet

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
//Coding assistance provided by Jaap Murren, Stephen Smit and Regina Kuppen

//initiate variables
var blocks=[],
language,
q_block,
b1,
b2,
q1,
q2,
q3,
username,
motivation,
concentration,
sleep,
button_box,
targets=["1529.jpg","1662.jpg","3955.jpg","1718.jpg","1279.jpg","3904.jpg","1926.jpg","1856.jpg","2809.jpg","2871.jpg","886.jpg","705.jpg","2752.jpg","1817.jpg","1319.jpg"],
distractors=[d1=["1503.jpg","1493.jpg","1486.jpg"],d2=["1661.jpg","1660.jpg","1659.jpg"],d3=["1916.jpg","1917.jpg","2744.jpg"],d4=["1716.jpg","1717.jpg","1715.jpg"],d5=["1278.jpg","1205.jpg","1204.jpg"],d6=["3905.jpg","3991.jpg","3997.jpg"],d7=["1925.jpg","1924.jpg","1849.jpg"],d8=["1858.jpg","1855.jpg","1851.jpg"],d9=["1960.jpg","776.jpg","762.jpg"],d10=["1624.jpg","1567.jpg","1563.jpg"],d11=["885.jpg","883.jpg","2755.jpg"],d12=["751.jpg","2711.jpg","3943.jpg"],d13=["2750.jpg","2748.jpg","2739.jpg"],d14=["1801.jpg","3929.jpg","2693.jpg"],d15=["2787.jpg","1318.jpg","1315.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"]],
i,
j,
j1,
j2,
j3,
j4,
h,
h1,
k,
l,
x,
y,
a =0,
answer,
seed_p=[2,2,0,2,3],  //generated with random.org
seed_t=[2,2,3,3,1,1,3,3,2,2,3,1,3,2,0] //generated with random.org
;

//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";

//
uid = getQueryVariable("uid");
log(uid,"uid");
//select language
startform();
q_block = main.addblock ("center","center", 90, 100)
.radio("Please select a language / Selecteer een taal / Wählen Sie eine Sprache:", ["English","Nederlands","Deutsch"],"language");

b1= main.addblock('center','bottom',30,20);
             b1.button("OK","inputbutton","click","inputbutton")
             .await('click'); 
endform();

main.removeblock(q_block);
main.removeblock(b1);
language = response.language;

//Preload images
//Preload presentation block (block0)   
for(h=0;h You will have 5 seconds to memorize each door. 
" + "
Afterwards you will 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,touchend"); } } else if (language==='Nederlands') { explanation_block.text("Tijdens deze taak krijgt u een aantal deuren achter elkaar te zien." + "
U heeft 5 seconden om deze te bekijken en te onthouden.
" + "
Hierna krijgt u een scherm met vier deuren te zien.
" + "
De taak is de deur te selecteren die u eerder al heeft gezien, door op het juiste plaatje te klikken of het toetsenbord te gebruiken (rechtsboven: S, rechtsonder: X, linksboven: K, linksonder: M)." + "

" + "Eerst krijgt u een oefenronde, om kennis te maken met de taak."+ "

"+ "U kunt op F11 drukken op Windows of Command-Shift-F drukken op Mac om naar volledige scherm modus te schakelen." + "

" + "Klik op het scherm of druk op SPATIE om door te gaan naar de oefenronde") .style("font-size","60%"); waitfor { awaitkey("SPACE"); } or { await("click,touchend"); } } else { explanation_block.text("Während dieses Tests bekommen Sie eine Reihe von Türen zu sehen." + " Sie haben 5 Sekunden Zeit, sich jede Tür einzuprägen." + "
Danach bekommen Sie einen Bildschirm mit vier Türen zu sehen.
" + "
Ihre Aufgabe ist es anzugeben, welche der Türen Sie sich eingeprägt haben, entweder durch klicken auf die entsprechende Tür oder durch benutzen der Tastatur (oben Rechts: S, unten Rechts: X, oben Links: K, unten Links: M).

" + "Zunächst folgt ein Übungstest, um Sie mit dem Test vertraut zu machen." + "

" + "Sie können F11 drücken bei Windows oder Command-Shift-F drücken bei Mac, um auf Vollbildmodus zu wechseln." + "

" + "Drücken Sie auf den Bildschirm oder die LEERTASTE, um mit dem Übungstest zu beginnen") .style("font-size","60%"); waitfor { awaitkey("SPACE"); } or { await("click,touchend"); } } 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 if (language==='Nederlands') { loading_block.text("Afbeeldingen worden geladen. Dit kan even duren. Als dit langer dan 5 minuten duurt, ververs de pagina."); } else { loading_block.text("Bilder werden geladen. Dies kann einige Minuten dauern. Falls dies länger als 5 Minuten dauert, aktualisieren die Seite."); } 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"); waitfor { awaitkey("SPACE"); } or { await("click,touchend"); } } else if(language==="Nederlands") { startblock.text("Klaar om te beginnen? Klik op het scherm of druk op SPATIE om te beginnen."); waitfor { awaitkey("SPACE"); } or { await("click,touchend"); } } else if(language==="Deutsch") { startblock.text("Bereit? Drücken Sie auf den Schirm oder die LEERTASTE um anzufangen."); waitfor { awaitkey("SPACE"); } or { await("click,touchend"); } } main.removeblock(startblock); //Practice Trial //Target presentation for(k=0; k
" + "You can take a short break now." + "

" + "Click on the screen or press SPACE to start the test."); waitfor { awaitkey("SPACE"); } or { await("click,touchend"); } } else if(language === "Nederlands") { transition_box.text("Uw score is " + a + " van 5." + "

" + "U kunt nu een korte pauze nemen." + "

" + "Klik op het scherm of druk op SPATIE om door te gaan naar de test."); waitfor { awaitkey("SPACE"); } or { await("click,touchend"); } } else if(language === "Deutsch") { transition_box.text("Ihr Ergebnis ist " + a + " von 5." + "

" + "Sie können jetzt eine kurze Pause machen." + "

" + "Drücken Sie auf den Bildschirm oder die LEERTASTE, um mit dem Test zu beginnen."); waitfor { awaitkey("SPACE"); } or { await("click,touchend"); } } main.removeblock(transition_box); //Actual trial a=0; //resets score from the practice trial for(i=0; i
" + "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,touchend"); } } else if(language === "Nederlands") { transition_box.text("Uw score is " + a + " van 15." + "

" + "U bent klaar met het testdeel van deze taak. Vul alstublieft de vragenlijst in om de taak af te ronden." + "

" + "Klik op het scherm of druk op SPATIE om naar de vragenlijst te gaan"); waitfor { awaitkey("SPACE"); } or { await("click,touchend"); } } else if(language === "Deutsch") { transition_box.text("Ihr Ergebnis ist " + a + " von 15." + "

" + "Sie sind fertig mit dem Testteil dieses Experiments. Bitte füllen sie den Fragebogen aus, um dieses Experiment abzuschließen ." + "

" + "Drücken Sie auf den Bildschirm oder die LEERTASTE, um mit dem Fragebogen zu beginnen"); waitfor { awaitkey("SPACE"); } or { await("click,touchend"); } } 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); q4= main.addblock("center",5,90,15); b1= addblock("center",85,30,20); //questions about motivation, concentration, sleep, and input method if (language==='English') { startform(); q1.scale("How motivated were you to do the task?","Not motivated at all","Very Motivated","motivation") .style("font-size","70%"); q2.scale("How concentrated were you during the task?","Not concentrated at all", "Very concentrated","concentration") .style("font-size","70%"); q3.scale("How did you sleep last night?", "Very badly","Very well","sleep") .style("font-size","70%"); b1.button("OK") .await("click"); endform(); main.removeblock(q1); main.removeblock(q2); main.removeblock(q3); startform(); q4.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==='Nederlands') { startform(); q1.scale("Hoe gemotiveerd was u om de taak te doen?","Helemaal niet gemotiveerd","Sterk gemotiveerd","motivation") .style("font-size","70%"); q2.scale("Hoe geconcentreed was u tijdens de taak?","Helemaal niet geconcentreed", "Erg geconcentreed","concentration") .style("font-size","70%"); q3.scale("Hoe hebt u de afgelopen nacht geslapen?", "Heel slecht","Heel goed","sleep") .style("font-size","70%"); b1.button("OK","inputbutton","click","inputbutton") .await('click'); endform(); main.removeblock(q1); main.removeblock(q2); main.removeblock(q3); startform(); q4.radio("Op welk manier hebt u de taak gedaan?",["Smartphone/Tablet","Laptop met mousepad","Computer(desktop) met muis", "Computer/Laptop met toetsenbord"],"device") .style("font-size","70%"); b1.button("OK") .await("click"); endform(); } else { startform(); q1.scale("Wie motiviert waren Sie den Test durchzuführen?", "Gar nicht motiviert", "Sehr motiviert", "motivation") .style("font-size","70%"); q2.scale("Wie konzentriert waren Sie während des Tests?", "Gar nicht konzentriert", "Sehr konzentriert","concentration") .style("font-size","70%"); q3.scale("Wie haben Sie letzte Nacht geschlafen?", "Sehr schlecht", "Sehr gut", "sleep") .style("font-size","70%"); b1.button("OK","inputbutton","click","inputbutton") .await('click'); endform(); main.removeblock(q1); main.removeblock(q2); main.removeblock(q3); startform(); q4.radio("Womit haben Sie den Test gemacht?",["Smartphone/Tablet", "Laptop mit Mousepad", "Computer mit Maus", "Computer/Laptop mit Tastatur"], "device") .style("font-size","70%"); b1.button("OK") .await("click"); endform(); } main.removeblock(q4); main.removeblock(b1); //End of task text end_box = main.addblock("center","center").style("font-size","70%"); if(language=== "English") { end_box.text("This is the end of session 1." + "

" + "Click on the screen or press SPACE to complete the session." + "

" + "You will be redirected. Do not close the window until prompted to do so."); waitfor { awaitkey("SPACE"); } or { await("click,touchend"); } closesession(); window.location = "http://www.lab.uva.nl/lotus/doors/event/end_task"; } else if(language === "Nederlands") { end_box.text("Dit is het einde van sessie 1." + "

" + "Klik op het scherm of druk op SPATIE om de test af te sluiten." + "

" + "U wordt doorgestuurd naar een andere website. Sluit het venster niet af totdat u ernaar gevraagd wordt."); waitfor { awaitkey("SPACE"); } or { await("click,touchend"); } closesession(); window.location = "http://www.lab.uva.nl/lotus/doors/event/end_task"; } else if(language === "Deutsch") { end_box.text("Dies ist das Ende des ersten Tests." + "

" + "Drücken Sie auf den Bildschirm oder die LEERTASTE, um den Test abzuschließen." + "

" + "Sie werden weitergeleitet. Bitte schließen Sie das Fenster nicht, bis Sie danach gefragt werden."); waitfor { awaitkey("SPACE"); } or { await("click,touchend"); } closesession(); window.location = "http://www.lab.uva.nl/lotus/doors/event/end_task"; }

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.

This experiment has no video links

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.

Related Experiments