Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
09e0228
Update main.js
goldengua Aug 20, 2020
aff37c3
Update main.js
goldengua Aug 20, 2020
a0789a4
Add files via upload
goldengua Aug 20, 2020
9a6de6f
Update main.js
goldengua Aug 20, 2020
2eed86c
Update main.js
goldengua Aug 20, 2020
ca2180c
Update fulldesign.csv
goldengua Aug 20, 2020
f7e5db7
Add files via upload
goldengua Aug 20, 2020
599dcb3
Add files via upload
goldengua Aug 20, 2020
c7175d5
Update main.js
goldengua Aug 20, 2020
7ba649f
Delete 1deerDenseWood.mp3
goldengua Aug 20, 2020
188c672
Delete 1deerDenseWood.png
goldengua Aug 20, 2020
958a16d
Delete 1fishSquareTank.mp3
goldengua Aug 20, 2020
7f821e1
Delete 1fishSquareTank.png
goldengua Aug 20, 2020
c198bd5
Update fulldesign.csv
goldengua Aug 20, 2020
34be8ec
Delete 2sheepBluePen.png
goldengua Aug 20, 2020
45ae9e0
Delete 1mooseNewPark.mp3
goldengua Aug 20, 2020
094e691
Delete 1mooseNewPark.png
goldengua Aug 20, 2020
a741d9c
Delete 1sheepRedPen.mp3
goldengua Aug 20, 2020
cc10c35
Delete 1sheepRedPen.png
goldengua Aug 20, 2020
49fd0aa
Delete 2deerSparseWood.mp3
goldengua Aug 20, 2020
169e5dd
Delete 2deerSparseWood.png
goldengua Aug 20, 2020
eb1db36
Delete 2fishRoundTank.mp3
goldengua Aug 20, 2020
c8e8af0
Delete 2fishRoundTank.png
goldengua Aug 20, 2020
2eba8e3
Delete 2mooseOldPark.mp3
goldengua Aug 20, 2020
4a0dda6
Delete 2mooseOldPark.png
goldengua Aug 20, 2020
3fa0f72
Delete 2sheepBluePen.mp3
goldengua Aug 20, 2020
c30926e
Update main.js
goldengua Aug 20, 2020
ffc730b
Update main.js
goldengua Aug 20, 2020
31124a3
Add files via upload
goldengua Aug 20, 2020
167deb6
Update main.js
goldengua Aug 20, 2020
fdb1b6e
Update main.js
goldengua Aug 20, 2020
41679cb
Update main.js
goldengua Aug 20, 2020
1f60988
Update main.js
goldengua Aug 20, 2020
f457060
Update fulldesign.csv
goldengua Aug 20, 2020
389fe3d
Update main.js
goldengua Aug 20, 2020
b3d9172
Add files via upload
goldengua Aug 20, 2020
7c94534
Update main.js
goldengua Aug 20, 2020
8765049
Update main.js
goldengua Aug 20, 2020
521e344
Update main.js
goldengua Aug 20, 2020
6f05075
Update main.js
goldengua Aug 20, 2020
6c5cde3
Update main.js
goldengua Aug 20, 2020
8492368
Update main.js
goldengua Aug 22, 2020
796bf9e
Add files via upload
goldengua Aug 22, 2020
2f4e1cd
Update main.js
goldengua Sep 29, 2020
7cc2664
Update fulldesign.csv
goldengua Sep 29, 2020
7dec65c
Update main.js
goldengua Sep 29, 2020
4ca3b93
Update fulldesign.csv
goldengua Sep 29, 2020
a74779a
Update main.js
goldengua Sep 29, 2020
8b417bd
Add files via upload
goldengua Sep 29, 2020
9e0b0cb
Update fulldesign.csv
goldengua Sep 29, 2020
cd84e72
Update main.js
goldengua Sep 29, 2020
132e42f
Update main.js
goldengua Sep 29, 2020
bd643ef
Update main.js
goldengua Sep 29, 2020
535c52c
Update fulldesign.csv
goldengua Sep 29, 2020
8508058
Update main.js
goldengua Sep 29, 2020
f0e2685
Update main.js
goldengua Sep 29, 2020
beda64b
Update main.js
goldengua Sep 29, 2020
458244a
Update main.js
goldengua Sep 29, 2020
a66bbb5
Update main.js
goldengua Sep 29, 2020
72730d7
Update main.js
goldengua Oct 6, 2020
07cfc57
Add files via upload
goldengua Oct 6, 2020
a99346e
Update main.js
goldengua Oct 6, 2020
f8867d5
Update main.js
goldengua Oct 6, 2020
24b7f4d
Update main.js
goldengua Oct 6, 2020
9891d6e
Delete chunk_includes.zip
goldengua Oct 6, 2020
b5b9b6a
Update main.js
goldengua Oct 6, 2020
3523649
Update main.js
goldengua Oct 6, 2020
1f067ae
Update main.js
goldengua Oct 6, 2020
c244530
Update main.js
goldengua Oct 19, 2020
a7bad24
Update main.js
goldengua Oct 19, 2020
a81e812
Update fulldesign.csv
goldengua Oct 19, 2020
14775af
Update main.js
goldengua Oct 19, 2020
c878efd
Update main.js
goldengua Oct 19, 2020
197e118
Update fulldesign.csv
goldengua Oct 19, 2020
3e84048
Update main.js
goldengua Oct 19, 2020
911656f
Update main.js
goldengua Oct 19, 2020
77d4091
Update main.js
goldengua Oct 19, 2020
a06063c
Update fulldesign.csv
goldengua Oct 19, 2020
483ef24
Update main.js
goldengua Oct 19, 2020
109c47c
Update fulldesign.csv
goldengua Oct 19, 2020
f2051fb
Update fulldesign.csv
goldengua Oct 19, 2020
e755cab
Update main.js
goldengua Oct 19, 2020
5924068
Update main.js
goldengua Oct 19, 2020
51b30ef
Update main.js
goldengua Oct 19, 2020
e8623fb
Update main.js
goldengua Oct 19, 2020
cf7c609
Update main.js
goldengua Oct 19, 2020
eab3eaf
Update fulldesign.csv
goldengua Oct 19, 2020
36798f7
Update main.js
goldengua Oct 19, 2020
59c3248
Update main.js
goldengua Oct 19, 2020
734816e
Update fulldesign.csv
goldengua Oct 19, 2020
215e0ec
Update main.js
goldengua Oct 19, 2020
2687341
Update main.js
goldengua Oct 19, 2020
43737b0
Update main.js
goldengua Oct 19, 2020
d8b5247
Update main.js
goldengua Oct 19, 2020
91b1722
Update main.js
goldengua Nov 3, 2020
5e84cfd
Update main.js
goldengua Nov 3, 2020
20b1ffe
Update main.js
goldengua Nov 3, 2020
eff0359
Update main.js
goldengua Nov 3, 2020
e63fa62
Update main.js
goldengua Nov 3, 2020
f87485c
Update main.js
goldengua Nov 3, 2020
fc292d3
Update main.js
goldengua Nov 3, 2020
5fef13f
Update main.js
goldengua Nov 3, 2020
c39c1c7
Update fulldesign.csv
goldengua Nov 3, 2020
81443f0
Update main.js
goldengua Nov 3, 2020
bc3a2f3
Update main.js
goldengua Nov 3, 2020
e257f73
Add files via upload
goldengua Nov 3, 2020
bd9c464
Add files via upload
goldengua Nov 3, 2020
2017302
Update main.js
goldengua Nov 3, 2020
1991464
Update fulldesign.csv
goldengua Nov 3, 2020
66d7fa7
Update fulldesign.csv
goldengua Feb 14, 2021
86fdaae
Add files via upload
goldengua Feb 14, 2021
455bd93
Add files via upload
goldengua Feb 14, 2021
985eef7
Create exit.html
goldengua Feb 14, 2021
3aa9a9f
Update main.js
goldengua Feb 14, 2021
9344918
Update main.js
goldengua Feb 14, 2021
6921f00
Update main.js
goldengua Feb 14, 2021
b5acfa9
Update exit.html
goldengua Feb 14, 2021
b99ddec
Update main.js
goldengua Feb 14, 2021
ce667f2
Update main.js
goldengua Feb 14, 2021
7d519c8
Update main.js
goldengua Feb 14, 2021
4d25f78
Add files via upload
goldengua Feb 15, 2021
dfb8685
Add files via upload
goldengua Feb 15, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed chunk_includes/1deerDenseWood.mp3
Binary file not shown.
Binary file removed chunk_includes/1deerDenseWood.png
Binary file not shown.
Binary file removed chunk_includes/1fishSquareTank.mp3
Binary file not shown.
Binary file removed chunk_includes/1fishSquareTank.png
Binary file not shown.
Binary file removed chunk_includes/1mooseNewPark.mp3
Binary file not shown.
Binary file removed chunk_includes/1mooseNewPark.png
Binary file not shown.
Binary file removed chunk_includes/1sheepRedPen.mp3
Binary file not shown.
Binary file removed chunk_includes/1sheepRedPen.png
Binary file not shown.
Binary file removed chunk_includes/2deerSparseWood.mp3
Binary file not shown.
Binary file removed chunk_includes/2deerSparseWood.png
Binary file not shown.
Binary file removed chunk_includes/2fishRoundTank.mp3
Binary file not shown.
Binary file removed chunk_includes/2fishRoundTank.png
Binary file not shown.
Binary file removed chunk_includes/2mooseOldPark.mp3
Binary file not shown.
Binary file removed chunk_includes/2mooseOldPark.png
Binary file not shown.
Binary file removed chunk_includes/2sheepBluePen.mp3
Binary file not shown.
Binary file removed chunk_includes/2sheepBluePen.png
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_ba1.wav
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_ba2.wav
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_ba3.wav
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_ba4.wav
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_di1.wav
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_di2.wav
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_di3.wav
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_di4.wav
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_ma1.wav
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_ma2.wav
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_ma3.wav
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_ma4.wav
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_shu1.wav
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_shu2.wav
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_shu3.wav
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_shu4.wav
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_ti1.wav
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_ti2.wav
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_ti3.wav
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_ti4.wav
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_wu1.wav
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_wu2.wav
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_wu3.wav
Binary file not shown.
Binary file added chunk_includes/Syllable_B3_Mia_wu4.wav
Binary file not shown.
Binary file added chunk_includes/alien1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added chunk_includes/alien2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added chunk_includes/alien3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added chunk_includes/alien4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added chunk_includes/asd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
80 changes: 80 additions & 0 deletions chunk_includes/drag.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<!DOCTYPE html>
<html>
<style>
#mydiv {
position: absolute;
z-index: 9;
background-color: #f1f1f1;
text-align: center;
border: 1px solid #d3d3d3;
}

