bugfixes for doc demos

This commit is contained in:
jadeddelta 2022-09-22 11:57:33 -04:00
parent 7914502eaf
commit d13d1611cb
4 changed files with 11 additions and 11 deletions

View File

@ -7,7 +7,7 @@
<script src="https://unpkg.com/@jspsych/plugin-html-button-response@1.1.1"></script> <script src="https://unpkg.com/@jspsych/plugin-html-button-response@1.1.1"></script>
<script src="https://unpkg.com/@jspsych/plugin-image-button-response@1.1.1"></script> <script src="https://unpkg.com/@jspsych/plugin-image-button-response@1.1.1"></script>
<link rel="stylesheet" href="https://unpkg.com/jspsych@7.3.0/css/jspsych.css" /> <link rel="stylesheet" href="https://unpkg.com/jspsych@7.3.0/css/jspsych.css" />
<link rel="stylesheet" href="docs-demo.css" type="text/css"> <link rel="stylesheet" href="docs-demo.css" type="text/css" />
</head> </head>
<body></body> <body></body>
<script> <script>
@ -68,8 +68,8 @@
trials: [block_2] trials: [block_2]
} }
const timeline = [preload_block_1, block_1, preload_block_2, block_2], const timeline = [preload_block_1, block_1, preload_block_2, block_2];
if (typeof jsPsych !== "undefined") { if (typeof jsPsych !== "undefined") {
jsPsych.run(generateDocsDemoTimeline(timeline)); jsPsych.run(generateDocsDemoTimeline(timeline));
} else { } else {

View File

@ -7,7 +7,7 @@
<script src="https://unpkg.com/@jspsych/plugin-html-keyboard-response@1.1.1"></script> <script src="https://unpkg.com/@jspsych/plugin-html-keyboard-response@1.1.1"></script>
<script src="https://unpkg.com/@jspsych/plugin-reconstruction@1.1.1"></script> <script src="https://unpkg.com/@jspsych/plugin-reconstruction@1.1.1"></script>
<link rel="stylesheet" href="https://unpkg.com/jspsych@7.3.0/css/jspsych.css" /> <link rel="stylesheet" href="https://unpkg.com/jspsych@7.3.0/css/jspsych.css" />
<link rel="stylesheet" href="docs-demo.css" type="text/css"> <link rel="stylesheet" href="docs-demo.css" type="text/css" />
</head> </head>
<body></body> <body></body>
<script> <script>
@ -39,8 +39,8 @@
starting_value: 0.5, starting_value: 0.5,
} }
const timeline = [match_item, reconstruction], const timeline = [match_item, reconstruction];
if (typeof jsPsych !== "undefined") { if (typeof jsPsych !== "undefined") {
jsPsych.run(generateDocsDemoTimeline(timeline)); jsPsych.run(generateDocsDemoTimeline(timeline));
} else { } else {

View File

@ -6,7 +6,7 @@
<script src="https://unpkg.com/@jspsych/plugin-html-button-response@1.1.1"></script> <script src="https://unpkg.com/@jspsych/plugin-html-button-response@1.1.1"></script>
<script src="https://unpkg.com/@jspsych/plugin-serial-reaction-time@1.1.1"></script> <script src="https://unpkg.com/@jspsych/plugin-serial-reaction-time@1.1.1"></script>
<link rel="stylesheet" href="https://unpkg.com/jspsych@7.3.0/css/jspsych.css" /> <link rel="stylesheet" href="https://unpkg.com/jspsych@7.3.0/css/jspsych.css" />
<link rel="stylesheet" href="docs-demo.css" type="text/css"> <link rel="stylesheet" href="docs-demo.css" type="text/css" />
</head> </head>
<body></body> <body></body>
<script> <script>
@ -52,8 +52,8 @@
target: [0,3] target: [0,3]
} }
const timeline = [instructions, trial_1, trial_2, trial_3, trial_4], const timeline = [instructions, trial_1, trial_2, trial_3, trial_4];
if (typeof jsPsych !== "undefined") { if (typeof jsPsych !== "undefined") {
jsPsych.run(generateDocsDemoTimeline(timeline)); jsPsych.run(generateDocsDemoTimeline(timeline));
} else { } else {

View File

@ -6,7 +6,7 @@
<script src="https://unpkg.com/@jspsych/plugin-html-button-response@1.1.1"></script> <script src="https://unpkg.com/@jspsych/plugin-html-button-response@1.1.1"></script>
<script src="https://unpkg.com/@jspsych/plugin-serial-reaction-time@1.1.1"></script> <script src="https://unpkg.com/@jspsych/plugin-serial-reaction-time@1.1.1"></script>
<link rel="stylesheet" href="https://unpkg.com/jspsych@7.3.0/css/jspsych.css" /> <link rel="stylesheet" href="https://unpkg.com/jspsych@7.3.0/css/jspsych.css" />
<link rel="stylesheet" href="docs-demo.css" type="text/css"> <link rel="stylesheet" href="docs-demo.css" type="text/css" />
</head> </head>
<body></body> <body></body>
<script> <script>
@ -62,7 +62,7 @@
feedback_duration: 500 feedback_duration: 500
} }
const timeline = [instructions, trial_1, trial_2, trial_3, trial_4], const timeline = [instructions, trial_1, trial_2, trial_3, trial_4];
if (typeof jsPsych !== "undefined") { if (typeof jsPsych !== "undefined") {
jsPsych.run(generateDocsDemoTimeline(timeline)); jsPsych.run(generateDocsDemoTimeline(timeline));