Skip to content

Commit 3f150a3

Browse files
committed
fix broken demos in the documentation
1 parent a599fd1 commit 3f150a3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+170
-178
lines changed

docs/demos/img/iat_old_face.jpg

7.68 KB
Loading

docs/demos/jspsych-call-function-demo2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<script src="https://unpkg.com/[email protected]"></script>
55
<script src="https://unpkg.com/@jspsych/[email protected]"></script>
6-
<script src="https://unpkg.com/@jspsych/plugin-plugin-[email protected]"></script>
6+
<script src="https://unpkg.com/@jspsych/[email protected]"></script>
77
<link rel="stylesheet" href="https://unpkg.com/[email protected]/css/jspsych.css">
88
<style>
99
.jspsych-btn {margin-bottom: 10px;}

docs/demos/jspsych-iat-html-demo1.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
var trial = {
3535
type: jsPsychIatHtml,
36-
stimulus: 'Golf',
36+
stimulus: 'Joyous',
3737
stim_key_association: 'left',
3838
html_when_wrong: '<span style="color: red; font-size: 80px">X</span>',
3939
bottom_instructions: '<p>If you press the wrong key, a red X will appear. Press the other key to continue</p>',
@@ -42,8 +42,8 @@
4242
trial_duration: 3000, //Only if display_feedback is false
4343
left_category_key: 'e',
4444
right_category_key: 'i',
45-
left_category_label: ['OLD'],
46-
right_category_label: ['YOUNG'],
45+
left_category_label: ['OLD', 'GOOD'],
46+
right_category_label: ['YOUNG', 'BAD'],
4747
response_ends_trial: true
4848
}
4949

docs/demos/jspsych-iat-image-demo1.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
var jsPsych = initJsPsych();
1717

1818
var preload_trial = {
19-
type: jsPsychPreloadeload,
19+
type: jsPsychPreload,
2020
auto_preload: true
2121
}
2222

@@ -40,7 +40,7 @@
4040

4141
var trial = {
4242
type: jsPsychIatImage,
43-
stimulus: 'img/blue.png',
43+
stimulus: 'img/iat_old_face.jpg',
4444
stim_key_association: 'left',
4545
html_when_wrong: '<span style="color: red; font-size: 80px">X</span>',
4646
bottom_instructions: '<p>If you press the wrong key, a red X will appear. Press the other key to continue</p>',
@@ -49,8 +49,8 @@
4949
trial_duration: 3000, //Only if display_feedback is false
5050
left_category_key: 'e',
5151
right_category_key: 'i',
52-
left_category_label: ['OLD'],
53-
right_category_label: ['YOUNG'],
52+
left_category_label: ['OLD', 'GOOD'],
53+
right_category_label: ['YOUNG', 'BAD'],
5454
response_ends_trial: true
5555
}
5656

docs/demos/jspsych-instructions-demo-2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
var preload_trial = {
1919
type: jsPsychPreload,
20-
auto_preload: true
20+
images: ['img/con2.png']
2121
}
2222

2323
var start = {

docs/demos/jspsych-reconstruction-demo1.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
}
4343

4444
var match_item = {
45-
type: jsPsychHtmKeyboardResponse,
45+
type: jsPsychHtmlKeyboardResponse,
4646
stimulus: '<div style="display: block; margin: auto; height: 300px; width: 300px; position: relative;">'+
4747
'<div style="display: block; position: absolute; top: '+(150 - 210/2)+'px; left:'+(150 - 210/2)+'px; background-color: #000000; '+
4848
'width: 210px; height: 210px;"></div></div>',

docs/demos/jspsych-survey-likert-demo2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
];
4646

4747
var trial = {
48-
type: jsPsychSurveyLIkert,
48+
type: jsPsychSurveyLikert,
4949
questions: [
5050
{prompt: "I like vegetables.", name: 'Vegetables', labels: likert_scale},
5151
{prompt: "I like fruit.", name: 'Fruit', labels: likert_scale},

docs/demos/jspsych-visual-search-circle-demo2.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@
5151

5252
var trial = {
5353
type: jsPsychVisualSearchCircle,
54-
target: 'img/elephant.png',
55-
foil: ['img/lion.png', 'img/monkey.png'],
54+
stimuli: ['img/elephant.png', 'img/lion.png', 'img/monkey.png'],
5655
fixation_image: 'img/fixation.gif',
5756
target_present_key: 'e',
5857
target_absent_key: 'n',

docs/demos/sound/hammer.mp3

204 KB
Binary file not shown.

docs/demos/sound/sound.mp3

192 KB
Binary file not shown.

0 commit comments

Comments
 (0)