#mydivheader {
padding: 10px;
cursor: move;
z-index: 10;
background-color: #2196F3;
color: #fff;
}
</style>
<body>

<h1>Draggable DIV Element</h1>

<p>Click and hold the mouse button down while moving the DIV element</p>

<div id="mydiv">
<div id="mydivheader">Click here to move</div>
<p>Move</p>
<p>this</p>
<p>DIV</p>
</div>

<script>
//Make the DIV element draggagle:
dragElement(document.getElementById("mydiv"));

function dragElement(elmnt) {
var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
if (document.getElementById(elmnt.id + "header")) {
/* if present, the header is where you move the DIV from:*/
document.getElementById(elmnt.id + "header").onmousedown = dragMouseDown;
} else {
/* otherwise, move the DIV from anywhere inside the DIV:*/
elmnt.onmousedown = dragMouseDown;
}

function dragMouseDown(e) {
e = e || window.event;
e.preventDefault();
// get the mouse cursor position at startup:
pos3 = e.clientX;
pos4 = e.clientY;
document.onmouseup = closeDragElement;
// call a function whenever the cursor moves:
document.onmousemove = elementDrag;
}

function elementDrag(e) {
e = e || window.event;
e.preventDefault();
// calculate the new cursor position:
pos1 = pos3 - e.clientX;
pos2 = pos4 - e.clientY;
pos3 = e.clientX;
pos4 = e.clientY;
// set the element's new position:
elmnt.style.top = (elmnt.offsetTop - pos2) + "px";
elmnt.style.left = (elmnt.offsetLeft - pos1) + "px";
}

function closeDragElement() {
/* stop moving when mouse button is released:*/
document.onmouseup = null;
document.onmousemove = null;
}
}
</script>

