mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
replace all instances of jsPsych.init with initJsPsych/jsPsych.run in HTML files
This commit is contained in:
parent
5ed2340157
commit
37d8f9f4ad
@ -24,6 +24,12 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych({
|
||||||
|
extensions: [
|
||||||
|
{type: 'webgazer'}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
|
||||||
var preload = {
|
var preload = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
images: ['img/blue.png']
|
images: ['img/blue.png']
|
||||||
@ -150,8 +156,7 @@
|
|||||||
choices: jsPsych.NO_KEYS
|
choices: jsPsych.NO_KEYS
|
||||||
};
|
};
|
||||||
|
|
||||||
jsPsych.init({
|
jsPsych.run([
|
||||||
timeline: [
|
|
||||||
preload,
|
preload,
|
||||||
camera_instructions,
|
camera_instructions,
|
||||||
init_camera,
|
init_camera,
|
||||||
@ -164,11 +169,7 @@
|
|||||||
begin,
|
begin,
|
||||||
trial,
|
trial,
|
||||||
show_data
|
show_data
|
||||||
],
|
]);
|
||||||
extensions: [
|
|
||||||
{type: 'webgazer'}
|
|
||||||
]
|
|
||||||
});
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</html>
|
</html>
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload_trial = {
|
var preload_trial = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
auto_preload: true
|
auto_preload: true
|
||||||
@ -57,9 +59,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload_trial, start, animation_data_loop]);
|
||||||
timeline: [preload_trial, start, animation_data_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var timeline = [];
|
var timeline = [];
|
||||||
|
|
||||||
timeline.push({
|
timeline.push({
|
||||||
@ -51,9 +53,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run(timeline);
|
||||||
timeline: timeline
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var timeline = [];
|
var timeline = [];
|
||||||
|
|
||||||
// sound source: https://www.videvo.net/sound-effect/lion-growl-angry-gene-pe931902/249942/
|
// sound source: https://www.videvo.net/sound-effect/lion-growl-angry-gene-pe931902/249942/
|
||||||
@ -57,9 +59,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run(timeline);
|
||||||
timeline: timeline
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload = {
|
var preload = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
auto_preload: true
|
auto_preload: true
|
||||||
@ -50,9 +52,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload, pre_audio, trial_data_loop]);
|
||||||
timeline: [preload, pre_audio, trial_data_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload = {
|
var preload = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
auto_preload: true
|
auto_preload: true
|
||||||
@ -49,9 +51,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload, pre_audio, trial_data_loop]);
|
||||||
timeline: [preload, pre_audio, trial_data_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload = {
|
var preload = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
auto_preload: true
|
auto_preload: true
|
||||||
@ -49,9 +51,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload, pre_audio, trial_data_loop]);
|
||||||
timeline: [preload, pre_audio, trial_data_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload = {
|
var preload = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
auto_preload: true
|
auto_preload: true
|
||||||
@ -51,9 +53,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload, pre_audio, trial_data_loop]);
|
||||||
timeline: [preload, pre_audio, trial_data_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -47,9 +49,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -51,9 +53,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -52,9 +54,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -73,9 +75,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, canvas_data_loop]);
|
||||||
timeline: [start, canvas_data_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -64,9 +66,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, canvas_data_loop]);
|
||||||
timeline: [start, canvas_data_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -75,9 +77,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, canvas_data_loop]);
|
||||||
timeline: [start, canvas_data_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -55,9 +57,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, canvas_data_loop]);
|
||||||
timeline: [start, canvas_data_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -55,9 +57,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, canvas_data_loop]);
|
||||||
timeline: [start, canvas_data_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -58,9 +60,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, canvas_data_loop]);
|
||||||
timeline: [start, canvas_data_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -64,9 +66,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, canvas_data_loop]);
|
||||||
timeline: [start, canvas_data_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -58,9 +60,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload_trial, start, trial_loop]);
|
||||||
timeline: [preload_trial, start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -62,9 +64,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload_trial, start, trial_loop]);
|
||||||
timeline: [preload_trial, start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -49,9 +51,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -55,9 +57,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload_trial, start, trial_loop]);
|
||||||
timeline: [preload_trial, start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -43,9 +45,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -46,9 +48,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -59,9 +61,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -61,9 +63,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload_trial, start, trial_loop]);
|
||||||
timeline: [preload_trial, start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,9 @@
|
|||||||
</head>
|
</head>
|
||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -66,9 +69,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -44,9 +46,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -45,9 +47,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -45,9 +47,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -46,9 +48,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -54,9 +56,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload_trial = {
|
var preload_trial = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
auto_preload: true
|
auto_preload: true
|
||||||
@ -60,9 +62,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload_trial, start, trial_loop]);
|
||||||
timeline: [preload_trial, start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload_trial = {
|
var preload_trial = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
auto_preload: true
|
auto_preload: true
|
||||||
@ -51,9 +53,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload_trial, start, trial_loop]);
|
||||||
timeline: [preload_trial, start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload_trial = {
|
var preload_trial = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
auto_preload: true
|
auto_preload: true
|
||||||
@ -51,9 +53,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload_trial, start, trial_loop]);
|
||||||
timeline: [preload_trial, start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload_trial = {
|
var preload_trial = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
auto_preload: true
|
auto_preload: true
|
||||||
@ -51,9 +53,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload_trial, start, trial_loop]);
|
||||||
timeline: [preload_trial, start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload_trial = {
|
var preload_trial = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
auto_preload: true
|
auto_preload: true
|
||||||
@ -50,9 +52,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload_trial, start, trial_loop]);
|
||||||
timeline: [preload_trial, start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -1,20 +1,20 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<!-- Required for each demo -->
|
|
||||||
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/jspsych.js"></script>
|
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/jspsych.js"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/plugins/jspsych-preload.js"></script>
|
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/plugins/jspsych-preload.js"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/plugins/jspsych-html-button-response.js"></script>
|
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/plugins/jspsych-html-button-response.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/plugins/jspsych-instructions.js"></script>
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/css/jspsych.css">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/css/jspsych.css">
|
||||||
<style>
|
<style>
|
||||||
.jspsych-btn {margin-bottom: 10px;}
|
.jspsych-btn {margin-bottom: 10px;}
|
||||||
</style>
|
</style>
|
||||||
<!-- UPDATE depending on current demo -->
|
|
||||||
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/plugins/jspsych-instructions.js"></script>
|
|
||||||
</head>
|
</head>
|
||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload_trial = {
|
var preload_trial = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
auto_preload: true
|
auto_preload: true
|
||||||
@ -55,9 +55,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload_trial, start, demo_loop]);
|
||||||
timeline: [preload_trial, start, demo_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -1,20 +1,20 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<!-- Required for each demo -->
|
|
||||||
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/jspsych.js"></script>
|
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/jspsych.js"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/plugins/jspsych-preload.js"></script>
|
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/plugins/jspsych-preload.js"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/plugins/jspsych-html-button-response.js"></script>
|
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/plugins/jspsych-html-button-response.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/plugins/jspsych-instructions.js"></script>
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/css/jspsych.css">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/css/jspsych.css">
|
||||||
<style>
|
<style>
|
||||||
.jspsych-btn {margin-bottom: 10px;}
|
.jspsych-btn {margin-bottom: 10px;}
|
||||||
</style>
|
</style>
|
||||||
<!-- UPDATE depending on current demo -->
|
|
||||||
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/plugins/jspsych-instructions.js"></script>
|
|
||||||
</head>
|
</head>
|
||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload_trial = {
|
var preload_trial = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
auto_preload: true
|
auto_preload: true
|
||||||
@ -56,9 +56,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload_trial, start, demo_loop]);
|
||||||
timeline: [preload_trial, start, demo_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -1,20 +1,20 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<!-- Required for each demo -->
|
|
||||||
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/jspsych.js"></script>
|
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/jspsych.js"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/plugins/jspsych-preload.js"></script>
|
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/plugins/jspsych-preload.js"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/plugins/jspsych-html-button-response.js"></script>
|
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/plugins/jspsych-html-button-response.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/plugins/jspsych-instructions.js"></script>
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/css/jspsych.css">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/css/jspsych.css">
|
||||||
<style>
|
<style>
|
||||||
.jspsych-btn {margin-bottom: 10px;}
|
.jspsych-btn {margin-bottom: 10px;}
|
||||||
</style>
|
</style>
|
||||||
<!-- UPDATE depending on current demo -->
|
|
||||||
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/plugins/jspsych-instructions.js"></script>
|
|
||||||
</head>
|
</head>
|
||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload_trial = {
|
var preload_trial = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
auto_preload: true
|
auto_preload: true
|
||||||
@ -57,9 +57,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload_trial, start, demo_loop]);
|
||||||
timeline: [preload_trial, start, demo_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -45,9 +47,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -66,9 +68,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -57,9 +59,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -35,8 +37,6 @@
|
|||||||
choices: ['Repeat demo']
|
choices: ['Repeat demo']
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var trial_1 = {
|
var trial_1 = {
|
||||||
type: 'image-button-response',
|
type: 'image-button-response',
|
||||||
stimulus: 'img/happy_face_1.jpg',
|
stimulus: 'img/happy_face_1.jpg',
|
||||||
@ -99,9 +99,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -49,9 +51,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -44,9 +46,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -49,9 +51,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -49,9 +51,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -64,9 +66,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -46,9 +48,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,9 @@
|
|||||||
</head>
|
</head>
|
||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -56,9 +59,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,9 @@
|
|||||||
</head>
|
</head>
|
||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload = {
|
var preload = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
images: [
|
images: [
|
||||||
@ -65,9 +68,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload, start, trial_loop]);
|
||||||
timeline: [preload, start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,9 @@
|
|||||||
</head>
|
</head>
|
||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -81,9 +84,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,9 @@
|
|||||||
</head>
|
</head>
|
||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -91,9 +94,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,9 @@
|
|||||||
</head>
|
</head>
|
||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -67,9 +70,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,9 @@
|
|||||||
</head>
|
</head>
|
||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -73,9 +76,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
</head>
|
</head>
|
||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -47,9 +50,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
</head>
|
</head>
|
||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -48,9 +51,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
</head>
|
</head>
|
||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -57,9 +60,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
</head>
|
</head>
|
||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -59,9 +62,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
</head>
|
</head>
|
||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -59,9 +62,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
</head>
|
</head>
|
||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -61,9 +64,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
</head>
|
</head>
|
||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -62,9 +65,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -49,9 +51,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -50,9 +52,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -50,9 +52,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload = {
|
var preload = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
images: ['img/navarro_burst_03.jpg']
|
images: ['img/navarro_burst_03.jpg']
|
||||||
@ -56,9 +58,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload, start, trial_loop]);
|
||||||
timeline: [preload, start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload = {
|
var preload = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
video: 'video/fish.mp4'
|
video: 'video/fish.mp4'
|
||||||
@ -53,9 +55,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload, start, trial_loop]);
|
||||||
timeline: [preload, start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload = {
|
var preload = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
video: 'video/fish.mp4'
|
video: 'video/fish.mp4'
|
||||||
@ -52,9 +54,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload, start, trial_loop]);
|
||||||
timeline: [preload, start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload = {
|
var preload = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
video: 'video/fish.mp4'
|
video: 'video/fish.mp4'
|
||||||
@ -52,9 +54,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload, start, trial_loop]);
|
||||||
timeline: [preload, start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var start = {
|
var start = {
|
||||||
type: 'html-button-response',
|
type: 'html-button-response',
|
||||||
stimulus: '',
|
stimulus: '',
|
||||||
@ -45,9 +47,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([start, trial_loop]);
|
||||||
timeline: [start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload = {
|
var preload = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
images: ['img/card.png']
|
images: ['img/card.png']
|
||||||
@ -60,9 +62,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload, start, trial_loop]);
|
||||||
timeline: [preload, start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload = {
|
var preload = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
images: ['img/card.png']
|
images: ['img/card.png']
|
||||||
@ -60,9 +62,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload, start, trial_loop]);
|
||||||
timeline: [preload, start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload = {
|
var preload = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
images: ['img/backwardN.gif', 'img/normalN.gif', 'img/fixation.gif']
|
images: ['img/backwardN.gif', 'img/normalN.gif', 'img/fixation.gif']
|
||||||
@ -64,9 +66,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload, start, trial_loop]);
|
||||||
timeline: [preload, start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload = {
|
var preload = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
images: ['img/elephant.png', 'img/lion.png', 'img/monkey.png']
|
images: ['img/elephant.png', 'img/lion.png', 'img/monkey.png']
|
||||||
@ -66,9 +68,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload, start, trial_loop]);
|
||||||
timeline: [preload, start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload = {
|
var preload = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
images: ['img/1.gif', 'img/2.gif', 'img/3.gif', 'img/4.gif']
|
images: ['img/1.gif', 'img/2.gif', 'img/3.gif', 'img/4.gif']
|
||||||
@ -59,9 +61,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload, start, trial_loop]);
|
||||||
timeline: [preload, start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var jsPsych = initJsPsych();
|
||||||
|
|
||||||
var preload = {
|
var preload = {
|
||||||
type: 'preload',
|
type: 'preload',
|
||||||
images: ['img/1.gif', 'img/2.gif', 'img/3.gif', 'img/4.gif', 'img/5.gif']
|
images: ['img/1.gif', 'img/2.gif', 'img/3.gif', 'img/4.gif', 'img/5.gif']
|
||||||
@ -60,9 +62,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof jsPsych !== "undefined") {
|
if (typeof jsPsych !== "undefined") {
|
||||||
jsPsych.init({
|
jsPsych.run([preload, start, trial_loop]);
|
||||||
timeline: [preload, start, trial_loop]
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
document.body.innerHTML = '<div style="text-align:center; margin-top:50%; transform:translate(0,-50%);">You must be online to view the plugin demo.</div>';
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
var trial_1 = {
|
var trial_1 = {
|
||||||
type: jsPsychHtmlKeyboardResponse,
|
type: jsPsychHtmlKeyboardResponse,
|
||||||
stimulus: '<p>By default, jsPsych does not treat letter responses as case sensitive. So "A" (uppercase) is treated as "a" (lowercase).</p>'+
|
stimulus: '<p>By default, jsPsych does not treat letter responses as case sensitive. So "A" (uppercase) is treated as "a" (lowercase).</p>'+
|
||||||
'<p>This is an example of an experiment where "case_sensitive_responses" is set to "true" in jsPsych.init.</p>'+
|
'<p>This is an example of an experiment where "case_sensitive_responses" is set to "true" in initJsPsych.</p>'+
|
||||||
'<p>To continue, you must press the letter "a" (lowercase).</p>'+
|
'<p>To continue, you must press the letter "a" (lowercase).</p>'+
|
||||||
'<p>The trial will not end if you respond with "A" (uppercase), either by holding down the Shift key or turning CapsLock on.</p>',
|
'<p>The trial will not end if you respond with "A" (uppercase), either by holding down the Shift key or turning CapsLock on.</p>',
|
||||||
choices: ['a']
|
choices: ['a']
|
||||||
@ -37,7 +37,7 @@
|
|||||||
choices: "ALL_KEYS",
|
choices: "ALL_KEYS",
|
||||||
stimulus: '<p>When "case_sensitive_responses" is "true", your keyboard responses are case-sensitive in the data.</p>'+
|
stimulus: '<p>When "case_sensitive_responses" is "true", your keyboard responses are case-sensitive in the data.</p>'+
|
||||||
'<p>The next page shows the data, with your response recorded as "a" for the first trial and "A" for the second trial.</p>'+
|
'<p>The next page shows the data, with your response recorded as "a" for the first trial and "A" for the second trial.</p>'+
|
||||||
'<p>If you change "case_sensitive_responses" to "false" in jsPsych.init and reload this expeirment<br>'+
|
'<p>If you change "case_sensitive_responses" to "false" in initJsPsych and reload this expeirment<br>'+
|
||||||
'you will find that both "a" or "A" responses are valid responses for the first two trials,<br>'+
|
'you will find that both "a" or "A" responses are valid responses for the first two trials,<br>'+
|
||||||
'and your response will always be recorded as "a" (lowercase) in the data.</p>'
|
'and your response will always be recorded as "a" (lowercase) in the data.</p>'
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user