move img width from <style> to parameter

This commit is contained in:
Becky Gilbert 2020-12-08 14:13:09 -08:00
parent 6aa5641bb5
commit 887dcbd627

View File

@ -1,16 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<script src="../jspsych.js"></script>
<script src="../plugins/jspsych-image-keyboard-response.js"></script>
<link rel="stylesheet" href="../css/jspsych.css">
<style>
img {
width: 300px;
}
</style>
</head>
<body></body>
<script>
@ -31,6 +24,7 @@
timeline: [trial_1, trial_2, trial_3],
choices: [89, 78], // Y or N
prompt: '<p>Have you seen this face before? Y or N.</p>',
stimulus_width: 300,
data: {
node_data: true
},
@ -39,7 +33,6 @@
}
}
jsPsych.init({
timeline: [node],
on_finish: function() {