</body>
</html>
Binary file added chunk_includes/drumloop_65.wav
Binary file not shown.
35 changes: 35 additions & 0 deletions chunk_includes/exit.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<script language="javascript" type="text/javascript">
function randomString() {
var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
var string_length = 8;
var randomstring = '';
for (var i=0; i<string_length; i++) {
var rnum = Math.floor(Math.random() * chars.length);
randomstring += chars.substring(rnum,rnum+1);
}
document.randform.randomfield.value = randomstring;
}
</script>

<table>

<tr>
<td colspan="1"> <b> Press the button below to generate your identification code, save the code before you end the experiment。 </b> </td>
</tr>

<tr>
<td>
<form name="randform">
<input type="button" value="Generate Identification Code" onClick="randomString();">&nbsp;
<input type="text" name="randomfield" value="">
</form>

</td>
</tr>


</table>

<p>
<b> Please press the button bellow to end the experiment. Do not turn off the page until the data has been sent. Thank you! </b>
</p>
Binary file added chunk_includes/failure.wav
Binary file not shown.
34 changes: 25 additions & 9 deletions chunk_includes/fulldesign.csv
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
AudioFile,Description,PluralImageFile,SingularImageFile,Item,Group,Ending,Duration
1fishSquareTank.mp3,The fish swims in a tank which is perfectly square,2fishRoundTank.png,1fishSquareTank.png,fish,A,-s,2600
2fishRoundTank.mp3,The fish swim in a tank which is perfectly round,2fishRoundTank.png,1fishSquareTank.png,fish,B,No-s,2600
1deerDenseWood.mp3,The deer runs in a wood which is extremely dense,2deerSparseWood.png,1deerDenseWood.png,deer,B,-s,2500
2deerSparseWood.mp3,The deer run in a wood which is extremely sparse,2deerSparseWood.png,1deerDenseWood.png,deer,A,No-s,2500
1sheepRedPen.mp3,The sheep roams in a pen which is strikingly red,2sheepBluePen.png,1sheepRedPen.png,sheep,A,-s,2200
2sheepBluePen.mp3,The sheep roam in a pen which is strikingly blue,2sheepBluePen.png,1sheepRedPen.png,sheep,B,No-s,2200
1mooseNewPark.mp3,The moose walks in a park which is visibly new,2mooseOldPark.png,1mooseNewPark.png,moose,B,-s,2200
2mooseOldPark.mp3,The moose walk in a park which is visibly old,2mooseOldPark.png,1mooseNewPark.png,moose,A,No-s,2200
AudioFile,ImageFile,key,Item,Group,P1x,P1y,P2x,P2y,P3x,P3y
m2_syllable_b3_ai1.wav, alien1.png,w,ai1,1, 0, 100, 100, 100, 200, 100
m2_syllable_b3_ai2.wav, alien2.png,a,ai2,1, 0, 200, 100, 100, 200, 0
m2_syllable_b3_ai3.wav, alien3.png,s,ai3,1, 0, 100, 100, 200, 200, 100
m2_syllable_b3_ai4.wav, alien4.png,d,ai4,1, 0, 0, 100, 100, 200, 200
m2_syllable_b3_ba1.wav, alien1.png,w,ai1,1, 0, 100, 100, 100, 200, 100
m2_syllable_b3_ba2.wav, alien2.png,a,ai2,1, 0, 200, 100, 100, 200, 0
m2_syllable_b3_ba3.wav, alien3.png,s,ai3,1, 0, 100, 100, 200, 200, 100
m2_syllable_b3_ba4.wav, alien4.png,d,ai4,1, 0, 0, 100, 100, 200, 200
m2_syllable_b3_bao1.wav, alien1.png,w,ai1,1, 0, 100, 100, 100, 200, 100
m2_syllable_b3_bao2.wav, alien2.png,a,ai2,1, 0, 200, 100, 100, 200, 0
m2_syllable_b3_bao3.wav, alien3.png,s,ai3,1, 0, 100, 100, 200, 200, 100
m2_syllable_b3_bao4.wav, alien4.png,d,ai4,1, 0, 0, 100, 100, 200, 200
m2_syllable_b3_di1.wav, alien1.png,w,ai1,1, 0, 100, 100, 100, 200, 100
m2_syllable_b3_di2.wav, alien2.png,a,ai2,1, 0, 200, 100, 100, 200, 0
m2_syllable_b3_di3.wav, alien3.png,s,ai3,1, 0, 100, 100, 200, 200, 100
m2_syllable_b3_di4.wav, alien4.png,d,ai4,1, 0, 0, 100, 100, 200, 200
m2_syllable_b3_wu1.wav, alien1.png,w,ai1,1, 0, 100, 100, 100, 200, 100
m2_syllable_b3_wu2.wav, alien2.png,a,ai2,1, 0, 200, 100, 100, 200, 0
m2_syllable_b3_wu3.wav, alien3.png,s,ai3,1, 0, 100, 100, 200, 200, 100
m2_syllable_b3_wu4.wav, alien4.png,d,ai4,1, 0, 0, 100, 100, 200, 200
m2_syllable_b3_xu1.wav, alien1.png,w,ai1,1, 0, 100, 100, 100, 200, 100
m2_syllable_b3_xu2.wav, alien2.png,a,ai2,1, 0, 200, 100, 100, 200, 0
m2_syllable_b3_xu3.wav, alien3.png,s,ai3,1, 0, 100, 100, 200, 200, 100
m2_syllable_b3_xu4.wav, alien4.png,d,ai4,1, 0, 0, 100, 100, 200, 200
Binary file added chunk_includes/m2_syllable_b3_ai1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ai2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ai3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ai4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ba1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ba2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ba3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ba4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_bao1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_bao2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_bao3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_bao4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_chao1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_chao2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_chao3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_chao4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_chi1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_chi2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_chi3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_chi4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_da1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_da2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_da3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_da4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_di1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_di2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_di3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_di4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_du1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_du2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_du3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_du4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_fa1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_fa2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_fa3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_fa4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_fa4_v2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_fu1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_fu2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_fu3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_fu4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_hu1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_hu2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_hu3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_hu4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ji1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ji2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ji3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ji4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_jie1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_jie2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_jie3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_jie4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ju1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ju2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ju3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ju4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ma1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ma2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ma3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ma4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_shi1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_shi2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_shi3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_shi4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_shu1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_shu2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_shu3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_shu4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_tao1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_tao2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_tao3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_tao4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ti1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ti2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ti3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ti4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_tu1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_tu2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_tu3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_tu4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_wu1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_wu2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_wu3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_wu4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_xi1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_xi2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_xi3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_xi4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_xie1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_xie2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_xie3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_xie4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_xu1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_xu2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_xu3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_xu4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ya1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ya2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ya3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_ya4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_yao1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_yao2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_yao3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_yao4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_you1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_you2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_you3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_you4.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_zhu1.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_zhu2.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_zhu3.wav
Binary file not shown.
Binary file added chunk_includes/m2_syllable_b3_zhu4.wav
Binary file not shown.
Binary file added chunk_includes/qse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added chunk_includes/qsx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added chunk_includes/success.wav
Binary file not shown.
Binary file added chunk_includes/tone1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added chunk_includes/tone2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added chunk_includes/tone3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added chunk_includes/tone4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added chunk_includes/zse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
212 changes: 212 additions & 0 deletions data_includes/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,215 @@
PennController.ResetPrefix(null); // Initiates PennController
AddHost("https://github.com/goldengua/TimedPictureSelection/tree/master/chunk_includes/");
//PreloadZip("https://github.com/goldengua/TimedPictureSelection/blob/master/chunk_includes/samples.zip");
// Start typing your code here
// Initiates PennController

// Start typing your code here

Sequence( "welcome" , randomize("experiment"), "break", randomize("experiment"), "break",randomize("experiment"), "break",randomize("experiment"), "break",randomize("experiment"), "break",
randomize("experiment"), "break", randomize("experiment"), "break", randomize("experiment"), "break", randomize("experiment"), "break", randomize("experiment"),
"exit","send" , "final" )
newTrial( "welcome" ,
defaultText
.print()
,
newText("<p>Welcome!</p>")
,
newText("<p>In this experiment, you will see four kinds of aliens suddenly appear on the screen. </p>")
,
newText("<p>Press mouse click to catch these aliens as quickly as possible.</p>")
,
newText("<p>There are some regularities in the alien's moving trajectory. </p>")
,
newText("<p>Discovering the trajectory might help you with a quick action. </p>")
,
newText("<p>Please get yourself familiar with the action required for catching aliens. </p>")
,
newText("<p>Please enter your ID and then click the button below to start the experiment.</p>")
,
newImage("1","alien1.png")
.size(100,100)
,
newImage("2","alien2.png")
.size(100,100)
,
newImage("3","alien3.png")
.size(100,100)
,
newImage("4","alien4.png")
.size(100,100)
,
newCanvas("intro",200,200)
.add( 0 , 0 , getImage("1") )
.add( 100 , 0 , getImage("2") )
.add( 0 , 100 , getImage("3") )
.add( 100 , 100 , getImage("4") )
.print()
,
newTextInput("inputID")
.print()
,
newButton("Start")
.print()
.wait()
,
newVar("ID")
.global()
.set( getTextInput("inputID") )
,
getCanvas("intro")
.remove()
)
.log( "ID" , getVar("ID") )
Template( variable =>
newTrial( "experiment" ,
newAudio('bgm',"drumloop_65.wav")
.play()
,
newText("fixation",'+')
.print()
,

newTimer("wait", 800)
.start()
.wait()
,

getText('fixation')
.remove()
,
newImage("gesture_key","alien1.png")
.size(100,100)
,

//first position
newAudio("tone", variable.AudioFile)
.play()
,
newCanvas("p1",300,300)
.add( variable.P1x , variable.P1y , newImage("p1_alien",variable.ImageFile).size(100,100) )
.print()
,
newSelector('p1')
.add( getImage("p1_alien") )
.log()
//.wait()
,
newTimer("wait", 1200)
.start()
.wait()
,
getSelector("p1")
.test.selected()
.success( newAudio("success", "success.wav").play() )
.failure( newAudio("failure", "failure.wav").play() )
,
getCanvas("p1")
.remove()
,
//second position
newAudio("tone", variable.AudioFile)
.play()
,
newCanvas("p2",300,300)
.add( variable.P2x , variable.P2y , newImage("p2_alien",variable.ImageFile).size(100,100) )
.print()
,
newSelector('p2')
.add( getImage("p2_alien") )
.log()
//.wait()
,
newTimer("wait", 1200)
.start()
.wait()
,
getSelector("p2")
.test.selected()
.success( newAudio("success", "success.wav").play() )
.failure( newAudio("failure", "failure.wav").play() )
,
getCanvas("p2")
.remove()
,

//third canvas
newAudio("tone", variable.AudioFile)
.play()
,
newCanvas("p3",300,300)
.add( variable.P3x , variable.P3y , newImage("p3_alien",variable.ImageFile).size(100,100) )
.print()
,
newSelector('p3')
.add( getImage("p3_alien") )
.log()
//.wait()
,

newTimer("wait", 1200)
.start()
.wait()
,
getSelector("p3")
.test.selected()
.success( newAudio("success", "success.wav").play() )
.failure( newAudio("failure", "failure.wav").play() )
,
getCanvas("p3")
.remove()
,
//newCanvas("alien",300,300)
//.add( variable.P1x , variable.P1y , newImage(variable.ImageFile).size(100,100) )
//.add( variable.P2x , variable.P2y , newImage(variable.ImageFile).size(100,100) )
//.add( variable.P3x , variable.P3y , newImage(variable.ImageFile).size(100,100))
//.print()
//,


//newTimer("wait", 500)
//.start()
//.wait()
//,
//getCanvas("alien")
//.remove()



//newText("continue","Press space bar to continue;")
//.print()
//,
//newKey('space',' ')
//.wait()

)
.log( "ID" , getVar("ID") )
.log( "Item" , variable.Item )
.log( "Group" , variable.Group )
)
newTrial( "break" ,
defaultText
.print()
,
newText("<p>You have finished a block! You can take a break now. </p>")
,
newButton("Continue")
.print()
.wait()
)
var items = [
["exit", "Form", {consentRequired: false, html: {include: "exit.html" }} ],
];

SendResults( "send" )
newTrial( "final" ,
newText("<p>Thank you for your participation!</p>")
.print()
,
newText("<p><a href='https://www.pcibex.net/' href='_blank'>Click here to validate your participation.</a></p>")
.print()
,
newButton("void")
.wait()
)